name) ? $item->name : $item->title; // don't let it be too long $title = elgg_make_excerpt($title); // @todo you can disable plugins that are required by other plugins // (embed requires ecml) so fallback to a hard-coded check to see if ecml is enabled. // #grumble if ($ecml_keyword) { $embed_code = "[$ecml_keyword guid={$item->getGUID()}]"; } else { // fallback to inserting a hard link to the object with its icon $icon = "getIcon($icon_size)}\" />" . htmlentities($title, ENT_QUOTES, 'UTF-8'); $embed_code = elgg_view('output/url', array( 'href' => $item->getURL(), 'title' => $title, 'text' => $title, 'encode_text' => FALSE )); } $icon = "getIcon($icon_size)}\" />"; $info = "

" . htmlentities($title, ENT_QUOTES, 'UTF-8') . "

"; $info .= "

" . friendly_time($vars['item']->time_created) . "

"; // @todo is this approach better than inline js? echo "
getGUID()}\">" . elgg_view_listing($icon, $info) . '
'; echo "";