PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/smarty/compile/95/ee/b7/95eeb7b25358280d311e60256eb3b5688b1d33ac.file.blockcms.tpl.cache.php

https://gitlab.com/nghiep5890/prestashop
PHP | 210 lines | 197 code | 13 blank | 0 comment | 25 complexity | 1f8947a7bfb8531d4a556ce7f091788a MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 23:58:43
  2. compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\modules\blockcms\blockcms.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:659358371c43bfd283-45713654%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '95eeb7b25358280d311e60256eb3b5688b1d33ac' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\themes\\default-bootstrap\\modules\\blockcms\\blockcms.tpl',
  10. 1 => 1452073828,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '659358371c43bfd283-45713654',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'block' => 0,
  21. 'cms_titles' => 0,
  22. 'cms_key' => 0,
  23. 'cms_title' => 0,
  24. 'cms_page' => 0,
  25. 'link' => 0,
  26. 'show_price_drop' => 0,
  27. 'PS_CATALOG_MODE' => 0,
  28. 'show_new_products' => 0,
  29. 'show_best_sales' => 0,
  30. 'display_stores_footer' => 0,
  31. 'show_contact' => 0,
  32. 'contact_url' => 0,
  33. 'cmslinks' => 0,
  34. 'cmslink' => 0,
  35. 'show_sitemap' => 0,
  36. 'footer_text' => 0,
  37. 'display_poweredby' => 0,
  38. ),
  39. 'has_nocache_code' => true,
  40. 'version' => 'Smarty-3.1.19',
  41. 'unifunc' => 'content_58371c43cef5b2_29254358',
  42. ),false); /*/%%SmartyHeaderCode%%*/?>
  43. <?php if ($_valid && !is_callable('content_58371c43cef5b2_29254358')) {function content_58371c43cef5b2_29254358($_smarty_tpl) {?>
  44. <?php if ($_smarty_tpl->tpl_vars['block']->value==1) {?>
  45. <!-- Block CMS module -->
  46. <?php $_smarty_tpl->tpl_vars['cms_title'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cms_title']->_loop = false;
  47. $_smarty_tpl->tpl_vars['cms_key'] = new Smarty_Variable;
  48. $_from = $_smarty_tpl->tpl_vars['cms_titles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  49. foreach ($_from as $_smarty_tpl->tpl_vars['cms_title']->key => $_smarty_tpl->tpl_vars['cms_title']->value) {
  50. $_smarty_tpl->tpl_vars['cms_title']->_loop = true;
  51. $_smarty_tpl->tpl_vars['cms_key']->value = $_smarty_tpl->tpl_vars['cms_title']->key;
  52. ?>
  53. <section id="informations_block_left_<?php echo $_smarty_tpl->tpl_vars['cms_key']->value;?>
  54. " class="block informations_block_left">
  55. <p class="title_block">
  56. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_title']->value['category_link'], ENT_QUOTES, 'UTF-8', true);?>
  57. ">
  58. <?php if (!empty($_smarty_tpl->tpl_vars['cms_title']->value['name'])) {?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['name'];?>
  59. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['category_name'];?>
  60. <?php }?>
  61. </a>
  62. </p>
  63. <div class="block_content list-block">
  64. <ul>
  65. <?php $_smarty_tpl->tpl_vars['cms_page'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cms_page']->_loop = false;
  66. $_from = $_smarty_tpl->tpl_vars['cms_title']->value['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  67. foreach ($_from as $_smarty_tpl->tpl_vars['cms_page']->key => $_smarty_tpl->tpl_vars['cms_page']->value) {
  68. $_smarty_tpl->tpl_vars['cms_page']->_loop = true;
  69. ?>
  70. <?php if (isset($_smarty_tpl->tpl_vars['cms_page']->value['link'])) {?>
  71. <li class="bullet">
  72. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['link'], ENT_QUOTES, 'UTF-8', true);?>
  73. " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  74. ">
  75. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  76. </a>
  77. </li>
  78. <?php }?>
  79. <?php } ?>
  80. <?php $_smarty_tpl->tpl_vars['cms_page'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cms_page']->_loop = false;
  81. $_from = $_smarty_tpl->tpl_vars['cms_title']->value['cms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  82. foreach ($_from as $_smarty_tpl->tpl_vars['cms_page']->key => $_smarty_tpl->tpl_vars['cms_page']->value) {
  83. $_smarty_tpl->tpl_vars['cms_page']->_loop = true;
  84. ?>
  85. <?php if (isset($_smarty_tpl->tpl_vars['cms_page']->value['link'])) {?>
  86. <li>
  87. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['link'], ENT_QUOTES, 'UTF-8', true);?>
  88. " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['meta_title'], ENT_QUOTES, 'UTF-8', true);?>
  89. ">
  90. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cms_page']->value['meta_title'], ENT_QUOTES, 'UTF-8', true);?>
  91. </a>
  92. </li>
  93. <?php }?>
  94. <?php } ?>
  95. <?php if ($_smarty_tpl->tpl_vars['cms_title']->value['display_store']) {?>
  96. <li>
  97. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('stores'), ENT_QUOTES, 'UTF-8', true);?>
  98. " title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  99. ">
  100. <?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  101. </a>
  102. </li>
  103. <?php }?>
  104. </ul>
  105. </div>
  106. </section>
  107. <?php } ?>
  108. <!-- /Block CMS module -->
  109. <?php } else { ?>
  110. <!-- Block CMS module footer -->
  111. <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer">
  112. <h4><?php echo smartyTranslate(array('s'=>'Information','mod'=>'blockcms'),$_smarty_tpl);?>
  113. </h4>
  114. <ul class="toggle-footer">
  115. <?php if (isset($_smarty_tpl->tpl_vars['show_price_drop']->value)&&$_smarty_tpl->tpl_vars['show_price_drop']->value&&!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {?>
  116. <li class="item">
  117. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('prices-drop'), ENT_QUOTES, 'UTF-8', true);?>
  118. " title="<?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?>
  119. ">
  120. <?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?>
  121. </a>
  122. </li>
  123. <?php }?>
  124. <?php if (isset($_smarty_tpl->tpl_vars['show_new_products']->value)&&$_smarty_tpl->tpl_vars['show_new_products']->value) {?>
  125. <li class="item">
  126. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('new-products'), ENT_QUOTES, 'UTF-8', true);?>
  127. " title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?>
  128. ">
  129. <?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?>
  130. </a>
  131. </li>
  132. <?php }?>
  133. <?php if (isset($_smarty_tpl->tpl_vars['show_best_sales']->value)&&$_smarty_tpl->tpl_vars['show_best_sales']->value&&!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {?>
  134. <li class="item">
  135. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('best-sales'), ENT_QUOTES, 'UTF-8', true);?>
  136. " title="<?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?>
  137. ">
  138. <?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?>
  139. </a>
  140. </li>
  141. <?php }?>
  142. <?php if (isset($_smarty_tpl->tpl_vars['display_stores_footer']->value)&&$_smarty_tpl->tpl_vars['display_stores_footer']->value) {?>
  143. <li class="item">
  144. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('stores'), ENT_QUOTES, 'UTF-8', true);?>
  145. " title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  146. ">
  147. <?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
  148. </a>
  149. </li>
  150. <?php }?>
  151. <?php if (isset($_smarty_tpl->tpl_vars['show_contact']->value)&&$_smarty_tpl->tpl_vars['show_contact']->value) {?>
  152. <li class="item">
  153. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['contact_url']->value,true), ENT_QUOTES, 'UTF-8', true);?>
  154. " title="<?php echo smartyTranslate(array('s'=>'Contact us','mod'=>'blockcms'),$_smarty_tpl);?>
  155. ">
  156. <?php echo smartyTranslate(array('s'=>'Contact us','mod'=>'blockcms'),$_smarty_tpl);?>
  157. </a>
  158. </li>
  159. <?php }?>
  160. <?php $_smarty_tpl->tpl_vars['cmslink'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cmslink']->_loop = false;
  161. $_from = $_smarty_tpl->tpl_vars['cmslinks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  162. foreach ($_from as $_smarty_tpl->tpl_vars['cmslink']->key => $_smarty_tpl->tpl_vars['cmslink']->value) {
  163. $_smarty_tpl->tpl_vars['cmslink']->_loop = true;
  164. ?>
  165. <?php if ($_smarty_tpl->tpl_vars['cmslink']->value['meta_title']!='') {?>
  166. <li class="item">
  167. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cmslink']->value['link'], ENT_QUOTES, 'UTF-8', true);?>
  168. " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cmslink']->value['meta_title'], ENT_QUOTES, 'UTF-8', true);?>
  169. ">
  170. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cmslink']->value['meta_title'], ENT_QUOTES, 'UTF-8', true);?>
  171. </a>
  172. </li>
  173. <?php }?>
  174. <?php } ?>
  175. <?php if (isset($_smarty_tpl->tpl_vars['show_sitemap']->value)&&$_smarty_tpl->tpl_vars['show_sitemap']->value) {?>
  176. <li>
  177. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('sitemap'), ENT_QUOTES, 'UTF-8', true);?>
  178. " title="<?php echo smartyTranslate(array('s'=>'Sitemap','mod'=>'blockcms'),$_smarty_tpl);?>
  179. ">
  180. <?php echo smartyTranslate(array('s'=>'Sitemap','mod'=>'blockcms'),$_smarty_tpl);?>
  181. </a>
  182. </li>
  183. <?php }?>
  184. </ul>
  185. <?php echo $_smarty_tpl->tpl_vars['footer_text']->value;?>
  186. </section>
  187. <?php if ($_smarty_tpl->tpl_vars['display_poweredby']->value) {?>
  188. <section class="bottom-footer col-xs-12">
  189. <div>
  190. <?php echo '/*%%SmartyNocache:659358371c43bfd283-45713654%%*/<?php echo smartyTranslate(array(\'s\'=>\'[1] %3$s %2$s - Ecommerce software by %1$s [/1]\',\'mod\'=>\'blockcms\',\'sprintf\'=>array(\'PrestaShop™\',date(\'Y\'),\'©\'),\'tags\'=>array(\'<a class="_blank" href="http://www.prestashop.com">\')),$_smarty_tpl);?>
  191. /*/%%SmartyNocache:659358371c43bfd283-45713654%%*/';?>
  192. </div>
  193. </section>
  194. <?php }?>
  195. <!-- /Block CMS module footer -->
  196. <?php }?>
  197. <?php }} ?>