2016-09-03 22:23:27 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* AlbumHeaderBox.php
|
|
|
|
* Defines the AlbumHeaderBox template.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2016, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-03-11 13:37:59 +01:00
|
|
|
class AlbumHeaderBox extends Template
|
2016-09-03 22:23:27 +02:00
|
|
|
{
|
2022-12-25 13:50:33 +01:00
|
|
|
private $back_link_title;
|
|
|
|
private $back_link;
|
|
|
|
private $description;
|
|
|
|
private $title;
|
|
|
|
|
2016-09-03 22:23:27 +02:00
|
|
|
public function __construct($title, $description, $back_link, $back_link_title)
|
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
$this->description = $description;
|
|
|
|
$this->back_link = $back_link;
|
|
|
|
$this->back_link_title = $back_link_title;
|
|
|
|
}
|
|
|
|
|
2023-03-11 13:37:59 +01:00
|
|
|
public function html_main()
|
2016-09-03 22:23:27 +02:00
|
|
|
{
|
|
|
|
echo '
|
|
|
|
<div class="album_title_box">
|
2023-03-11 14:17:38 +01:00
|
|
|
<a class="back_button" href="', $this->back_link, '" title="', $this->back_link_title, '">
|
|
|
|
<i class="bi bi-arrow-left"></i>
|
|
|
|
</a>
|
2016-09-03 22:23:27 +02:00
|
|
|
<div>
|
|
|
|
<h2>', $this->title, '</h2>';
|
|
|
|
|
|
|
|
if (!empty($this->description))
|
|
|
|
echo '
|
|
|
|
<p>', $this->description, '</p>';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
</div>
|
|
|
|
</div>';
|
|
|
|
}
|
|
|
|
}
|