$vars['entity'])); } ?> " . $col->title . ""; if ($col->description) { $col_info .= "
"; $col_info .= "
".elgg_echo("description")."
"; $col_info .= $col->description; $col_info .= "
"; } $col_resources = $col->resources; if (is_string($col_resources)) { $col_resources = array($col->resources); } if (is_array($col_resources) && count($col_resources) > 0) { $col_info .= "
"; /*translation:Resources*/ $col_info .= "
".elgg_echo("koolielu:Resources")."
"; $col_info .= waramu_list_resources($col_resources); $col_info .= "
"; } // tags $col_tags = $col->tags; if (is_string($col_tags)) { $col_tags = array($col_tags); } if (is_array($col_tags) && count($col_tags) > 0) { $col_info .= "
"; $col_info .= "
".elgg_echo('tags')."
"; $col_info .= "
"; } if (is_array($col_tags) && count($col_tags) > 0) { $tags_str = ""; // remove duplicate values $col_tags = array_unique($col_tags); // sort tags sort($col_tags); // show tags foreach ($col_tags as $tag) { if (!empty($tags_str)) { $tags_str .= ", "; } $tags_str .= "" . htmlentities($tag, ENT_QUOTES, 'UTF-8') . ""; } $col_info .= $tags_str . "
"; } if ($col->canEdit()) { $col_info .= "
"; $editbuttonview = elgg_view('input/submit', array('internalname' => 'editbutton', 'value' => elgg_echo('edit'))); $editbuttonview .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $col->getGUID())); $col_info .= elgg_view('input/form', array('action' => $vars['url'] . 'action/waramu/goedit_collection', 'body' => $editbuttonview)); $delbuttonview = ""; $delbuttonview .= elgg_view('input/hidden', array('internalname' => 'collection', 'value' => $col->getGUID())); $col_info .= elgg_view('input/form', array('action' => $vars['url'] . 'action/waramu/delete_collection', 'body' => $delbuttonview, 'internalname' => 'delform')); $col_info .= "
"; } echo($col_info); } ?>