From 4e0c1576475390faa2f1fb4c4dc2902a953f440e Mon Sep 17 00:00:00 2001
From: Cash Costello
Date: Wed, 25 Feb 2009 12:16:53 +0000
Subject: First commit
---
views/default/object/album.php | 137 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 137 insertions(+)
create mode 100644 views/default/object/album.php
(limited to 'views/default/object/album.php')
diff --git a/views/default/object/album.php b/views/default/object/album.php
new file mode 100644
index 000000000..b95d55eed
--- /dev/null
+++ b/views/default/object/album.php
@@ -0,0 +1,137 @@
+getGUID();
+ $tags = $file->tags;
+ $title = $file->title;
+ $desc = $file->description;
+ $owner = $vars['entity']->getOwnerEntity();
+ $friendlytime = friendly_time($vars['entity']->time_created);
+ $mime = $file->mimetype;
+
+ if (get_context() == "search") {
+
+ if (get_input('search_viewtype') == "gallery") {
+ //default gallery view for album listing @ /photos/owned/
+
+ //get album cover if one was set
+ if($file->cover)
+ $album_cover = '';
+ else
+ $album_cover = '';
+
+ ?>
+
+
+
+
name;?>
+ getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")";
+ ?>
+
+
+
+ '.$title.'
';
+ $info .= "
+username) || empty(page_owner_entity()->username)) { //when no owner available, link to world photos
+?>
+
>
+
+
name); ?> >
+
+
+
+
+'.$title.'';
+ echo '
+
">
+
+
+ $vars['url'] . "action/tidypics/delete?file=" . $file->getGUID(),
+ 'text' => elgg_echo("album:delete"),
+ 'confirm' => elgg_echo("album:delete:confirm"),
+ ));
+ ?>
+
+guid);
+ }
+
+ if(count($count) > 0)
+ echo list_entities("object","image", $file_guid, 24, false);
+ else
+ echo elgg_echo('image:none');
+
+?>
+