forked from Public/pics
Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
This commit is contained in:
31
templates/DummyBox.php
Normal file
31
templates/DummyBox.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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>';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user