'.$vars['entity']->title.''; $m .= '

'; $added_date = date("d.m.Y", $vars['entity']->time_created); $owner_link = " getOwnerEntity()->getURL()."\">".$vars['entity']->getOwnerEntity()->name.""; /*translation:Added by*/ $m .= elgg_echo("koolielu:Added_by") . $owner_link . "
" . $added_date; $m .= '

'; $m .= '
'; if ($vars['entity']->gmaplocation) { $m .= "
" . elgg_view("output/ke_gmap", array('value' => $vars['entity']->gmaplocation, 'textcontent' => $vars['entity']->place, 'dimensions' => array(350, 250))) . "
"; } $m .= autop($vars['entity']->description); if ($vars['entity']->subjects) { /*translation:Subjects*/ $m .= "
"; if (is_array($vars['entity']->subjects)) { $ct = array(); foreach ($vars['entity']->subjects as $csu) { $c_title = getSubject($csu); $ct []= $c_title->title; } $m .= join($ct, ", "); } else { $cob = getSubject($vars['entity']->subjects, "title"); $m .= $cob->title; } $m .= "
"; } if ($vars['entity']->targetgroup) { /*translation:Targetgroup*/ $m .= "
"; $targetgroup = $vars['entity']->targetgroup; if (is_string($targetgroup)) { $targetgroup = array($targetgroup); } $targetgroup = array_map('strtolower', $targetgroup); $targets = ""; foreach ($targetgroup as $tg) { if ($targets) $targets .= ", "; $targets .= elgg_echo("koolielu:selectable_role_".$tg); } $m .= $targets; $m .= "
"; } if ($vars['entity']->additional_info) { /*translation:Info*/ $m .= "
"; $m .= elgg_view("output/url", array("value" => $vars['entity']->additional_info)) ."
"; } /*translation:Place*/ $m .= "
". $vars['entity']->place ."
"; /*translation:Capacity*/ $m .= "
". $vars['entity']->capacity ."
"; if ($vars['entity']->cost) { /*translation:Cost*/ $m .= "
". $vars['entity']->cost ."
"; } if ($vars['entity']->beginning_date) { /*translation:Beginning date*/ $m .= "
". timestampIntoDate($vars['entity']->beginning_date) ."
"; } if ($vars['entity']->ending_date) { /*translation:Ending date*/ $m .= "
". timestampIntoDate($vars['entity']->ending_date) ."
"; } /*translation:Contact person*/ $m .= "
". $vars['entity']->contact_person ."
"; if ($vars['entity']->telephone) { /*translation:Telephone*/ $m .= "
". $vars['entity']->telephone ."
"; } /*translation:Email*/ $m .= "
". $vars['entity']->email ."
"; echo $m; if ($vars['entity']->canEdit()) { echo "
"; $editbuttonview = elgg_view('input/submit', array('internalname' => 'editbutton', 'value' => elgg_echo('edit'))); $editbuttonview .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); echo elgg_view("input/form", array("action" => "{$CONFIG->wwwroot}action/poster/goedit", "body" => $editbuttonview)); $delbuttonview = ""; $delbuttonview .= elgg_view('input/hidden', array('internalname' => 'course', 'value' => $vars['entity']->getGUID())); echo elgg_view('input/form', array('action' => "{$CONFIG->wwwroot}action/poster/delete_course", 'body' => $delbuttonview, 'internalname' => 'delform')); if ((isEditor() || isadminloggedin()) && $vars['entity']->approved == 1 && $vars['entity']->archived == 0) { $frontpage_url = $CONFIG->wwwroot . "pg/poster/frontpage/" . $vars['entity']->getGUID(); /*translation:Display in poster front page*/ $frontpagebuttonview = elgg_view('input/submit', array('internalname' => 'frontpage_button', 'value' => elgg_echo('koolielu:display_poster_front_page'))); $frontpagebuttonview .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); echo elgg_view('input/form', array('action' => "{$CONFIG->wwwroot}action/poster/show_in_frontpage", 'body' => $frontpagebuttonview)); } echo "
"; } if ((isEditor() || isadminloggedin()) && $vars['entity']->approved == 0) echo elgg_view('koolielu/ke_review_object', array('action' => 'poster/review_object', 'entity' => $vars['entity'])); } else { // $icon = elgg_view( // 'graphics/icon', array( // 'entity' => $vars['entity'], // 'size' => 'small', // ) // ); // $info = "

" . $vars['entity']->title . "

"; // $info .= "
" . shorten_text($vars['entity']->description, 160) . "
"; // $info .= "

getUrl() . "\">Read more"; // $num_comments = elgg_count_comments($vars['entity']); // $info .= "comments: " . $num_comments . "

"; // // if (get_input('search_viewtype') == "gallery") { // $icon = ""; // } // // $info = "$info"; // $icon = "$icon"; // echo elgg_view_listing($icon, $info); echo elgg_view("object/posterlisting", array('entity'=>$vars['entity'])); } } ?>