diff options
Diffstat (limited to 'views/default/river/object')
| -rw-r--r-- | views/default/river/object/album/create.php | 47 | ||||
| -rw-r--r-- | views/default/river/object/image/create.php | 24 | ||||
| -rw-r--r-- | views/default/river/object/image/tag.php | 26 | ||||
| -rw-r--r-- | views/default/river/object/tidypics_batch/create.php | 51 |
4 files changed, 0 insertions, 148 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php deleted file mode 100644 index 4d797d842..000000000 --- a/views/default/river/object/album/create.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - -$performed_by = get_entity($vars['item']->subject_guid); -$album = get_entity($vars['item']->object_guid); - -$group_album = ($album->owner_guid != $album->container_guid); -if ($group_album) { - $group = get_entity($album->container_guid); - $group_name = $group->name; - $group_link = $group->getURL(); -} - -$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; -$string = sprintf(elgg_echo("album:river:created"), $url) . " "; -$string .= "<a href=\"" . $album->getURL() . "\">" . $album->title . "</a>"; -if ($group_album) { - $string .= ' ' . elgg_echo('album:river:group') . ' ' . "<a href=\"{$group_link}\" >{$group_name}</a>"; -} - -$album_river_view = get_plugin_setting('album_river_view', 'tidypics'); - -if ($album_river_view == "cover") { - $album_cover_guid = $album->getCoverImageGuid(); - if ($album_cover_guid) { - $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>"; - } -} else { - - $string .= "<div class=\"river_content\">"; - - $images = elgg_get_entities(array( - "type" => "object", - "subtype" => "image", - "container_guid" => $album->guid, - "limit" => 7, - )); - - if (count($images)) { - foreach($images as $image) { - $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>'; - } - } - - $string .= "</div>"; -} - -echo $string; diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php deleted file mode 100644 index 9de043e91..000000000 --- a/views/default/river/object/image/create.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -$performed_by = get_entity($vars['item']->subject_guid); -$image = get_entity($vars['item']->object_guid); -if ($image->title) { - $title = $image->title; -} else { - $title = elgg_echo("untitled"); -} - -$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; -$album = get_entity($image->container_guid); - -$album_link = "<a href='". $album->getURL() . "'>" . $album->title . "</a>"; -$image_link = "<a href=\"" . $image->getURL() . "\">" . $title . "</a>"; - -$string = sprintf(elgg_echo("image:river:created"), $url, $image_link, $album_link); - -$string .= "<div class=\"river_content\">"; - -$string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>'; -$string .= "</div>"; - -echo $string; 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 e7a4d1409..000000000 --- a/views/default/river/object/tidypics_batch/create.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php - -$performed_by = get_entity($vars['item']->subject_guid); -$batch = get_entity($vars['item']->object_guid); -$album = get_entity($batch->container_guid); - -if (!$batch || !$album) { - return true; -} - -// Get images related to this batch -$images = elgg_get_entities_from_relationship(array( - 'relationship' => 'belongs_to_batch', - 'relationship_guid' => $batch->getGUID(), - 'inverse_relationship' => true, - 'types' => array('object'), - 'subtypes' => array('image'), - 'offset' => 0, - )); - -// nothing to show -if (!$images) { - return true; -} - -$user_link = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>"; -$album_link = "<a href='" . $album->getURL() . "'>" . $album->title . "</a>"; -if (count($images) > 1) { - $image_text = elgg_echo("image:river:created:multiple"); - $string = sprintf($image_text, $user_link, count($images), $album_link); -} else { - $image_text = elgg_echo("image:river:created"); - $title = $images[0]->title; - if (!$title) { - $title = elgg_echo("untitled"); - } - $image_link = "<a href=\"" . $images[0]->getURL() . "\">" . $title . "</a>"; - $string = sprintf($image_text, $user_link, $image_link, $album_link); -} - -$string .= "<div class=\"river_content\">"; - -if (count($images)) { - foreach($images as $image) { - $string .= "<a href=\"" . $image->getURL() . "\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/> </a>'; - } -} - -$string .= "</div>"; - -echo $string; |
