pics/templates/AlbumButtonBox.php

31 lines
631 B
PHP

<?php
/*****************************************************************************
* AlbumButtonBox.php
* Defines the AlbumButtonBox template.
*
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
*****************************************************************************/
class AlbumButtonBox extends Template
{
private $buttons;
public function __construct($buttons)
{
$this->buttons = $buttons;
}
public function html_main()
{
echo '
<div class="album_button_box">';
foreach ($this->buttons as $button)
echo '
<a href="', $button['url'], '">', $button['caption'], '</a>';
echo '
</div>';
}
}