owner_guid); $container = get_entity($blog->container_guid); $linked_title = "getURL()}\" title=\"" . htmlentities($blog->title) . "\">{$blog->title}"; $categories = elgg_view('categories/view', $vars); $excerpt = $blog->excerpt; $body = $blog->description; $owner_icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny')); $tags = elgg_view('output/tags', array('tags' => $blog->tags)); $date = friendly_time($blog->time_created); if ($blog->comments_on == 'Yes') { $comments_count = elgg_count_comments($blog); $comments_link = "getURL()}#annotations\">" . sprintf(elgg_echo("comments"), $comments_count) . ''; } else { $comments_link = ''; } // links to delete or edit. if ($blog->canEdit()) { $edit_url = "{$vars['url']}pg/blog/{$owner->username}/edit/{$blog->getGUID()}/"; $edit_link = "" . elgg_echo('edit') . ''; $delete_url = "{$vars['url']}action/blog/delete?guid={$blog->getGUID()}"; $delete_link = elgg_view('output/confirmlink', array( 'href' => $delete_url, 'text' => elgg_echo('delete'), 'class' => 'action_button' )); $edit = "$edit_link $delete_link"; } else { $edit = ''; } if ($full) { // The "on" status changes for comments, so best to check for !Off if ($blog->comments_on != 'Off') { $comments = elgg_view_comments($blog); } else { $comments = ''; } $owner_title = sprintf(elgg_echo('blog:owner_title'), $user->name); echo <<<___END
$date $tags $categories $comments_link
$body
$linked_title
$date $tags $categories $comments_link
$excerpt