aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object/tidypics_batch
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/object/tidypics_batch')
-rw-r--r--views/default/river/object/tidypics_batch/create.php56
1 files changed, 0 insertions, 56 deletions
diff --git a/views/default/river/object/tidypics_batch/create.php b/views/default/river/object/tidypics_batch/create.php
deleted file mode 100644
index 418cf1ac3..000000000
--- a/views/default/river/object/tidypics_batch/create.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-/**
- * Batch river view
- *
- * @author Cash Costello
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
- */
-
-$batch = $vars['item']->getObjectEntity();
-
-// Get images related to this batch
-$images = elgg_get_entities_from_relationship(array(
- 'relationship' => 'belongs_to_batch',
- 'relationship_guid' => $batch->getGUID(),
- 'inverse_relationship' => true,
- 'type' => 'object',
- 'subtype' => 'image',
- 'offset' => 0,
-));
-
-$album = $batch->getContainerEntity();
-$album_link = elgg_view('output/url', array(
- 'href' => $album->getURL(),
- 'text' => $album->getTitle(),
- 'is_trusted' => true,
-));
-
-$subject = $vars['item']->getSubjectEntity();
-$subject_link = elgg_view('output/url', array(
- 'href' => $subject->getURL(),
- 'text' => $subject->name,
- 'class' => 'elgg-river-subject',
- 'is_trusted' => true,
-));
-
-if (count($images)) {
- $attachments = '<ul class="tidypics-river-list">';
- foreach($images as $image) {
- $attachments .= '<li class="tidypics-photo-item">';
- $attachments .= elgg_view_entity_icon($image, 'tiny');
- $attachments .= '</li>';
- }
- $attachments .= '</ul>';
-}
-
-if (count($images) == 1) {
- $summary = elgg_echo('image:river:created', array($subject_link, $album_link));
-} else {
- $summary = elgg_echo('image:river:created:multiple', array($subject_link, count($images), $album_link));
-}
-
-echo elgg_view('river/elements/layout', array(
- 'item' => $vars['item'],
- 'attachments' => $attachments,
- 'summary' => $summary
-));