var/cache/dev/smarty/compile/06c0af270fcf019f2bb5d00d679bfc481e9b394b_0.file.category.html.php line 83

  1. <?php
  2. /* Smarty version 4.1.1, created on 2023-10-23 12:30:32
  3.   from '/var/www/colasse_dev/templates/frontOffice/demo_black/category.html' */
  4. /* @var Smarty_Internal_Template $_smarty_tpl */
  5. if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  6.   'version' => '4.1.1',
  7.   'unifunc' => 'content_65364b480d42f2_37683348',
  8.   'has_nocache_code' => false,
  9.   'file_dependency' => 
  10.   array (
  11.     '06c0af270fcf019f2bb5d00d679bfc481e9b394b' => 
  12.     array (
  13.       => '/var/www/colasse_dev/templates/frontOffice/demo_black/category.html',
  14.       => 1680572015,
  15.       => 'file',
  16.     ),
  17.   ),
  18.   'includes' => 
  19.   array (
  20.     'file:includes/meta-seo.html' => 1,
  21.     'file:includes/vivre_contemporain/inspiration.html' => 1,
  22.     'file:includes/vivre_contemporain/vivre_category.html' => 1,
  23.   ),
  24. ),false)) {
  25. function content_65364b480d42f2_37683348 (Smarty_Internal_Template $_smarty_tpl) {
  26. $_smarty_tpl->_loadInheritance();
  27. $_smarty_tpl->inheritance->init($_smarty_tpltrue);
  28. ?>
  29. <?php 
  30. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_140313732265364b48080a23_66519173'"init");
  31. ?>
  32. <?php 
  33. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_186908257665364b48084348_04107074'"body-class");
  34. ?>
  35. <?php 
  36. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_214094467365364b48084d39_53344243''no-return-functions');
  37. ?>
  38. <?php 
  39. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_199676685165364b48088730_63234983'"meta");
  40. ?>
  41. <?php 
  42. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_187910145765364b4808f4a1_46081507'"feeds");
  43. ?>
  44. <?php 
  45. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_123425978365364b480921b8_47517641''no-return-functions');
  46. ?>
  47. <?php 
  48. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_81392491765364b48095bf2_19221627'"main-content");
  49. ?>
  50. <?php 
  51. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_28814198565364b480d2f49_40552475'"stylesheet");
  52. ?>
  53. <?php 
  54. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_52434451565364b480d3678_55318979'"after-javascript-include");
  55. ?>
  56. <?php 
  57. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl'Block_39514177065364b480d3d02_97664935'"javascript-initialization");
  58. ?>
  59. <?php $_smarty_tpl->inheritance->endChild($_smarty_tpl'layout.tpl');
  60. }
  61. /* {block "init"} */
  62. class Block_140313732265364b48080a23_66519173 extends Smarty_Internal_Block
  63. {
  64. public $subBlocks = array (
  65.   'init' => 
  66.   array (
  67.     => 'Block_140313732265364b48080a23_66519173',
  68.   ),
  69. );
  70. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  71. ?>
  72. <?php ob_start();
  73. echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>"id"),$_smarty_tpl ) );
  74. $_prefixVariable1 ob_get_clean();
  75. $_smarty_tpl->_assignInScope('category_id'$_prefixVariable1);
  76. }
  77. }
  78. /* {/block "init"} */
  79. /* {block "body-class"} */
  80. class Block_186908257665364b48084348_04107074 extends Smarty_Internal_Block
  81. {
  82. public $subBlocks = array (
  83.   'body-class' => 
  84.   array (
  85.     => 'Block_186908257665364b48084348_04107074',
  86.   ),
  87. );
  88. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  89. ?>
  90. page-category<?php
  91. }
  92. }
  93. /* {/block "body-class"} */
  94. /* {block 'no-return-functions'} */
  95. class Block_214094467365364b48084d39_53344243 extends Smarty_Internal_Block
  96. {
  97. public $subBlocks = array (
  98.   'no-return-functions' => 
  99.   array (
  100.     => 'Block_214094467365364b48084d39_53344243',
  101.   ),
  102. );
  103. public $append 'true';
  104. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  105. ?>
  106. <?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?>
  107.     <?php $_block_plugin1 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;
  108. if (!is_callable(array($_block_plugin1'theliaLoop'))) {
  109. throw new SmartyException('block tag \'loop\' not callable or registered');
  110. }
  111. $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('loop', array('name'=>"category.seo.title",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"));
  112. $_block_repeat=true;
  113. echo $_block_plugin1->theliaLoop(array('name'=>"category.seo.title",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"), null$_smarty_tpl$_block_repeat);
  114. while ($_block_repeat) {
  115. ob_start();?>
  116.         <?php $_smarty_tpl->_assignInScope('page_title'$_smarty_tpl->tpl_vars['META_TITLE']->value);?>
  117.     <?php $_block_repeat=false;
  118. echo $_block_plugin1->theliaLoop(array('name'=>"category.seo.title",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"), ob_get_clean(), $_smarty_tpl$_block_repeat);
  119. }
  120. array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
  121. }
  122. }
  123. }
  124. /* {/block 'no-return-functions'} */
  125. /* {block "meta"} */
  126. class Block_199676685165364b48088730_63234983 extends Smarty_Internal_Block
  127. {
  128. public $subBlocks = array (
  129.   'meta' => 
  130.   array (
  131.     => 'Block_199676685165364b48088730_63234983',
  132.   ),
  133. );
  134. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  135. ?>
  136. <?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?>
  137.     <?php $_block_plugin2 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;
  138. if (!is_callable(array($_block_plugin2'theliaLoop'))) {
  139. throw new SmartyException('block tag \'loop\' not callable or registered');
  140. }
  141. $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('loop', array('name'=>"category.seo.meta",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"));
  142. $_block_repeat=true;
  143. echo $_block_plugin2->theliaLoop(array('name'=>"category.seo.meta",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"), null$_smarty_tpl$_block_repeat);
  144. while ($_block_repeat) {
  145. ob_start();?>
  146.         <?php $_smarty_tpl->_subTemplateRender("file:includes/meta-seo.html"$_smarty_tpl->cache_id$_smarty_tpl->compile_id0$_smarty_tpl->cache_lifetime, array(), 0false);
  147. ?>
  148.     <?php $_block_repeat=false;
  149. echo $_block_plugin2->theliaLoop(array('name'=>"category.seo.meta",'type'=>"category",'id'=>$_smarty_tpl->tpl_vars['category_id']->value,'limit'=>"1"), ob_get_clean(), $_smarty_tpl$_block_repeat);
  150. }
  151. array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
  152. }
  153. }
  154. }
  155. /* {/block "meta"} */
  156. /* {block "feeds"} */
  157. class Block_187910145765364b4808f4a1_46081507 extends Smarty_Internal_Block
  158. {
  159. public $subBlocks = array (
  160.   'feeds' => 
  161.   array (
  162.     => 'Block_187910145765364b4808f4a1_46081507',
  163.   ),
  164. );
  165. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  166. ?>
  167. <?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?>
  168.     <link rel="alternate" type="application/rss+xml" title="<?php echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['intl'][0], array( array('l'=>'All products in'),$_smarty_tpl ) );?>
  169.  <?php echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>'title'),$_smarty_tpl ) );?>
  170. " href="<?php ob_start();
  171. echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('attr'=>"locale"),$_smarty_tpl ) );
  172. $_prefixVariable2 ob_get_clean();
  173. ob_start();
  174. echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>"id"),$_smarty_tpl ) );
  175. $_prefixVariable3 ob_get_clean();
  176. echo call_user_func_array$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('path'=>"/feed/catalog/%lang/%category_id",'lang'=>$_prefixVariable2,'category_id'=>$_prefixVariable3),$_smarty_tpl ) );?>
  177. " />
  178. <?php }
  179. }
  180. }
  181. /* {/block "feeds"} */
  182. /* {block 'no-return-functions'} */
  183. class Block_123425978365364b480921b8_47517641 extends Smarty_Internal_Block
  184. {
  185. public $subBlocks = array (
  186.   'no-return-functions' => 
  187.   array (
  188.     => 'Block_123425978365364b480921b8_47517641',
  189.   ),
  190. );
  191. public $append 'true';
  192. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  193. ?>
  194. <?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?>
  195.     <?php $_smarty_tpl->_assignInScope('breadcrumbs', array());?>
  196.     <?php $_block_plugin3 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;
  197. if (!is_callable(array($_block_plugin3'theliaLoop'))) {
  198. throw new SmartyException('block tag \'loop\' not callable or registered');
  199. }
  200. $_smarty_tpl->smarty->_cache['_tag_stack'][] = array('loop', array('name'=>"category_path",'type'=>"category-path",'category'=>$_smarty_tpl->tpl_vars['category_id']->value));
  201. $_block_repeat=true;
  202. echo $_block_plugin3->theliaLoop(array('name'=>"category_path",'type'=>"category-path",'category'=>$_smarty_tpl->tpl_vars['category_id']->value), null$_smarty_tpl$_block_repeat);
  203. while ($_block_repeat) {
  204. ob_start();?>
  205.         <?php ob_start();
  206. echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['TITLE']->value,$_smarty_tpl);
  207. $_prefixVariable4 ob_get_clean();
  208. ob_start();
  209. echo $_smarty_tpl->tpl_vars['URL']->value;
  210. $_prefixVariable5 ob_get_clean();
  211. $_tmp_array = isset($_smarty_tpl->tpl_vars['breadcrumbs']) ? $_smarty_tpl->tpl_vars['breadcrumbs']->value : array();
  212. if (!(is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess)) {
  213. settype($_tmp_array'array');
  214. }
  215. $_tmp_array[] = array('title'=>$_prefixVariable4,'url'=>$_prefixVariable5);
  216. $_smarty_tpl->_assignInScope('breadcrumbs'$_tmp_array);?>
  217.     <?php $_block_repeat=false;
  218. echo $_block_plugin3->theliaLoop(array('name'=>"category_path",'type'=>"category-path",'category'=>$_smarty_tpl->tpl_vars['category_id']->value), ob_get_clean(), $_smarty_tpl$_block_repeat);
  219. }
  220. array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);
  221. }
  222. }
  223. }
  224. /* {/block 'no-return-functions'} */
  225. /* {block "main-content"} */
  226. class Block_81392491765364b48095bf2_19221627 extends Smarty_Internal_Block
  227. {
  228. public $subBlocks = array (
  229.   'main-content' => 
  230.   array (
  231.     => 'Block_81392491765364b48095bf2_19221627',
  232.   ),
  233. );
  234. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  235. ?>
  236. <?php ob_start();
  237. echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp $_GET['limit'] ?? null)===null||$tmp==='' ?? null $tmp),$_smarty_tpl);
  238. $_prefixVariable6 ob_get_clean();
  239. $_smarty_tpl->_assignInScope('limit'$_prefixVariable6);
  240. ob_start();
  241. echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp $_GET['page'] ?? null)===null||$tmp==='' ?? null $tmp),$_smarty_tpl);
  242. $_prefixVariable7 ob_get_clean();
  243. $_smarty_tpl->_assignInScope('product_page'$_prefixVariable7);
  244. ob_start();
  245. echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp $_GET['order'] ?? null)===null||$tmp==='' 'alpha' ?? null $tmp),$_smarty_tpl);
  246. $_prefixVariable8 ob_get_clean();
  247. $_smarty_tpl->_assignInScope('product_order'$_prefixVariable8);?>
  248. <?php if ($_smarty_tpl->tpl_vars['category_id']->value == 16 || $_smarty_tpl->tpl_vars['category_id']->value == 17 || $_smarty_tpl->tpl_vars['category_id']->value == 18 || $_smarty_tpl->tpl_vars['category_id']->value == 20 || $_smarty_tpl->tpl_vars['category_id']->value == 21 || $_smarty_tpl->tpl_vars['category_id']->value == 30 || $_smarty_tpl->tpl_vars['category_id']->value == 31 || $_smarty_tpl->tpl_vars['category_id']->value == 32) {?>
  249. <?php $_smarty_tpl->_subTemplateRender("file:includes/vivre_contemporain/inspiration.html"$_smarty_tpl->cache_id$_smarty_tpl->compile_id0$_smarty_tpl->cache_lifetime, array(), 0false);
  250. ?>
  251. <?php } else { ?>
  252. <?php $_smarty_tpl->_subTemplateRender("file:includes/vivre_contemporain/vivre_category.html"$_smarty_tpl->cache_id$_smarty_tpl->compile_id0$_smarty_tpl->cache_lifetime, array(), 0false);
  253. ?>
  254. <?php }
  255. }
  256. }
  257. /* {/block "main-content"} */
  258. /* {block "stylesheet"} */
  259. class Block_28814198565364b480d2f49_40552475 extends Smarty_Internal_Block
  260. {
  261. public $subBlocks = array (
  262.   'stylesheet' => 
  263.   array (
  264.     => 'Block_28814198565364b480d2f49_40552475',
  265.   ),
  266. );
  267. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  268. ?>
  269. <?php
  270. }
  271. }
  272. /* {/block "stylesheet"} */
  273. /* {block "after-javascript-include"} */
  274. class Block_52434451565364b480d3678_55318979 extends Smarty_Internal_Block
  275. {
  276. public $subBlocks = array (
  277.   'after-javascript-include' => 
  278.   array (
  279.     => 'Block_52434451565364b480d3678_55318979',
  280.   ),
  281. );
  282. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  283. ?>
  284. <?php echo '<script'?>
  285. >
  286.     var openPhotoSwipe = function() {
  287.         var pswpElement = document.querySelectorAll('.pswp')[0];
  288.         // define options (if needed)
  289.         var options = {
  290.             // history & focus options are disabled on CodePen
  291.             history: false,
  292.             focus: false,
  293.             loop: true,
  294.             showAnimationDuration: 0,
  295.             hideAnimationDuration: 0
  296.         };
  297.         var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, ps_items, options);
  298.         gallery.init();
  299.     };
  300.     //openPhotoSwipe();
  301.     document.getElementById('btn').onclick = openPhotoSwipe;
  302. <?php echo '</script'?>
  303. >
  304. <?php
  305. }
  306. }
  307. /* {/block "after-javascript-include"} */
  308. /* {block "javascript-initialization"} */
  309. class Block_39514177065364b480d3d02_97664935 extends Smarty_Internal_Block
  310. {
  311. public $subBlocks = array (
  312.   'javascript-initialization' => 
  313.   array (
  314.     => 'Block_39514177065364b480d3d02_97664935',
  315.   ),
  316. );
  317. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
  318. ?>
  319. <?php
  320. }
  321. }
  322. /* {/block "javascript-initialization"} */
  323. }