From 0320936f29dd83534b5af386a981131be7981a9a Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 23:15:07 +0000 Subject: Updated bookmarks with new interface. git-svn-id: http://code.elgg.org/elgg/trunk@5266 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/object/bookmarks.php | 223 ++++++++--------------- 1 file changed, 80 insertions(+), 143 deletions(-) (limited to 'mod/bookmarks/views/default/object/bookmarks.php') diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php index 45ed46769..95baf5f54 100644 --- a/mod/bookmarks/views/default/object/bookmarks.php +++ b/mod/bookmarks/views/default/object/bookmarks.php @@ -1,145 +1,82 @@ - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.org/ - */ - - $owner = $vars['entity']->getOwnerEntity(); - $friendlytime = friendly_time($vars['entity']->time_created); - - if (get_context() == "search") { - - if (get_input('search_viewtype') == "gallery") { - - $parsed_url = parse_url($vars['entity']->address); - $faviconurl = $parsed_url['scheme'] . "://" . $parsed_url['host'] . "/favicon.ico"; - - $info = ""; - $info .= ""; - $numcomments = elgg_count_comments($vars['entity']); - if ($numcomments) - $info .= ""; - - //display - echo ""; - - - } else { - - $parsed_url = parse_url($vars['entity']->address); - $faviconurl = $parsed_url['scheme'] . "://" . $parsed_url['host'] . "/favicon.ico"; - if (@file_exists($faviconurl)) { - $icon = ""; - } else { - $icon = elgg_view( - "profile/icon", array( - 'entity' => $owner, - 'size' => 'small', - ) - ); - } - - $info = ""; - $info .= "

username}\">{$owner->name} {$friendlytime}"; - $numcomments = elgg_count_comments($vars['entity']); - if ($numcomments) - $info .= ", getURL()}\">".sprintf(elgg_echo("comments")). " (" . $numcomments . ")"; - $info .= "

"; - echo elgg_view_listing($icon, $info); - - } - - } else { - -?> - -
- -
- - - \ No newline at end of file +//display +echo elgg_view_listing($icon, $info); \ No newline at end of file -- cgit v1.2.3