Add very basic context buttons to album pages.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user