diff options
author | cash <cash.costello@gmail.com> | 2011-10-25 19:18:09 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-25 19:18:09 -0400 |
commit | 08910caa0a8750a449db6910bb28d0d1e758c615 (patch) | |
tree | abfb6e85ec8487c246e9f4c5d6e3f6327ccbfa39 /views | |
parent | 65bd37c1f0e3e3adb04bd48dad6183bcd3c7e26c (diff) | |
download | elgg-08910caa0a8750a449db6910bb28d0d1e758c615.tar.gz elgg-08910caa0a8750a449db6910bb28d0d1e758c615.tar.bz2 |
added new view for the full display of objects
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/elements/full.php | 45 |
1 files changed, 45 insertions, 0 deletions
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 @@ +<?php +/** + * Object full rendering + * + * Sample output + * <h2>Title</h3> + * <div class="elgg-content"> + * <div class="elgg-image-block"> + * </div> + * <div class="elgg-output"> + * </div> + * </div> + * + * @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 <<<HTML +$title +<div class="$class"> +$header +$body +</div> +HTML; |