Add very basic context buttons to album pages.

This commit is contained in:
Aaron committed 2017-11-09 17:00:35 +01:00
1 parent ddcc28aff6
commit 2d77fbdbb7
3 files changed
+57

No files matched your search

+11
View File
@@ -57,6 +57,17 @@ class ViewPhotoAlbum extends HTMLController
if (isset($header_box))
$this->page->adopt($header_box);
$this->page->adopt(new AlbumButtonBox([
[
'url' => BASEURL . '/uploadmedia/?tag=' . $id_tag,
'caption' => 'Upload new photos here',
],
[
'url' => BASEURL . '/addalbum/?tag=' . $id_tag,
'caption' => 'Create new subalbum here',
]
]));
// Fetch subalbums, but only if we're on the first page.
if ($page === 1)
{