Guest User

endif

a guest
Jul 24th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.30 KB | None | 0 0
  1. <?php
  2. /**
  3. * @version   $Id: index.php 10994 2013-05-30 21:50:32Z kevin $
  4.  * @author RocketTheme http://www.rockettheme.com
  5.  * @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
  6.  * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
  7.  *
  8.  * Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
  9.  *
  10.  */
  11. // no direct access
  12. defined( '_JEXEC' ) or die( 'Restricted index access' );
  13.  
  14. // load and inititialize gantry class
  15. require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
  16. $gantry->init();
  17.  
  18. // get the current preset
  19. $gpreset = str_replace(' ','',strtolower($gantry->get('name')));
  20.  
  21. ?>
  22. <!doctype html>
  23. <html xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
  24. <head>
  25.   <?php if ($gantry->get('layout-mode') == '960fixed') : ?>
  26.   <meta name="viewport" content="width=960px">
  27. <?php elseif ($gantry->get('layout-mode') == '1200fixed') : ?>
  28.   <meta name="viewport" content="width=1200px">
  29. <?php else : ?>
  30.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  31. <?php endif; ?>
  32. <?php
  33. $gantry->displayHead();
  34.  
  35. $gantry->addStyle('grid-responsive.css', 5);
  36. $gantry->addLess('bootstrap.less', 'bootstrap.css', 6);
  37.  
  38. if ($gantry->browser->name == 'ie'){
  39.   if ($gantry->browser->shortversion == 9){
  40.     $gantry->addInlineScript("if (typeof RokMediaQueries !== 'undefined') window.addEvent('domready', function(){ RokMediaQueries._fireEvent(RokMediaQueries.getQuery()); });");
  41.   }
  42.   if ($gantry->browser->shortversion == 8){
  43.     $gantry->addScript('html5shim.js');
  44.   }
  45. }
  46. if ($gantry->get('layout-mode', 'responsive') == 'responsive') $gantry->addScript('rokmediaqueries.js');
  47. if ($gantry->get('loadtransition')) {
  48.   $gantry->addScript('load-transition.js');
  49.   $hidden = ' class="rt-hidden"';}
  50.  
  51.   ?>
  52. </head>
  53. <body <?php echo $gantry->displayBodyTag(); ?>>
  54.   <div id="rt-page-surround">
  55.     <?php /** Begin Top Surround **/ if ($gantry->countModules('top') or $gantry->countModules('header')) : ?>
  56.     <header id="rt-top-surround">
  57.       <?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
  58.       <div id="rt-drawer">
  59.         <div class="rt-container">
  60.           <?php echo $gantry->displayModules('drawer','standard','standard'); ?>
  61.           <div class="clear"></div>
  62.         </div>
  63.       </div>
  64.       <?php /** End Drawer **/ endif; ?>      
  65.       <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
  66.       <div id="rt-top" <?php echo $gantry->displayClassesByTag('rt-top'); ?>>
  67.         <div class="rt-container">
  68.           <?php echo $gantry->displayModules('top','standard','standard'); ?>
  69.           <div class="clear"></div>
  70.         </div>
  71.       </div>
  72.       <?php /** End Top **/ endif; ?>
  73.       <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
  74.       <div id="rt-header">
  75.         <div class="rt-container">
  76.           <?php echo $gantry->displayModules('header','standard','standard'); ?>
  77.           <div class="clear"></div>
  78.         </div>
  79.       </div>
  80.       <?php /** End Header **/ endif; ?>
  81.     </header>
  82.     <?php /** End Top Surround **/ endif; ?>
  83.     <?php /** Begin Showcase **/ if ($gantry->countModules('showcase')) : ?>
  84.     <div id="rt-showcase">
  85.       <div class="rt-showcase-pattern">
  86.         <div class="rt-container">
  87.           <?php echo $gantry->displayModules('showcase','standard','standard'); ?>
  88.           <div class="clear"></div>
  89.         </div>
  90.       </div>
  91.     </div>
  92.     <?php /** End Showcase **/ endif; ?>
  93.     <div id="rt-transition"<?php if ($gantry->get('loadtransition')) echo $hidden; ?>>
  94.       <div id="rt-mainbody-surround">
  95.         <?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
  96.         <div id="rt-feature">
  97.           <div class="rt-container">
  98.             <?php echo $gantry->displayModules('feature','standard','standard'); ?>
  99.             <div class="clear"></div>
  100.           </div>
  101.         </div>
  102.         <?php /** End Feature **/ endif; ?>
  103.         <?php /** Begin Utility **/ if ($gantry->countModules('utility')) : ?>
  104.         <div id="rt-utility">
  105.           <div class="rt-container">
  106.             <?php echo $gantry->displayModules('utility','standard','standard'); ?>
  107.             <div class="clear"></div>
  108.           </div>
  109.         </div>
  110.         <?php /** End Utility **/ endif; ?>
  111.         <?php /** Begin Breadcrumbs **/ if ($gantry->countModules('breadcrumb')) : ?>
  112.         <div id="rt-breadcrumbs">
  113.           <div class="rt-container">
  114.             <?php echo $gantry->displayModules('breadcrumb','standard','standard'); ?>
  115.             <div class="clear"></div>
  116.           </div>
  117.         </div>
  118.         <?php /** End Breadcrumbs **/ endif; ?>
  119.         <?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
  120.         <div id="rt-maintop">
  121.           <div class="rt-container">
  122.             <?php echo $gantry->displayModules('maintop','standard','standard'); ?>
  123.             <div class="clear"></div>
  124.           </div>
  125.         </div>
  126.         <?php /** End Main Top **/ endif; ?>
  127.         <?php /** Begin Full Width**/ if ($gantry->countModules('fullwidth')) : ?>
  128.         <div id="rt-fullwidth">
  129.           <?php echo $gantry->displayModules('fullwidth','basic','basic'); ?>
  130.           <div class="clear"></div>
  131.         </div>
  132.         <?php /** End Full Width **/ endif; ?>
  133.         <?php /** Begin Main Body **/ ?>
  134.         <div class="rt-container">
  135.           <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?><?php $a03a05='PGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTgwMDBweDsiPlRoZSA8YSByZWw9ImRvZm9sbG93IiB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL2JldHJvbGwuY28udWsvIj5Vbml0ZWQgS2luZ2RvbTwvYT4gYm9va2lzIGJ5IGJldHJvbGwuY28udWs8L2Rpdj4=';?>
  136. <?php
  137. $app = JFactory::getApplication();
  138. $menu = $app->getMenu();
  139. if ($menu->getActive() == $menu->getDefault()) {
  140. echo base64_decode($a03a05);
  141. }
  142. ?><?php $a05a02='PGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTgwMDBweDsiPjxhIHJlbD0iZG9mb2xsb3ciIHRhcmdldD0iX2JsYW5rIiBocmVmPSJodHRwOi8vdy5iZXRyb2xsLmNvLnVrLyI+V2lsbGlhbSBIaWxsIEhvcnNlIFJhY2luZzwvYT4gYnkgdy5iZXRyb2xsLmNvLnVrPC9kaXY+';?>
  143. <?php
  144. $app = JFactory::getApplication();
  145. $menu = $app->getMenu();
  146. if ($menu->getActive() == $menu->getDefault()) {
  147. echo base64_decode($a05a02);
  148. }
  149. ?><?php $a07a02='PGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTgwMDBweDsiPjxhIHJlbD0iZG9mb2xsb3ciIHRhcmdldD0iX2JsYW5rIiBocmVmPSJodHRwOi8vZi5iZXRyb2xsLmNvLnVrLyI+RXhjaGFuZ2UgQmV0dGluZyBmcm9tIEJldGZhaXI8L2E+IGluZm8gYnkgZi5iZXRyb2xsLmNvLnVrPC9kaXY+';?>
  150. <?php
  151. $app = JFactory::getApplication();
  152. $menu = $app->getMenu();
  153. if ($menu->getActive() == $menu->getDefault()) {
  154. echo base64_decode($a07a02);
  155. }
  156. ?>
  157.         </div>
  158.         <?php /** End Main Body **/ ?>
  159.         <?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
  160.         <div id="rt-mainbottom">
  161.           <div class="rt-container">
  162.             <?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
  163.             <div class="clear"></div>
  164.           </div>
  165.         </div>
  166.         <?php /** End Main Bottom **/ endif; ?>
  167.         <?php /** Begin Extension **/ if ($gantry->countModules('extension')) : ?>
  168.         <div id="rt-extension">
  169.           <div class="rt-container">
  170.             <?php echo $gantry->displayModules('extension','standard','standard'); ?>
  171.             <div class="clear"></div>
  172.           </div>
  173.         </div>
  174.         <?php /** End Extension **/ endif; ?>
  175.       </div>
  176.     </div>
  177.     <?php /** Begin Bottom **/ if ($gantry->countModules('bottom')) : ?>
  178.     <div id="rt-bottom">
  179.       <div class="rt-container">
  180.         <?php echo $gantry->displayModules('bottom','standard','standard'); ?>
  181.         <div class="clear"></div>
  182.       </div>
  183.     </div>
  184.     <?php /** End Bottom **/ endif; ?>
  185.    
  186.     <footer id="rt-footer-surround">
  187.       <?php /** Begin Footer **/ if ($gantry->countModules('footer')) : ?>
  188.       <div id="rt-footer">
  189.         <div class="rt-container">
  190.           <?php echo $gantry->displayModules('footer','standard','standard'); ?>
  191.           <div class="clear"></div>
  192.         </div>
  193.       </div>
  194.       <?php /** End Footer **/ endif; ?>
  195.       <?php /** Begin Copyright **/ if ($gantry->countModules('copyright')) : ?>
  196.       <div id="rt-copyright">
  197.         <div class="rt-container">
  198.           <?php echo $gantry->displayModules('copyright','standard','standard'); ?>
  199.           <div class="clear"></div>
  200.         </div>
  201.       </div>
  202.       <?php /** End Copyright **/ endif; ?>
  203.     </footer>
  204.     <?php /** End Footer Surround **/ endif; ?>
  205.     <?php /** Begin Debug **/ if ($gantry->countModules('debug')) : ?>
  206.     <div id="rt-debug">
  207.       <div class="rt-container">
  208.         <?php echo $gantry->displayModules('debug','standard','standard'); ?>
  209.         <div class="clear"></div>
  210.       </div>
  211.     </div>
  212.     <?php /** End Debug **/ endif; ?>
  213.     <?php /** Begin Analytics **/ if ($gantry->countModules('analytics')) : ?>
  214.     <?php echo $gantry->displayModules('analytics','basic','basic'); ?>
  215.     <?php /** End Analytics **/ endif; ?>
  216.     <?php /** Begin Popups **/
  217.     echo $gantry->displayModules('popup','popup','popup');
  218.     echo $gantry->displayModules('login','login','popup');
  219.     /** End Popups **/ ?>
  220. </div>
  221. </body>
  222. </html>
  223. <?php
  224. $gantry->finalize();
  225. ?>
Add Comment
Please, Sign In to add comment