2016-09-04 14:49:13 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* AlbumButtonBox.php
|
|
|
|
* Defines the AlbumButtonBox template.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-03-11 13:37:59 +01:00
|
|
|
class AlbumButtonBox extends Template
|
2016-09-04 14:49:13 +02:00
|
|
|
{
|
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;
|
|
|
|
}
|
|
|
|
|
2023-03-11 13:37:59 +01:00
|
|
|
public function html_main()
|
2016-09-04 14:49:13 +02:00
|
|
|
{
|
|
|
|
echo '
|
|
|
|
<div class="album_button_box">';
|
|
|
|
|
|
|
|
foreach ($this->buttons as $button)
|
|
|
|
echo '
|
2023-03-11 13:51:12 +01:00
|
|
|
<a class="btn btn-light" href="', $button['url'], '">', $button['caption'], '</a>';
|
2016-09-04 14:49:13 +02:00
|
|
|
|
|
|
|
echo '
|
|
|
|
</div>';
|
|
|
|
}
|
|
|
|
}
|