aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/river/object')
-rw-r--r--views/default/river/object/album/create.php34
-rw-r--r--views/default/river/object/image/create.php36
-rw-r--r--views/default/river/object/image/tag.php26
-rw-r--r--views/default/river/object/tidypics_batch/create.php56
4 files changed, 0 insertions, 152 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php
deleted file mode 100644
index c8c79f406..000000000
--- a/views/default/river/object/album/create.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/**
- * Album river view
- *
- * @author Cash Costello
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
- */
-
-$album = $vars['item']->getObjectEntity();
-
-$album_river_view = elgg_get_plugin_setting('album_river_view', 'tidypics');
-if ($album_river_view == "cover") {
- $image = $album->getCoverImage();
- if ($image) {
- $attachments = elgg_view_entity_icon($image, 'tiny');
- }
-} else {
- $images = $album->getImages(7);
-
- 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>';
- }
-}
-
-echo elgg_view('river/elements/layout', array(
- 'item' => $vars['item'],
- 'attachments' => $attachments,
-));
diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php
deleted file mode 100644
index 08cfdc550..000000000
--- a/views/default/river/object/image/create.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Image album view
- *
- * @author Cash Costello
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
- */
-
-$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,
-));
-
-$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)),
-));
diff --git a/views/default/river/object/image/tag.php b/views/default/river/object/image/tag.php
deleted file mode 100644
index a59066c67..000000000
--- a/views/default/river/object/image/tag.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-$tagger = get_entity($vars['item']->subject_guid);
-$tagged = get_entity($vars['item']->object_guid);
-$annotation = get_annotation($vars['item']->annotation_id);
-if ($annotation) {
- $image = get_entity($annotation->entity_guid);
-
- // viewer may not have permission to view image
- if (!$image) {
- return;
- }
-
- $image_title = $image->title;
-}
-
-$tagger_link = "<a href=\"{$tagger->getURL()}\">$tagger->name</a>";
-$tagged_link = "<a href=\"{$tagged->getURL()}\">$tagged->name</a>";
-if (!empty($image_title)) {
- $image_link = "<a href=\"{$image->getURL()}\">$image_title</a>";
- $string = sprintf(elgg_echo('image:river:tagged'), $tagger_link, $tagged_link, $image_link);
-} else {
- $string = sprintf(elgg_echo('image:river:tagged:unknown'), $tagger_link, $tagged_link);
-}
-
-echo $string;
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
-));