diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:22:50 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:22:50 +0100 |
commit | f448cd91f9ecebea37daf40aada2fa1a20200817 (patch) | |
tree | 4636059da6a1be133a4974e5098b7c1e08944dd5 /mod/lightpics/views/default/river/object/image/create.php | |
parent | 52335325e5ea8c89c711e1ba40d9ac1657004e61 (diff) | |
parent | 324f39c3a9aa41e9e23bafba38882a2b72f62441 (diff) | |
download | elgg-f448cd91f9ecebea37daf40aada2fa1a20200817.tar.gz elgg-f448cd91f9ecebea37daf40aada2fa1a20200817.tar.bz2 |
Add 'mod/lightpics/' from commit '324f39c3a9aa41e9e23bafba38882a2b72f62441'
git-subtree-dir: mod/lightpics
git-subtree-mainline: 52335325e5ea8c89c711e1ba40d9ac1657004e61
git-subtree-split: 324f39c3a9aa41e9e23bafba38882a2b72f62441
Diffstat (limited to 'mod/lightpics/views/default/river/object/image/create.php')
-rw-r--r-- | mod/lightpics/views/default/river/object/image/create.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mod/lightpics/views/default/river/object/image/create.php b/mod/lightpics/views/default/river/object/image/create.php new file mode 100644 index 000000000..6b68b4d68 --- /dev/null +++ b/mod/lightpics/views/default/river/object/image/create.php @@ -0,0 +1,41 @@ +<?php +/** + * Image album view + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +elgg_load_css('lightbox'); +elgg_load_js('lightbox'); +elgg_load_js('tidypics'); + +$subject = $vars['item']->getSubjectEntity(); +$subject_link = elgg_view('output/url', array( + 'href' => $subject->getURL(), + 'text' => $subject->name, + 'class' => 'elgg-river-subject', + 'is_trusted' => true, +)); + +$image = $vars['item']->getObjectEntity(); +$attachments = elgg_view_entity_icon($image, 'tiny'); + +$image_link = elgg_view('output/url', array( + 'href' => $image->getURL(), + 'text' => $image->getTitle(), + 'is_trusted' => true, + 'class' => 'elgg-lightbox-photo', +)); + +$album_link = elgg_view('output/url', array( + 'href' => $image->getContainerEntity()->getURL(), + 'text' => $image->getContainerEntity()->getTitle(), + 'is_trusted' => true, +)); + +echo elgg_view('river/elements/layout', array( + 'item' => $vars['item'], + 'attachments' => $attachments, + 'summary' => elgg_echo('image:river:created', array($subject_link, $image_link, $album_link)), +)); |