Example #1
0
 */
// No direct access.
defined('_HZEXEC_') or die;
if (!$this->sub) {
    $this->css();
}
$this->js('wiki.js', 'com_wiki')->js('jquery.fileuploader.js', 'system');
$tags = $this->page->tags('string');
if ($this->page->exists()) {
    $lid = $this->page->get('id');
} else {
    $lid = Request::getInt('lid', time() . rand(0, 10000), 'post');
}
$db = App::get('db');
$tbl = new \Components\Wiki\Tables\Page($db);
$db->setQuery($tbl->buildQuery(array('search' => 'Help:WikiMacros', 'sort' => 'title', 'sort_Dir' => 'asc', 'limit' => 1, 'start' => 0)));
$macros = new \Components\Wiki\Models\Page($db->loadObject());
$macros->set('group_cn', null);
$db->setQuery($tbl->buildQuery(array('search' => 'Help:WikiFormatting', 'sort' => 'title', 'sort_Dir' => 'asc', 'limit' => 1, 'start' => 0)));
$formatting = new \Components\Wiki\Models\Page($db->loadObject());
$formatting->set('group_cn', null);
?>
<header id="<?php 
echo $this->sub ? 'sub-content-header' : 'content-header';
?>
">
	<h2><?php 
echo $this->escape($this->title);
?>
</h2>
	<?php