forked from Public/pics
Aaron van Geffen
ab0e4efbcb
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
32 lines
778 B
PHP
32 lines
778 B
PHP
<?php
|
|
/*****************************************************************************
|
|
* DummyBox.php
|
|
* Defines the key template DummyBox.
|
|
*
|
|
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
|
*****************************************************************************/
|
|
|
|
class DummyBox extends SubTemplate
|
|
{
|
|
public function __construct($title = '', $content = '', $class = '')
|
|
{
|
|
$this->_title = $title;
|
|
$this->_content = $content;
|
|
$this->_class = $class;
|
|
}
|
|
|
|
protected function html_content()
|
|
{
|
|
echo '
|
|
<div class="boxed_content', $this->_class ? ' ' . $this->_class : '', '">', $this->_title ? '
|
|
<h2>' . $this->_title . '</h2>' : '', '
|
|
', $this->_content;
|
|
|
|
foreach ($this->_subtemplates as $template)
|
|
$template->html_main();
|
|
|
|
echo '
|
|
</div>';
|
|
}
|
|
}
|