From 08910caa0a8750a449db6910bb28d0d1e758c615 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 25 Oct 2011 19:18:09 -0400 Subject: added new view for the full display of objects --- views/default/object/elements/full.php | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 views/default/object/elements/full.php (limited to 'views') diff --git a/views/default/object/elements/full.php b/views/default/object/elements/full.php new file mode 100644 index 000000000..4a2991442 --- /dev/null +++ b/views/default/object/elements/full.php @@ -0,0 +1,45 @@ +Title + *
+ *
+ *
+ *
+ *
+ *
+ * + * @uses $vars['entity'] ElggEntity + * @uses $vars['title'] Title (false for no title) + * @uses $vars['icon'] HTML for the content icon + * @uses $vars['summary'] HTML for the content summary + * @uses $vars['body'] HTML for the content body + * @uses $vars['class'] Optional additional class for the content wrapper + */ + +$title = elgg_extract('title', $vars); +$icon = elgg_extract('icon', $vars); +$summary = elgg_extract('summary', $vars); +$body = elgg_extract('body', $vars); +$class = elgg_extract('class', $vars); +if ($class) { + $class = "elgg-content $class"; +} else { + $class = "elgg-content"; +} + +if ($title) { + $title = elgg_view_title($title); +} + +$header = elgg_view_image_block($icon, $summary); + +echo << +$header +$body + +HTML; -- cgit v1.2.3 From 5c43ddc2d58dbe7a280742131f221e4947f73125 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 25 Oct 2011 19:30:44 -0400 Subject: Fixes #2292 added object/summary/extend view --- views/default/object/elements/summary.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'views') diff --git a/views/default/object/elements/summary.php b/views/default/object/elements/summary.php index 3ca4de2be..8d82bc52a 100644 --- a/views/default/object/elements/summary.php +++ b/views/default/object/elements/summary.php @@ -49,6 +49,9 @@ if ($metadata) { echo "

$title_link

"; echo "
$subtitle
"; echo $tags; + +echo elgg_view('object/summary/extend', $vars); + if ($content) { echo "
$content
"; } -- cgit v1.2.3