From 4562cfbb1a630b14fd194271f99f1f8c098dc38d Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Nov 2011 12:10:46 -0500 Subject: basic pages for viewing all/mine/friends and viewing an album --- pages/photos/album/view.php | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pages/photos/album/view.php (limited to 'pages/photos/album/view.php') diff --git a/pages/photos/album/view.php b/pages/photos/album/view.php new file mode 100644 index 000000000..adb5a1b51 --- /dev/null +++ b/pages/photos/album/view.php @@ -0,0 +1,46 @@ +getContainerGUID()); +$owner = elgg_get_page_owner_entity(); + +$title = elgg_echo($album->getTitle()); + +// set up breadcrumbs +elgg_push_breadcrumb(elgg_echo('photos'), 'photos/all'); +elgg_push_breadcrumb($owner->name, "photos/owner/$owner->username"); +elgg_push_breadcrumb($album->getTitle()); + +$content = elgg_view_entity($album, array('full_view' => true)); + +if ($album->canWriteToContainer()) { + elgg_register_menu_item('title', array( + 'name' => 'upload', + 'href' => 'photos/upload/' . $album->getGUID(), + 'text' => elgg_echo('images:upload'), + 'link_class' => 'elgg-button elgg-button-action', + )); +} + +$body = elgg_view_layout('content', array( + 'filter' => false, + 'content' => $content, + 'title' => $album->getTitle(), + 'sidebar' => elgg_view('tidypics/sidebar', array('page' => 'album')), +)); + +echo elgg_view_page($title, $body); -- cgit v1.2.3