2016-09-01 23:13:23 +02:00
|
|
|
<?php
|
|
|
|
/*****************************************************************************
|
|
|
|
* DummyBox.php
|
|
|
|
* Defines the key template DummyBox.
|
|
|
|
*
|
|
|
|
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
class DummyBox extends SubTemplate
|
|
|
|
{
|
2023-03-11 14:31:44 +01:00
|
|
|
protected $_content;
|
2022-12-25 13:50:33 +01:00
|
|
|
|
2023-03-11 14:38:49 +01:00
|
|
|
public function __construct($title = '', $content = '', $class = null)
|
2016-09-01 23:13:23 +02:00
|
|
|
{
|
2023-03-11 14:38:49 +01:00
|
|
|
parent::__construct($title);
|
2016-09-01 23:13:23 +02:00
|
|
|
$this->_content = $content;
|
2023-03-11 14:38:49 +01:00
|
|
|
|
|
|
|
if (isset($class))
|
|
|
|
$this->_class .= $class;
|
2016-09-01 23:13:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function html_content()
|
|
|
|
{
|
2023-03-11 14:38:49 +01:00
|
|
|
if ($this->_title)
|
|
|
|
echo '
|
|
|
|
<h2>', $this->_title, '</h2>';
|
|
|
|
|
|
|
|
echo $this->_content;
|
2016-09-01 23:13:23 +02:00
|
|
|
|
|
|
|
foreach ($this->_subtemplates as $template)
|
|
|
|
$template->html_main();
|
|
|
|
}
|
|
|
|
}
|