diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-21 17:22:31 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-21 17:22:31 +0000 |
commit | abbcdf538949aed8cc91f65bdf1c563506fc8614 (patch) | |
tree | 76927264c3cb4a15eb96f6cd728e0255032e02aa /viewalbum.php | |
parent | ac0e60fd90c55a3a7d4f2001eb9e4cce44a5b259 (diff) | |
download | elgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.gz elgg-abbcdf538949aed8cc91f65bdf1c563506fc8614.tar.bz2 |
fixed view album - removed breadcrumbs for now
Diffstat (limited to 'viewalbum.php')
-rw-r--r-- | viewalbum.php | 43 |
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 |