Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
step 12 - conditional loading of modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Jan 30, 2015
1 parent 47ad152 commit c58e6b1
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,41 @@
</header>

<main>
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="sidebar-a" style="no" />
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-push-4 col-md-9 col-md-push-3">
<?php if(count(JFactory::getApplication()->getMessageQueue())):?>
<jdoc:include type="message" />
<?php endif; ?>
<jdoc:include type="component" />
</div>
<div class="col-sm-4 col-sm-pull-8 col-md-3 col-md-pull-9">
<jdoc:include type="modules" name="sidebar-a" style="none" />
</div>
</div>
</div>
</main>

<footer>
<jdoc:include type="modules" name="footer" style="no" />
<?php if ($this->countModules('footer')): ?>
<section class="footer-nav">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="footer" style="no" />
</div>
</div>
</section>
<?php endif; ?>

<?php if ($this->countModules('copyright')): ?>
<section class="footer-copyright">
<div class="container">
<div class="row">
<jdoc:include type="modules" name="copyright" style="no" />
</div>
</div>
</section>
<?php endif; ?>
</footer>
</body>
</html>

0 comments on commit c58e6b1

Please sign in to comment.