diff options
author | cash <cash.costello@gmail.com> | 2011-11-19 12:10:46 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-19 12:10:46 -0500 |
commit | 4562cfbb1a630b14fd194271f99f1f8c098dc38d (patch) | |
tree | 926e9e22cca553f48583ff25d782a092795ceb7c /views/default/object/image | |
parent | eb9b13e1bfd861cba9b7a812d929b565d5775175 (diff) | |
download | elgg-4562cfbb1a630b14fd194271f99f1f8c098dc38d.tar.gz elgg-4562cfbb1a630b14fd194271f99f1f8c098dc38d.tar.bz2 |
basic pages for viewing all/mine/friends and viewing an album
Diffstat (limited to 'views/default/object/image')
-rw-r--r-- | views/default/object/image/full.php | 2 | ||||
-rw-r--r-- | views/default/object/image/summary.php | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/views/default/object/image/full.php b/views/default/object/image/full.php new file mode 100644 index 000000000..a4abe2daf --- /dev/null +++ b/views/default/object/image/full.php @@ -0,0 +1,2 @@ +<?php + diff --git a/views/default/object/image/summary.php b/views/default/object/image/summary.php new file mode 100644 index 000000000..71c1be6b9 --- /dev/null +++ b/views/default/object/image/summary.php @@ -0,0 +1,43 @@ +<?php +/** + * Summary of an image for lists/galleries + * + * @uses $vars['entity'] TidypicsImage + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$image = elgg_extract('entity', $vars); + +$img = elgg_view('output/img', array( + 'src' => $image->getSrcURL(), + 'alt' => $image->getTitle(), + 'class' => 'elgg-photo', +)); + +$header = elgg_view('output/url', array( + 'text' => $image->getTitle(), + 'href' => $image->getURL(), +)); + +$body = elgg_view('output/url', array( + 'text' => $img, + 'href' => $image->getURL(), + 'encode_text' => false, + 'is_trusted' => true, +)); + +/* +$footer = elgg_view('output/url', array( + 'text' => $image->getContainerEntity()->name, + 'href' => $image->getContainerEntity()->getURL(), + 'is_trusted' => true, +)); +$footer .= '<div class="elgg-subtext">' . elgg_echo('album:num', array($album->getSize())) . '</div>'; +*/ + +$params = array( + 'footer' => $footer, +); +echo elgg_view_module('tidypics-image', $header, $body, $params); |