From 3f750d86ed5b4acd80c9ed656eac9610c76201f9 Mon Sep 17 00:00:00 2001
From: Cash Costello
Date: Sat, 20 Jun 2009 19:56:10 +0000
Subject: added some documentation to object/album view
---
views/default/object/album.php | 75 +++++++++++++++++++++++++++---------------
1 file changed, 48 insertions(+), 27 deletions(-)
(limited to 'views/default/object')
diff --git a/views/default/object/album.php b/views/default/object/album.php
index eb26123e2..34174e571 100644
--- a/views/default/object/album.php
+++ b/views/default/object/album.php
@@ -17,31 +17,45 @@
if (get_context() == "search") {
if (get_input('search_viewtype') == "gallery") {
- //default gallery view for album listing @ /photos/owned/
-
+
+/******************************************************************************
+ *
+ * Gallery view of an album object
+ *
+ * This is called when looking at page of albums (index.php).
+ *
+ *
+ *****************************************************************************/
+
//get album cover if one was set
- if($file->cover)
- $album_cover = '';
+ if ($file->cover)
+ $album_cover = '';
else
$album_cover = '';
- ?>
-
-
-
-
name;?>
- getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")";
- ?>
-
-
-
-
+
+
+
+
name;?>
+getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")";
+?>
+
+
+'.$title.'
';
$info .= "username}\">{$owner->name} {$friendlytime}";
@@ -53,11 +67,18 @@
$icon = "getURL()}\">" . elgg_view("tidypics/icon", array('album' => true, 'size' => 'small')) . "";
echo elgg_view_listing($icon, $info);
-
}
-
- } else {
- // individual album view
+ } else {
+
+/******************************************************************************
+ *
+ * Individual view of an album object
+ *
+ * This is called when getting a listing of the photos in an album
+ *
+ *
+ *****************************************************************************/
+
$page = get_input("page");
list($album_placeholder, $album_id, $album_title) = split("/", $page);
@@ -85,7 +106,7 @@
array_push($_SESSION['image_sort'], $image->guid);
}
- echo list_entities("object","image", $file_guid, 24, false);
+ echo list_entities("object","image", $file_guid, 24, false);
} else {
echo elgg_echo('image:none');
}
@@ -97,12 +118,12 @@
$tags));?>
name; ?>
-
+
';
--
cgit v1.2.3