2016-09-04 14:49:13 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* AlbumButtonBox.php
|
|
|
|
* Defines the AlbumButtonBox template.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
class AlbumButtonBox extends SubTemplate
|
|
|
|
{
|
2022-12-25 13:50:33 +01:00
|
|
|
private $buttons;
|
|
|
|
|
2016-09-04 14:49:13 +02:00
|
|
|
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>';
|
|
|
|
}
|
|
|
|
}
|