$owner, 'size' => 'tiny')); if ($owner instanceof ElggUser || $owner instanceof ElggGroup) { $info = $owner->name; } $display = "
" . $icon . "
"; $display .= "
" . $info . "
"; if ($owner->briefdescription) { $desc = $owner->briefdescription; $display .= "
" . $desc . "
"; } $contents .= $display; } // Are there feeds to display? global $autofeed; if (isset($autofeed) && $autofeed == true) { $url = $url2 = full_url(); if (substr_count($url,'?')) { $url .= "&view=rss"; } else { $url .= "?view=rss"; } if (substr_count($url2,'?')) { $url2 .= "&view=odd"; } else { $url2 .= "?view=opendd"; } $label = elgg_echo('feed:rss'); $label2 = elgg_echo('feed:odd'); $contents .= <<{$label}
{$label2}
END; } //the follow are for logged in users only if(isloggedin()){ //is the bookmark plugin installed? if(is_plugin_enabled('bookmarks')){ $label3 = elgg_echo('bookmarks:this'); $contents .= "
wwwroot . "mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label3}
"; } //report this button if (is_plugin_enabled('reportedcontent')) { $label4 = elgg_echo('Report this'); $contents .= "
wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label4}
"; } } $contents .= elgg_view('owner_block/extend'); // Have we been asked to inject any content? If so, display it if (isset($vars['content'])) $contets .= $vars['content']; // Initialise the submenu $submenu = get_submenu(); // elgg_view('canvas_header/submenu'); if (!empty($submenu)) $submenu = ""; if (!empty($submenu)) $contents .= "
" . $submenu . "
"; // plugins can extend this to add menu options if (!empty($contents)) { echo "
"; echo $contents; echo "
"; } ?>