getOwnerEntity(); $container = $blog->getContainerEntity(); $categories = elgg_view('output/categories', $vars); $excerpt = $blog->excerpt; if (empty($excerpt)) { $excerpt = elgg_get_excerpt($blog->description); } $owner_icon = elgg_view_entity_icon($owner, 'tiny'); $owner_link = elgg_view('output/url', array( 'href' => "blog/owner/$owner->username", 'text' => $owner->name, )); $author_text = elgg_echo('byline', array($owner_link)); // add container text if (elgg_instanceof($container, "group") && ($container->getGUID() !== elgg_get_page_owner_guid())) { $params = array( 'href' => $container->getURL(), 'text' => $container->name, 'is_trusted' => true ); $group_link = elgg_view('output/url', $params); $author_text .= " " . elgg_echo('river:ingroup', array($group_link)); } $tags = elgg_view('output/tags', array('tags' => $blog->tags)); $date = elgg_view_friendly_time($blog->time_created); $info_class = ""; $blog_icon = ""; $title = ""; // show icon if (!empty($blog->icontime)) { $params = $vars; $params["plugin_settings"] = true; $blog_icon = elgg_view_entity_icon($blog, "dummy", $params); } $metadata = elgg_view_menu('entity', array( 'entity' => $blog, 'handler' => 'blog', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); $subtitle = "$author_text $date $categories"; // do not show the metadata and controls in widget view if (elgg_in_context('widgets')) { $metadata = ''; } // Show blog if ($full) { // full view $body = elgg_view('output/longtext', array( 'value' => $blog->description, 'class' => 'blog-post', )); $header = elgg_view_title($blog->title); $params = array( 'entity' => $blog, 'title' => false, 'metadata' => $metadata, 'subtitle' => $subtitle, 'tags' => $tags, ); $params = $params + $vars; $summary = elgg_view('object/elements/summary', $params); echo elgg_view("object/elements/full", array( "summary" => $summary, "icon" => $owner_icon, "body" => $blog_icon . $body, )); } else { // how to show strapline if (elgg_in_context("listing")) { $excerpt = ""; $blog_icon = ""; } elseif (elgg_in_context("simple")) { $owner_icon = ""; $tags = false; $subtitle = ""; $title = false; // prepend title to the excerpt $title_link = "