Add very basic context buttons to album pages.

This commit is contained in:
2016-09-04 14:49:13 +02:00
parent ddcc28aff6
commit 2d77fbdbb7
3 changed files with 57 additions and 0 deletions

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)
{