pics/templates/DummyBox.php

34 lines
727 B
PHP
Raw Permalink Normal View History

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