var/cache/dev/smarty/compile/06c0af270fcf019f2bb5d00d679bfc481e9b394b_0.file.category.html.php line 26
<?php/* Smarty version 4.1.1, created on 2023-10-23 12:30:32from '/var/www/colasse_dev/templates/frontOffice/demo_black/category.html' *//* @var Smarty_Internal_Template $_smarty_tpl */if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ('version' => '4.1.1','unifunc' => 'content_65364b480d42f2_37683348','has_nocache_code' => false,'file_dependency' =>array ('06c0af270fcf019f2bb5d00d679bfc481e9b394b' =>array (0 => '/var/www/colasse_dev/templates/frontOffice/demo_black/category.html',1 => 1680572015,2 => 'file',),),'includes' =>array ('file:includes/meta-seo.html' => 1,'file:includes/vivre_contemporain/inspiration.html' => 1,'file:includes/vivre_contemporain/vivre_category.html' => 1,),),false)) {function content_65364b480d42f2_37683348 (Smarty_Internal_Template $_smarty_tpl) {$_smarty_tpl->_loadInheritance();$_smarty_tpl->inheritance->init($_smarty_tpl, true);?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_140313732265364b48080a23_66519173', "init");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_186908257665364b48084348_04107074', "body-class");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_214094467365364b48084d39_53344243', 'no-return-functions');?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_199676685165364b48088730_63234983', "meta");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_187910145765364b4808f4a1_46081507', "feeds");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_123425978365364b480921b8_47517641', 'no-return-functions');?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_81392491765364b48095bf2_19221627', "main-content");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_28814198565364b480d2f49_40552475', "stylesheet");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_52434451565364b480d3678_55318979', "after-javascript-include");?><?php$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_39514177065364b480d3d02_97664935', "javascript-initialization");?><?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'layout.tpl');}/* {block "init"} */class Block_140313732265364b48080a23_66519173 extends Smarty_Internal_Block{public $subBlocks = array ('init' =>array (0 => 'Block_140313732265364b48080a23_66519173',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php ob_start();echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>"id"),$_smarty_tpl ) );$_prefixVariable1 = ob_get_clean();$_smarty_tpl->_assignInScope('category_id', $_prefixVariable1);}}/* {/block "init"} *//* {block "body-class"} */class Block_186908257665364b48084348_04107074 extends Smarty_Internal_Block{public $subBlocks = array ('body-class' =>array (0 => 'Block_186908257665364b48084348_04107074',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?>page-category<?php}}/* {/block "body-class"} *//* {block 'no-return-functions'} */class Block_214094467365364b48084d39_53344243 extends Smarty_Internal_Block{public $subBlocks = array ('no-return-functions' =>array (0 => 'Block_214094467365364b48084d39_53344243',),);public $append = 'true';public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?><?php $_block_plugin1 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;if (!is_callable(array($_block_plugin1, 'theliaLoop'))) {throw new SmartyException('block tag \'loop\' not callable or registered');}$_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"));$_block_repeat=true;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);while ($_block_repeat) {ob_start();?><?php $_smarty_tpl->_assignInScope('page_title', $_smarty_tpl->tpl_vars['META_TITLE']->value);?><?php $_block_repeat=false;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);}array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);}}}/* {/block 'no-return-functions'} *//* {block "meta"} */class Block_199676685165364b48088730_63234983 extends Smarty_Internal_Block{public $subBlocks = array ('meta' =>array (0 => 'Block_199676685165364b48088730_63234983',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?><?php $_block_plugin2 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;if (!is_callable(array($_block_plugin2, 'theliaLoop'))) {throw new SmartyException('block tag \'loop\' not callable or registered');}$_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"));$_block_repeat=true;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);while ($_block_repeat) {ob_start();?><?php $_smarty_tpl->_subTemplateRender("file:includes/meta-seo.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);?><?php $_block_repeat=false;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);}array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);}}}/* {/block "meta"} *//* {block "feeds"} */class Block_187910145765364b4808f4a1_46081507 extends Smarty_Internal_Block{public $subBlocks = array ('feeds' =>array (0 => 'Block_187910145765364b4808f4a1_46081507',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?><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 ) );?><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>'title'),$_smarty_tpl ) );?>" href="<?php ob_start();echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('attr'=>"locale"),$_smarty_tpl ) );$_prefixVariable2 = ob_get_clean();ob_start();echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['category'][0], array( array('attr'=>"id"),$_smarty_tpl ) );$_prefixVariable3 = ob_get_clean();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 ) );?>" /><?php }}}/* {/block "feeds"} *//* {block 'no-return-functions'} */class Block_123425978365364b480921b8_47517641 extends Smarty_Internal_Block{public $subBlocks = array ('no-return-functions' =>array (0 => 'Block_123425978365364b480921b8_47517641',),);public $append = 'true';public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['category_id']->value) {?><?php $_smarty_tpl->_assignInScope('breadcrumbs', array());?><?php $_block_plugin3 = isset($_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0]) ? $_smarty_tpl->smarty->registered_plugins['block']['loop'][0][0] : null;if (!is_callable(array($_block_plugin3, 'theliaLoop'))) {throw new SmartyException('block tag \'loop\' not callable or registered');}$_smarty_tpl->smarty->_cache['_tag_stack'][] = array('loop', array('name'=>"category_path",'type'=>"category-path",'category'=>$_smarty_tpl->tpl_vars['category_id']->value));$_block_repeat=true;echo $_block_plugin3->theliaLoop(array('name'=>"category_path",'type'=>"category-path",'category'=>$_smarty_tpl->tpl_vars['category_id']->value), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) {ob_start();?><?php ob_start();echo TheliaSmarty\Template\SmartyParser::theliaEscape($_smarty_tpl->tpl_vars['TITLE']->value,$_smarty_tpl);$_prefixVariable4 = ob_get_clean();ob_start();echo $_smarty_tpl->tpl_vars['URL']->value;$_prefixVariable5 = ob_get_clean();$_tmp_array = isset($_smarty_tpl->tpl_vars['breadcrumbs']) ? $_smarty_tpl->tpl_vars['breadcrumbs']->value : array();if (!(is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess)) {settype($_tmp_array, 'array');}$_tmp_array[] = array('title'=>$_prefixVariable4,'url'=>$_prefixVariable5);$_smarty_tpl->_assignInScope('breadcrumbs', $_tmp_array);?><?php $_block_repeat=false;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);}array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);}}}/* {/block 'no-return-functions'} *//* {block "main-content"} */class Block_81392491765364b48095bf2_19221627 extends Smarty_Internal_Block{public $subBlocks = array ('main-content' =>array (0 => 'Block_81392491765364b48095bf2_19221627',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php ob_start();echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp = $_GET['limit'] ?? null)===null||$tmp==='' ? 8 ?? null : $tmp),$_smarty_tpl);$_prefixVariable6 = ob_get_clean();$_smarty_tpl->_assignInScope('limit', $_prefixVariable6);ob_start();echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp = $_GET['page'] ?? null)===null||$tmp==='' ? 1 ?? null : $tmp),$_smarty_tpl);$_prefixVariable7 = ob_get_clean();$_smarty_tpl->_assignInScope('product_page', $_prefixVariable7);ob_start();echo TheliaSmarty\Template\SmartyParser::theliaEscape((($tmp = $_GET['order'] ?? null)===null||$tmp==='' ? 'alpha' ?? null : $tmp),$_smarty_tpl);$_prefixVariable8 = ob_get_clean();$_smarty_tpl->_assignInScope('product_order', $_prefixVariable8);?><?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) {?><?php $_smarty_tpl->_subTemplateRender("file:includes/vivre_contemporain/inspiration.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);?><?php } else { ?><?php $_smarty_tpl->_subTemplateRender("file:includes/vivre_contemporain/vivre_category.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);?><?php }}}/* {/block "main-content"} *//* {block "stylesheet"} */class Block_28814198565364b480d2f49_40552475 extends Smarty_Internal_Block{public $subBlocks = array ('stylesheet' =>array (0 => 'Block_28814198565364b480d2f49_40552475',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php}}/* {/block "stylesheet"} *//* {block "after-javascript-include"} */class Block_52434451565364b480d3678_55318979 extends Smarty_Internal_Block{public $subBlocks = array ('after-javascript-include' =>array (0 => 'Block_52434451565364b480d3678_55318979',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php echo '<script'; ?>>var openPhotoSwipe = function() {var pswpElement = document.querySelectorAll('.pswp')[0];// define options (if needed)var options = {// history & focus options are disabled on CodePenhistory: false,focus: false,loop: true,showAnimationDuration: 0,hideAnimationDuration: 0};var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, ps_items, options);gallery.init();};//openPhotoSwipe();document.getElementById('btn').onclick = openPhotoSwipe;<?php echo '</script'; ?>><?php}}/* {/block "after-javascript-include"} *//* {block "javascript-initialization"} */class Block_39514177065364b480d3d02_97664935 extends Smarty_Internal_Block{public $subBlocks = array ('javascript-initialization' =>array (0 => 'Block_39514177065364b480d3d02_97664935',),);public function callBlock(Smarty_Internal_Template $_smarty_tpl) {?><?php}}/* {/block "javascript-initialization"} */}