示例#1
0
function kub_module($name, $tag = 'div')
{
    ob_start();
    jdocIncludeModules($name);
    $modules = ob_get_clean();
    if ($modules) {
        echo "<{$tag} id=\"{$name}\">";
        echo $modules;
        echo "</{$tag}>";
    }
}
示例#2
0
文件: error.php 项目: xi/kub-template
?>
" src="<?php 
e($this->baseurl);
?>
/templates/kub/images/logo.png" role="banner"/>
            </a>
            <?php 
kub_module('header-bottom');
?>
        </header>
        <nav id="nav">
            <?php 
kub_module('search');
?>
            <?php 
jdocIncludeModules('navigation');
?>
        </nav>
    </div>
    <div id="main-container">
        <main id="main" class="m-sidenav">
            <div class="page-header">
                <h2><?php 
e($this->error->getCode());
?>
 - <?php 
e(JText::_($this->error->getMessage()));
?>
</h2>
            </div>
            <?php