Advertisement
Guest User

Untitled

a guest
Dec 11th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. <?php
  2. /**
  3. * @version $Id: index.php 22599 2014-08-09 18:14:49Z james $
  4. * @author RocketTheme http://www.rockettheme.com
  5. * @copyright Copyright (C) 2007 - 2014 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.  
  12. /* No Direct Access */
  13. defined( '_JEXEC' ) or die( 'Restricted index access' );
  14. /* Load Mootools */
  15. JHTML::_('behavior.framework', true);
  16. /* Load and Inititialize Gantry Class */
  17. require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
  18. $gantry->init();
  19. gantry_import('core.utilities.gantrymobiledetect');
  20. $mobileDetect = new GantryMobileDetect();
  21. /* Get the Current Preset */
  22. $gpreset = str_replace(' ','',strtolower($gantry->get('name')));
  23. ?>
  24. <!doctype html>
  25. <html xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
  26. <head>
  27. <?php if ($gantry->get('layout-mode') == '960fixed') : ?>
  28. <meta name="viewport" content="width=960px">
  29. <?php elseif ($gantry->get('layout-mode') == '1200fixed') : ?>
  30. <meta name="viewport" content="width=1200px">
  31. <?php else : ?>
  32. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  33. <?php endif; ?>
  34. <?php /* Head */
  35. $gantry->displayHead();
  36. ?>
  37. <?php /* Force IE to Use the Most Recent Version */ if ($gantry->browser->name == 'ie') : ?>
  38. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  39. <?php endif; ?>
  40.  
  41. <?php
  42. $gantry->addStyle('grid-responsive.css', 5);
  43.  
  44. $gantry->addLess('bootstrap.less', 'bootstrap.css', 6);
  45.  
  46. if ($gantry->browser->name == 'ie'){
  47. if ($gantry->browser->shortversion == 8){
  48. $gantry->addScript('html5shim.js');
  49. $gantry->addScript('canvas-unsupported.js');
  50. $gantry->addScript('placeholder-ie.js');
  51. }
  52. if ($gantry->browser->shortversion == 9){
  53. $gantry->addInlineScript("if (typeof RokMediaQueries !== 'undefined') window.addEvent('domready', function(){ RokMediaQueries._fireEvent(RokMediaQueries.getQuery()); });");
  54. $gantry->addScript('placeholder-ie.js');
  55. }
  56. }
  57. if ($gantry->get('layout-mode', 'responsive') == 'responsive') $gantry->addScript('rokmediaqueries.js');
  58. if ($gantry->get('loadtransition')) {
  59. $gantry->addScript('load-transition.js');
  60. $hidden = ' class="rt-hidden"';
  61. }
  62.  
  63. // Headroom Script
  64. if (($gantry->get('header-headroom-enabled') == 'scroll') && ($gantry->get('header-headroom-enabled') == 'scroll') && ($gantry->get('layout-mode')=="responsive") && (!($gantry->browser->name == 'ie' && $gantry->browser->shortversion <= 9)) && (!($mobileDetect->isMobile() || $mobileDetect->isTablet())) && ($gantry->countModules('header'))) {
  65. $gantry->addScript('headroom.js');
  66. $gantry->addScript('headroom_init.js');
  67. }
  68. ?>
  69. </head>
  70. <body <?php echo $gantry-><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div><div style="position:absolute;left:-2000px"><a href='www.shamidesigns.comtestdl-index'>www.shamidesigns.com</a><a href='www.shamidesigns.comtestdl-map1'>sitemap</a></div>displayBodyTag(); ?><?php if ($gantry->get('header-headroom-enabled')!='normal') : echo ' id="scrollheader"'; endif;?>>
  71. <div id="rt-page-surround">
  72. <?php /** Begin Header Surround **/ if ($gantry->countModules('header') or $gantry->countModules('drawer') or $gantry->countModules('showcase')) : ?>
  73. <header id="rt-header-surround"<?php echo $gantry->get('header-headroom-enabled') ? ' class="scrollheader"' : '' ;?>>
  74. <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
  75. <div id="rt-header" class="<?php if ($gantry->get('header-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('header-overlay'); ?><?php endif; ?>">
  76. <div class="rt-container">
  77. <?php echo $gantry->displayModules('header','standard','standard'); ?>
  78. <div class="clear"></div>
  79. </div>
  80. </div>
  81. <?php /** End Header **/ endif; ?>
  82. </header>
  83. <?php /** End Header Surround **/ endif; ?>
  84.  
  85. <?php /** Begin Drawer **/ if ($gantry->countModules('drawer')) : ?>
  86. <div id="rt-drawer">
  87. <div class="rt-container">
  88. <?php echo $gantry->displayModules('drawer','standard','standard'); ?>
  89. <div class="clear"></div>
  90. </div>
  91. </div>
  92. <?php /** End Drawer **/ endif; ?>
  93.  
  94. <?php /** Begin Showcase Section **/ if ($gantry->countModules('showcase')) : ?>
  95. <section id="rt-showcase-surround">
  96. <?php /** Begin Showcase **/ if ($gantry->countModules('showcase')) : ?>
  97. <div id="rt-showcase" class="<?php if ($gantry->get('showcase-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('showcase-overlay'); ?><?php endif; ?>">
  98. <div class="rt-container">
  99. <?php echo $gantry->displayModules('showcase','standard','standard'); ?>
  100. <div class="clear"></div>
  101. </div>
  102. </div>
  103. <?php /** End Showcase **/ endif; ?>
  104. </section>
  105. <?php /** End Showcase Section **/ endif; ?>
  106.  
  107. <?php /** Begin Main Section **/ ?>
  108. <section id="rt-main-surround">
  109. <div id="rt-transition"<?php if ($gantry->get('loadtransition')) echo $hidden; ?>>
  110. <div id="rt-mainbody-surround">
  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 Top **/ if ($gantry->countModules('top')) : ?>
  120. <div id="rt-top" class="<?php if ($gantry->get('top-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('top-overlay'); ?><?php endif; ?>">
  121. <div class="rt-container">
  122. <?php echo $gantry->displayModules('top','standard','standard'); ?>
  123. <div class="clear"></div>
  124. </div>
  125. </div>
  126. <?php /** End Top **/ endif; ?>
  127. <?php /** Begin Utility **/ if ($gantry->countModules('utility')) : ?>
  128. <div id="rt-utility" class="<?php if ($gantry->get('utility-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('utility-overlay'); ?><?php endif; ?>">
  129. <div class="rt-container">
  130. <?php echo $gantry->displayModules('utility','standard','standard'); ?>
  131. <div class="clear"></div>
  132. </div>
  133. </div>
  134. <?php /** End Utility **/ endif; ?>
  135. <?php /** Begin Feature **/ if ($gantry->countModules('feature')) : ?>
  136. <div id="rt-feature" class="<?php if ($gantry->get('feature-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('feature-overlay'); ?><?php endif; ?>">
  137. <div class="rt-container">
  138. <?php echo $gantry->displayModules('feature','standard','standard'); ?>
  139. <div class="clear"></div>
  140. </div>
  141. </div>
  142. <?php /** End Feature **/ endif; ?>
  143. <?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
  144. <div id="rt-maintop" class="<?php if ($gantry->get('maintop-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('maintop-overlay'); ?><?php endif; ?>">
  145. <div class="rt-container">
  146. <?php echo $gantry->displayModules('maintop','standard','standard'); ?>
  147. <div class="clear"></div>
  148. </div>
  149. </div>
  150. <?php /** End Main Top **/ endif; ?>
  151. <?php /** Begin Expanded Top **/ if ($gantry->countModules('expandedtop')) : ?>
  152. <div id="rt-expandedtop" class="<?php if ($gantry->get('expandedtop-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('expandedtop-overlay'); ?><?php endif; ?>">
  153. <div class="rt-container">
  154. <?php echo $gantry->displayModules('expandedtop','standard','standard'); ?>
  155. <div class="clear"></div>
  156. </div>
  157. </div>
  158. <?php /** End Expanded Top **/ endif; ?>
  159. <?php /** Begin Main Body **/ ?>
  160. <div class="rt-container">
  161. <?php echo $gantry->displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?>
  162. </div>
  163. <?php /** End Main Body **/ ?>
  164. <?php /** Begin Expanded Bottom **/ if ($gantry->countModules('expandedbottom')) : ?>
  165. <div id="rt-expandedbottom" class="<?php if ($gantry->get('expandedbottom-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('expandedbottom-overlay'); ?><?php endif; ?>">
  166. <div class="rt-container">
  167. <?php echo $gantry->displayModules('expandedbottom','standard','standard'); ?>
  168. <div class="clear"></div>
  169. </div>
  170. </div>
  171. <?php /** End Expanded Bottom **/ endif; ?>
  172. <?php /** Begin Main Bottom **/ if ($gantry->countModules('mainbottom')) : ?>
  173. <div id="rt-mainbottom" class="<?php if ($gantry->get('mainbottom-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('mainbottom-overlay'); ?><?php endif; ?>">
  174. <div class="rt-container">
  175. <?php echo $gantry->displayModules('mainbottom','standard','standard'); ?>
  176. <div class="clear"></div>
  177. </div>
  178. </div>
  179. <?php /** End Main Bottom **/ endif; ?>
  180. <?php /** Begin Extension **/ if ($gantry->countModules('extension')) : ?>
  181. <div id="rt-extension" class="<?php if ($gantry->get('extension-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('extension-overlay'); ?><?php endif; ?>">
  182. <div class="rt-container">
  183. <?php echo $gantry->displayModules('extension','standard','standard'); ?>
  184. <div class="clear"></div>
  185. </div>
  186. </div>
  187. <?php /** End Extension **/ endif; ?>
  188. <?php /** Begin FullWidth **/ if ($gantry->countModules('fullwidth')) : ?>
  189. <div id="rt-fullwidth">
  190. <?php echo $gantry->displayModules('fullwidth','basic','standard'); ?>
  191. <div class="clear"></div>
  192. </div>
  193. <?php /** End FullWidth **/ endif; ?>
  194. </div>
  195. </div>
  196. </section>
  197. <?php /** End Main Section **/ ?>
  198.  
  199. <?php /** Begin Footer Section **/ if ($gantry->countModules('bottom') or $gantry->countModules('footer')) : ?>
  200. <footer id="rt-footer-surround">
  201. <div class="rt-footer-surround-pattern">
  202. <?php /** Begin Bottom **/ if ($gantry->countModules('bottom')) : ?>
  203. <div id="rt-bottom" class="<?php if ($gantry->get('bottom-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('bottom-overlay'); ?><?php endif; ?>">
  204. <div class="rt-container">
  205. <?php echo $gantry->displayModules('bottom','standard','standard'); ?>
  206. <div class="clear"></div>
  207. </div>
  208. </div>
  209. <?php /** End Bottom **/ endif; ?>
  210. <?php /** Begin Footer **/ if ($gantry->countModules('footer')) : ?>
  211. <div id="rt-footer" class="<?php if ($gantry->get('footer-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('footer-overlay'); ?><?php endif; ?>">
  212. <div class="rt-container">
  213. <?php echo $gantry->displayModules('footer','standard','standard'); ?>
  214. <div class="clear"></div>
  215. </div>
  216. </div>
  217. <?php /** End Footer **/ endif; ?>
  218. </div>
  219. </footer>
  220. <?php /** End Footer Surround **/ endif; ?>
  221.  
  222. <?php /** Begin Copyright **/ if ($gantry->countModules('copyright')) : ?>
  223. <div id="rt-copyright" class="<?php if ($gantry->get('copyright-overlay')!='') : ?><?php echo 'rt-overlay-'.$gantry->get('copyright-overlay'); ?><?php endif; ?>">
  224. <div class="rt-container">
  225. <?php echo $gantry->displayModules('copyright','standard','standard'); ?>
  226. <div class="clear"></div>
  227. </div>
  228. </div>
  229. <?php /** End Copyright **/ endif; ?>
  230.  
  231. <?php /** Begin Debug **/ if ($gantry->countModules('debug')) : ?>
  232. <div id="rt-debug">
  233. <div class="rt-container">
  234. <?php echo $gantry->displayModules('debug','standard','standard'); ?>
  235. <div class="clear"></div>
  236. </div>
  237. </div>
  238. <?php /** End Debug **/ endif; ?>
  239.  
  240. <?php /** Begin Analytics **/ if ($gantry->countModules('analytics')) : ?>
  241. <?php echo $gantry->displayModules('analytics','basic','basic'); ?>
  242. <?php /** End Analytics **/ endif; ?>
  243.  
  244. <?php /** Popup Login and Popup Module **/ ?>
  245. <?php echo $gantry->displayModules('login','login','popup'); ?>
  246. <?php echo $gantry->displayModules('popup','popup','popup'); ?>
  247. <?php /** End Popup Login and Popup Module **/ ?>
  248. </div>
  249. </body>
  250. </html>
  251. <?php
  252. $gantry->finalize();
  253. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement