aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views/default/object
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-25 19:18:09 -0400
committercash <cash.costello@gmail.com>2011-10-25 19:18:09 -0400
commit08910caa0a8750a449db6910bb28d0d1e758c615 (patch)
treeabfb6e85ec8487c246e9f4c5d6e3f6327ccbfa39 /mod/bookmarks/views/default/object
parent65bd37c1f0e3e3adb04bd48dad6183bcd3c7e26c (diff)
downloadelgg-08910caa0a8750a449db6910bb28d0d1e758c615.tar.gz
elgg-08910caa0a8750a449db6910bb28d0d1e758c615.tar.bz2
added new view for the full display of objects
Diffstat (limited to 'mod/bookmarks/views/default/object')
-rw-r--r--mod/bookmarks/views/default/object/bookmarks.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php
index bdd623bb5..ba8029a54 100644
--- a/mod/bookmarks/views/default/object/bookmarks.php
+++ b/mod/bookmarks/views/default/object/bookmarks.php
@@ -58,7 +58,6 @@ if (elgg_in_context('widgets')) {
}
if ($full && !elgg_in_context('gallery')) {
- $header = elgg_view_title($bookmark->title);
$params = array(
'entity' => $bookmark,
@@ -68,19 +67,24 @@ if ($full && !elgg_in_context('gallery')) {
'tags' => $tags,
);
$params = $params + $vars;
- $list_body = elgg_view('object/elements/summary', $params);
- $bookmark_info = elgg_view_image_block($owner_icon, $list_body);
+ $summary = elgg_view('object/elements/summary', $params);
$bookmark_icon = elgg_view_icon('push-pin-alt');
- echo <<<HTML
-$header
-$bookmark_info
+ $body = <<<HTML
<div class="bookmark elgg-content mts">
$bookmark_icon<span class="elgg-heading-basic mbs">$link</span>
$description
</div>
HTML;
+ echo elgg_view('object/elements/full', array(
+ 'entity' => $bookmark,
+ 'title' => $bookmark->title,
+ 'icon' => $owner_icon,
+ 'summary' => $summary,
+ 'body' => $body,
+ ));
+
} elseif (elgg_in_context('gallery')) {
echo <<<HTML
<div class="bookmarks-gallery-item">
@@ -124,4 +128,4 @@ HTML;
$body = elgg_view('object/elements/summary', $params);
echo elgg_view_image_block($owner_icon, $body);
-} \ No newline at end of file
+}