Advertisement
Guest User

Untitled

a guest
Sep 10th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package Balance
  4. * @author YOOtheme http://www.yootheme.com
  5. * @copyright Copyright (C) YOOtheme GmbH
  6. * @license http://www.gnu.org/licenses/gpl.html GNU/GPL
  7. */
  8.  
  9. // get template configuration
  10. include($this['path']->path('layouts:template.config.php'));
  11.  
  12. ?>
  13. <!DOCTYPE HTML>
  14. <html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>">
  15.  
  16. <head>
  17. <?php echo $this['template']->render('head'); ?>
  18. </head>
  19.  
  20. <body id="page" class="page <?php echo $this['config']->get('body_classes'); ?>" data-config='<?php echo $this['config']->get('body_config','{}'); ?>'>
  21.  
  22. <?php if ($this['modules']->count('absolute')) : ?>
  23. <div id="absolute">
  24. <?php echo $this['modules']->render('absolute'); ?>
  25. </div>
  26. <?php endif; ?>
  27.  
  28. <div id="block-main"><div>
  29.  
  30. <div class="wrapper">
  31.  
  32. <header id="header">
  33.  
  34. <?php if ($this['modules']->count('toolbar-l + toolbar-r') || $this['config']->get('date')) : ?>
  35. <div id="toolbar" class="grid-block">
  36.  
  37. <?php if ($this['modules']->count('toolbar-l') || $this['config']->get('date')) : ?>
  38. <div class="float-left">
  39.  
  40. <?php if ($this['config']->get('date')) : ?>
  41. <time datetime="<?php echo $this['config']->get('datetime'); ?>"><?php echo $this['config']->get('actual_date'); ?></time>
  42. <?php endif; ?>
  43.  
  44. <?php echo $this['modules']->render('toolbar-l'); ?>
  45.  
  46. </div>
  47. <?php endif; ?>
  48.  
  49. <?php if ($this['modules']->count('toolbar-r')) : ?>
  50. <div class="float-right"><?php echo $this['modules']->render('toolbar-r'); ?></div>
  51. <?php endif; ?>
  52.  
  53. </div>
  54. <?php endif; ?>
  55.  
  56. <?php if ($this['modules']->count('logo + headerbar')) : ?>
  57. <div id="headerbar" class="grid-block">
  58.  
  59. <?php if ($this['modules']->count('logo')) : ?>
  60. <a id="logo" href="<?php echo $this['config']->get('site_url'); ?>"><?php echo $this['modules']->render('logo'); ?></a>
  61. <?php endif; ?>
  62.  
  63. <?php if($this['modules']->count('headerbar')) : ?>
  64. <div class="left"><?php echo $this['modules']->render('headerbar'); ?></div>
  65. <?php endif; ?>
  66.  
  67. </div>
  68. <?php endif; ?>
  69.  
  70. <?php if ($this['modules']->count('menu + search')) : ?>
  71. <div id="menubar" class="grid-block">
  72.  
  73. <?php if ($this['modules']->count('menu')) : ?>
  74. <nav id="menu"><?php echo $this['modules']->render('menu'); ?></nav>
  75. <?php endif; ?>
  76.  
  77. <div id="menubar-r"><div></div></div>
  78.  
  79. <?php if ($this['modules']->count('search')) : ?>
  80. <div id="search"><?php echo $this['modules']->render('search'); ?></div>
  81. <?php endif; ?>
  82.  
  83. </div>
  84. <?php endif; ?>
  85.  
  86. <?php if ($this['modules']->count('banner')) : ?>
  87. <div id="banner"><?php echo $this['modules']->render('banner'); ?></div>
  88. <?php endif; ?>
  89.  
  90. </header>
  91.  
  92. <?php if ($this['modules']->count('top-a')) : ?>
  93. <section id="top-a" class="grid-block"><?php echo $this['modules']->render('top-a', array('layout'=>$this['config']->get('top-a'))); ?></section>
  94. <?php endif; ?>
  95.  
  96. <?php if ($this['modules']->count('top-b')) : ?>
  97. <section id="top-b" class="grid-block"><?php echo $this['modules']->render('top-b', array('layout'=>$this['config']->get('top-b'))); ?></section>
  98. <?php endif; ?>
  99.  
  100. <?php if ($this['modules']->count('innertop + innerbottom + sidebar-a + sidebar-b') || $this['config']->get('system_output')) : ?>
  101. <div id="main" class="grid-block">
  102.  
  103. <div id="maininner" class="grid-box">
  104.  
  105. <?php if ($this['modules']->count('innertop')) : ?>
  106. <section id="innertop" class="grid-block"><?php echo $this['modules']->render('innertop', array('layout'=>$this['config']->get('innertop'))); ?></section>
  107. <?php endif; ?>
  108.  
  109. <?php if ($this['config']->get('system_output')) : ?>
  110. <section id="content"><div class="grid-block">
  111.  
  112. <?php if ($this['modules']->count('breadcrumbs')) : ?>
  113. <section id="breadcrumbs"><?php echo $this['modules']->render('breadcrumbs'); ?></section>
  114. <?php endif; ?>
  115.  
  116. <?php echo $this['template']->render('content'); ?>
  117.  
  118. </div></section>
  119. <?php endif; ?>
  120.  
  121. <?php if ($this['modules']->count('innerbottom')) : ?>
  122. <section id="innerbottom" class="grid-block"><?php echo $this['modules']->render('innerbottom', array('layout'=>$this['config']->get('innerbottom'))); ?></section>
  123. <?php endif; ?>
  124.  
  125. </div>
  126. <!-- maininner end -->
  127.  
  128. <?php if ($this['modules']->count('sidebar-a')) : ?>
  129. <aside id="sidebar-a" class="grid-box"><?php echo $this['modules']->render('sidebar-a', array('layout'=>'stack')); ?></aside>
  130. <?php endif; ?>
  131.  
  132. <?php if ($this['modules']->count('sidebar-b')) : ?>
  133. <aside id="sidebar-b" class="grid-box"><?php echo $this['modules']->render('sidebar-b', array('layout'=>'stack')); ?></aside>
  134. <?php endif; ?>
  135.  
  136. </div>
  137. <?php endif; ?>
  138. <!-- main end -->
  139.  
  140. <?php if ($this['modules']->count('bottom-a')) : ?>
  141. <section id="bottom-a" class="grid-block"><?php echo $this['modules']->render('bottom-a', array('layout'=>$this['config']->get('bottom-a'))); ?></section>
  142. <?php endif; ?>
  143.  
  144. </div>
  145.  
  146. </div></div>
  147.  
  148. <?php if ($this['modules']->count('bottom-b')) : ?>
  149. <div id="block-bottom">
  150.  
  151. <div class="wrapper">
  152.  
  153. <section id="bottom-b" class="grid-block"><?php echo $this['modules']->render('bottom-b', array('layout'=>$this['config']->get('bottom-b'))); ?></section>
  154.  
  155. </div>
  156.  
  157. </div>
  158. <?php endif; ?>
  159.  
  160. <?php if ($this['modules']->count('footer + debug') || $this['config']->get('warp_branding')) : ?>
  161. <div id="block-footer">
  162.  
  163. <div class="wrapper">
  164.  
  165.  
  166. <footer id="footer" class="grid-block">
  167.  
  168. <?php if ($this['config']->get('totop_scroller')) : ?>
  169. <a id="totop-scroller" href="#page"></a>
  170. <?php endif; ?>
  171.  
  172. <?php
  173. echo $this['modules']->render('footer');
  174. $this->output('warp_branding');
  175. echo $this['modules']->render('debug');
  176. ?>
  177.  
  178. </footer>
  179.  
  180. </div>
  181.  
  182. </div>
  183. <?php endif; ?>
  184.  
  185. <?php echo $this->render('footer'); ?>
  186.  
  187. </body>
  188. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement