7dc87d2 Feb 2, 2015
137 lines (114 sloc) 4.83 KB
* @package Joomla.Site
* @subpackage Templates.h5bptb
* @copyright Copyright (C) 2014 - 2015 Iván Ramos Jiménez. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
defined('_JEXEC') or die;
// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showLeftColumn = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
if ($showRightColumn==0 and $showLeftColumn==0) $showNoColumns = 1;
else $showNoColumns = 0;
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.min.css">
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jui/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="">upgrade your browser</a> to improve your experience.</p>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#"><?php echo $app->getCfg('sitename'); ?></a>
<div class="collapse navbar-collapse">
<jdoc:include type="modules" name="position-1" style="none"/>
<jdoc:include type="modules" name="position-0" style="navSearch"/>
</div><!--/.nav-collapse -->
<div class="container">
<div class="row">
<?php if($showLeftColumn) : ?>
<aside class="col-md-3">
<jdoc:include type="modules" name="position-7" style="xhtml"/>
<jdoc:include type="modules" name="position-4" style="xhtml"/>
<jdoc:include type="modules" name="position-5" style="xhtml"/>
<?php endif; ?>
<section class="<?php echo ($showNoColumns ? 'col-md-12' : (($showLeftColumn==0 or $showRightColumn==0) ? 'col-md-9':'col-md-6')); ?>">
<?php if ($this->countModules('position-12')): ?>
<div id="top">
<jdoc:include type="modules" name="position-12"/>
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="position-2" style="none" />
<?php if($showRightColumn) : ?>
<aside class="col-md-3">
<jdoc:include type="modules" name="position-6" style="xhtml"/>
<jdoc:include type="modules" name="position-8" style="xhtml"/>
<jdoc:include type="modules" name="position-3" style="xhtml"/>
<?php endif; ?>
<?php if ($showbottom) : ?>
<div class="row">
<div class="col-md-4">
<jdoc:include type="modules" name="position-9" style="xhtml"/>
<div class="col-md-4">
<jdoc:include type="modules" name="position-10" style="xhtml"/>
<div class="col-md-4">
<jdoc:include type="modules" name="position-11" style="xhtml"/>
<?php endif ; ?>
<div class="row">
<div class="col-md-3">
<?php echo JText::_('TPL_H5BPTB_POWERED_BY');?> <a href="">Joomla!&#174;</a>
<div class="col-md-3 offset4">
<jdoc:include type="modules" name="position-14" />
<jdoc:include type="modules" name="debug" />
<?php JHtml::_('jquery.framework'); ?>
<?php JHtml::_('bootstrap.framework'); ?>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/script.js"></script>