Add very basic context buttons to album pages.
This commit is contained in:
28
templates/AlbumButtonBox.php
Normal file
28
templates/AlbumButtonBox.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*****************************************************************************
|
||||
* AlbumButtonBox.php
|
||||
* Defines the AlbumButtonBox template.
|
||||
*
|
||||
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
|
||||
*****************************************************************************/
|
||||
|
||||
class AlbumButtonBox extends SubTemplate
|
||||
{
|
||||
public function __construct($buttons)
|
||||
{
|
||||
$this->buttons = $buttons;
|
||||
}
|
||||
|
||||
protected function html_content()
|
||||
{
|
||||
echo '
|
||||
<div class="album_button_box">';
|
||||
|
||||
foreach ($this->buttons as $button)
|
||||
echo '
|
||||
<a href="', $button['url'], '">', $button['caption'], '</a>';
|
||||
|
||||
echo '
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user