direction = JRequest::getVar('dir', 'ltr'); // for testing or demo only global $omg; require_once(dirname(__FILE__) . DS . 'lib' . DS . 'omg.tpl.php'); //$omg->document->addScript(OURI_JUI_MEDIA_JS.'/respond.min.js'); JHtml::_('bootstrap.framework'); //JHtmlBootstrap::loadCss($includeMaincss = true, $this->direction); omg_loadBootstrapCss($includeMaincss = true, $this->direction); // load main template CSS file omg_loadTemplateMainCss(); // load preset CSS file omg_loadPresetCss(); // load custom css for background and typo omg_renderCustomBgCss(); omg_renderCustomTypoCss(); ?> document->addScript($omg->templateUrl.'/js/otscript.js'); ?> document->addStyleSheet($omg->templateUrl.'/css/no-space.css'); ?> document->addStyleSheet($omg->templateUrl.'/css/fonts.css'); ?> isIE('<=', 9) && $loadPIE) : ?> includeModules($blockName="BLOCKNAME", $style="STYLE"); Where: + $blockName: name of block decleared in templateDetails.xml + $style: xhtml|raw|etc. Note that we can define these style (chrome style) in /html/module.php Example: echo $omg->includeModules("bottom1", "xhtml"); For mainbody block: echo $omg->includeSidebarsAndComponent($blockName="sidebar", $sidebarStyle="xhtml", $style="xhtml"; Where: + $sidebarStyle: Chrome style of modules in sidebar + $style: Chrome style of modules in other positions block, such as: content-top, content-bottom */ ?>
includeModules("top1", "standard"); ?> includeModules("top2", "standard"); ?> includeModules("top3", "standard"); ?> includeModules("top4", "standard"); ?> includeModules("top5", "standard"); ?>
countModulesInBlock("middle1")||$omg->countModulesInBlock("middle2")||$omg->countModulesInBlock("middle3")) {?>
countModulesInBlock("middle1")) {?>
includeModules("middle1", "standard"); ?>
countModulesInBlock("middle2")) {?>
includeModules("middle2", "standard"); ?>
countModulesInBlock("middle3")) {?>
includeModules("middle3", "standard"); ?>
includeModules("maintop1", "standard"); ?> includeModules("maintop2", "standard"); ?> includeSidebarsAndComponent("sidebar", "standard", "standard"); ?> includeModules("mainbottom1", "standard"); ?> includeModules("mainbottom2", "standard"); ?>
countModulesInBlock("bottom1")||$omg->countModulesInBlock("bottom2")||$omg->countModulesInBlock("bottom3")) {?>
includeModules("bottom1", "standard"); ?> includeModules("bottom2", "standard"); ?> includeModules("bottom3", "standard"); ?>
countModulesInBlock("footer1")||$omg->countModulesInBlock("footer2")) {?>
includeModules("footer1", "standard"); ?> includeModules("footer2", "standard"); ?>
includeTemplateControl(); ?>