diff options
Diffstat (limited to 'views/default/annotation/likes.php')
-rw-r--r-- | views/default/annotation/likes.php | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/views/default/annotation/likes.php b/views/default/annotation/likes.php deleted file mode 100644 index e1ae20818..000000000 --- a/views/default/annotation/likes.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Elgg show the users who liked the object - * - * @uses $vars['annotation'] - */ - -if (!isset($vars['annotation'])) { - return true; -} - -$like = $vars['annotation']; - -$user = $like->getOwnerEntity(); -if (!$user) { - return true; -} - -$user_icon = elgg_view_entity_icon($user, 'tiny'); -$user_link = elgg_view('output/url', array( - 'href' => $user->getURL(), - 'text' => $user->name, -)); - -$likes_string = elgg_echo('likes:this'); - -$friendlytime = elgg_view_friendly_time($like->time_created); - -if ($like->canEdit()) { - $delete_button = elgg_view("output/confirmlink",array( - 'href' => "action/likes/delete?annotation_id={$like->id}", - 'text' => "<span class=\"elgg-icon elgg-icon-delete right\"></span>", - 'confirm' => elgg_echo('deleteconfirm'), - 'text_encode' => false, - )); -} - -$body = <<<HTML -<p class="mbn"> - $delete_button - $user_link $likes_string - <span class="elgg-subtext"> - $friendlytime - </span> -</p> -HTML; - -echo elgg_view_image_block($user_icon, $body); |