From 4766f36a4d74924f21ff329c4318ce4e069ffa04 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 17:53:05 +0000 Subject: Pulled in the interface changes. git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/object/bookmarks.php | 145 +++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 mod/bookmarks/views/default/object/bookmarks.php (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 new file mode 100644 index 000000000..45ed46769 --- /dev/null +++ b/mod/bookmarks/views/default/object/bookmarks.php @@ -0,0 +1,145 @@ + + * @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 -- cgit v1.2.3