Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/blocks.tar
Назад
mainbody-content-right.php 0000604 00000006675 15245606536 0011670 0 ustar 00 <?php /** * @package T3 Blank * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Mainbody 3 columns, content in right, mast-col on top of 2 sidebars: sidebar1 - sidebar2 - content */ defined('_JEXEC') or die; ?> <?php // Layout configuration $layout_config = json_decode ('{ "two_sidebars": { "default" : [ "span6 pull-right" , "span6" , "span3" , "span3" ], "wide" : [], "xtablet" : [ "span8 pull-right" , "span4" , "span4" , "span4 spanfirst" ], "tablet" : [ "span12" , "span12 spanfirst" , "span6" , "span6" ] }, "one_sidebar": { "default" : [ "span9 pull-right" , "span3" , "span3" ], "wide" : [], "xtablet" : [ "span8 pull-right" , "span4" , "span4" ], "tablet" : [ "span12" , "span12 spanfirst" , "span12" ] }, "no_sidebar": { "default" : [ "span12" ] } }'); // positions configuration $mastcol = 'mast-col'; $sidebar1 = 'sidebar-1'; $sidebar2 = 'sidebar-2'; // Detect layout if ($this->countModules($mastcol) or $this->countModules("$sidebar1 and $sidebar2")) { $layout = "two_sidebars"; } elseif ($this->countModules("$sidebar1 or $sidebar2")) { $layout = "one_sidebar"; } else { $layout = "no_sidebar"; } $layout = $layout_config->$layout; $col = 0; ?> <div id="t3-mainbody" class="container t3-mainbody"> <div class="row"> <!-- MAIN CONTENT --> <div id="t3-content" class="t3-content <?php echo $this->getClass($layout, $col) ?>" <?php echo $this->getData ($layout, $col++) ?>> <jdoc:include type="message" /> <jdoc:include type="component" /> </div> <!-- //MAIN CONTENT --> <?php if ($this->countModules("$sidebar1 or $sidebar2 or $mastcol")) : ?> <div class="t3-sidebar <?php echo $this->getClass($layout, $col) ?>" <?php echo $this->getData ($layout, $col++) ?>> <?php if ($this->countModules($mastcol)) : ?> <!-- MASSCOL 1 --> <div class="t3-mastcol t3-mastcol-1<?php $this->_c($mastcol)?>"> <jdoc:include type="modules" name="<?php $this->_p($mastcol) ?>" style="T3Xhtml" /> </div> <!-- //MASSCOL 1 --> <?php endif ?> <?php if ($this->countModules("$sidebar1 or $sidebar2")) : ?> <div class="row"> <?php if ($this->countModules($sidebar1)) : ?> <!-- SIDEBAR 1 --> <div class="t3-sidebar t3-sidebar-1 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar1)?>" <?php echo $this->getData ($layout, $col++) ?>> <jdoc:include type="modules" name="<?php $this->_p($sidebar1) ?>" style="T3Xhtml" /> </div> <!-- //SIDEBAR 1 --> <?php endif ?> <?php if ($this->countModules($sidebar2)) : ?> <!-- SIDEBAR 2 --> <div class="t3-sidebar t3-sidebar-2 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar2)?>" <?php echo $this->getData ($layout, $col++) ?>> <jdoc:include type="modules" name="<?php $this->_p($sidebar2) ?>" style="T3Xhtml" /> </div> <!-- //SIDEBAR 2 --> <?php endif ?> </div> <?php endif ?> </div> <?php endif ?> </div> </div> mainnav.php 0000604 00000001740 15245606536 0006720 0 ustar 00 <?php /** * @package T3 Blank * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <!-- MAIN NAVIGATION --> <nav id="t3-mainnav" class="wrap t3-mainnav navbar-collapse-fixed-top"> <div class="container navbar"> <div class="navbar-inner"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <i class="icon-reorder"></i> </button> <div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>"> <?php if ($this->getParam('navigation_type') == 'megamenu') : ?> <jdoc:include type="megamenu" /> <?php else : ?> <jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" /> <?php endif ?> </div> </div> </div> </nav> <!-- //MAIN NAVIGATION -->