aboutsummaryrefslogtreecommitdiff
path: root/viewalbum.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-21 17:22:31 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-21 17:22:31 +0000
commitabbcdf538949aed8cc91f65bdf1c563506fc8614 (patch)
tree76927264c3cb4a15eb96f6cd728e0255032e02aa /viewalbum.php
parentac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259 (diff)
downloadelgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.gz
elgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.bz2
fixed view album - removed breadcrumbs for now
Diffstat (limited to 'viewalbum.php')
-rw-r--r--viewalbum.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/viewalbum.php b/viewalbum.php
new file mode 100644
index 000000000..5c8f0b2b9
--- /dev/null
+++ b/viewalbum.php
@@ -0,0 +1,43 @@
+<?php
+
+ /**
+ * Tidypics Album View Page
+ */
+
+ include_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+
+ // Get the GUID of the entity we want to view
+ $guid = (int) get_input('guid');
+
+ $context = get_input('context');
+ if ($context) set_context($context);
+
+ // Get the entity, if possible
+ if ($entity = get_entity($guid)) {
+
+ if ($entity->container_guid) {
+ set_page_owner($entity->container_guid);
+ } else {
+ set_page_owner($entity->owner_guid);
+ }
+
+ // Set the body to be the full view of the entity, and the title to be its title
+ if ($entity instanceof ElggObject) {
+ $title = $entity->title;
+ } else if ($entity instanceof ElggEntity) {
+ $title = $entity->name;
+ }
+
+ $area2 = elgg_view_title($title);
+
+ $area2 .= elgg_view_entity($entity, true);
+
+ // Otherwise?
+ } else {
+ }
+
+ $body = elgg_view_layout('two_column_left_sidebar', '', $area2);
+
+ // Display the page
+ page_draw($title, $body);
+?> \ No newline at end of file