?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/60/82/0a/



?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/60/82

?? Viewing: 60820afc788cc07b3db36f83bac2f91588ca9918_2.file.content.tpl.php

<?php
/* Smarty version 4.3.1, created on 2024-01-02 04:55:01
  from '/home/webdevt/www/schtroumpf.fr/themes/stomp/modules/an_homeproducts/views/templates/front/content.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_65938915b1f625_87570073',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '60820afc788cc07b3db36f83bac2f91588ca9918' => 
    array (
      0 => '/home/webdevt/www/schtroumpf.fr/themes/stomp/modules/an_homeproducts/views/templates/front/content.tpl',
      1 => 1702566467,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./banners.tpl' => 2,
    'file:catalog/_partials/productlist.tpl' => 1,
  ),
),false)) {
function content_65938915b1f625_87570073 (Smarty_Internal_Template $_smarty_tpl) {
?>
<div class="an_homeproducts-content js-an_homeproducts-content active" <?php if ($_smarty_tpl->tpl_vars['widget']->value['config']['slider']) {?>data-items="4" data-nav="<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['widget']->value['config']['slider_nav'], ENT_QUOTES, 'UTF-8');?>
" data-dots="<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['widget']->value['config']['slider_dots'], ENT_QUOTES, 'UTF-8');?>
" data-loop="<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['widget']->value['config']['slider_loop'], ENT_QUOTES, 'UTF-8');?>
"<?php }?> data-block-id="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['block']->value['id_block'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
">
    <?php if ($_smarty_tpl->tpl_vars['block']->value['text'] != '') {?>
        <div class="an_homeproducts-content-text"><?php echo $_smarty_tpl->tpl_vars['block']->value['text'];?>
</div>
    <?php }?>

    <?php if ((isset($_smarty_tpl->tpl_vars['widget']->value['banners'][$_smarty_tpl->tpl_vars['block']->value['special_id_block']]['0']))) {?>
    <?php $_smarty_tpl->_subTemplateRender('file:./banners.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('banners'=>$_smarty_tpl->tpl_vars['widget']->value['banners'][$_smarty_tpl->tpl_vars['block']->value['special_id_block']]['0']), 0, false);
?>
    <?php }?>

    <?php if (($_smarty_tpl->tpl_vars['block']->value['show_sort'] && count($_smarty_tpl->tpl_vars['block']->value['sort'])) || ($_smarty_tpl->tpl_vars['widget']->value['config']['view_type'] == 'tabs' && $_smarty_tpl->tpl_vars['block']->value['link'] != '')) {?>
        <div class="an_homeproducts-tab-top <?php if (!$_smarty_tpl->tpl_vars['block']->value['show_sort']) {?>an_homeproducts-tab-top-nosort<?php }?>">
            <?php if ($_smarty_tpl->tpl_vars['block']->value['show_sort'] && count($_smarty_tpl->tpl_vars['block']->value['sort'])) {?>
            <div class="an_homeproducts-sort">
                <span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Sort by:','mod'=>'an_homeproducts'),$_smarty_tpl ) );?>
</span>
                <select class="js-an_homeproducts-sort">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['block']->value['sort'], 'sort');
$_smarty_tpl->tpl_vars['sort']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['sort']->value) {
$_smarty_tpl->tpl_vars['sort']->do_else = false;
?>
                    <option value="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['sort']->value['urlParameter'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['sort']->value['label'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</option>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </select>
            </div>
            <?php }?>

            <?php if ($_smarty_tpl->tpl_vars['widget']->value['config']['view_type'] == 'tabs' && $_smarty_tpl->tpl_vars['block']->value['link'] != '') {?>
                <a href="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['block']->value['link'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" class="an_homeproducts-link-all"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'All products','mod'=>'an_homeproducts'),$_smarty_tpl ) );?>
</a>
            <?php }?>
        </div>
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['block']->value['show_sub_cat'] && (isset($_smarty_tpl->tpl_vars['block']->value['childrenCats']))) {?>
    <div class="an_homeproducts-conteiner-category js-an_homeproducts-conteiner-category">
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['block']->value['childrenCats'], 'subCat', false, NULL, 'subcatlist', array (
  'index' => true,
));
$_smarty_tpl->tpl_vars['subCat']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['subCat']->value) {
$_smarty_tpl->tpl_vars['subCat']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_subcatlist']->value['index']++;
?>
        <a class="an_homeproducts-category js-an_homeproducts-category <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_subcatlist']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_subcatlist']->value['index'] : null) == 0) {?>active<?php }?>" data-cat="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['subCat']->value['id_category'] )), ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['subCat']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</a>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    </div>
    <?php }?>

    <section class="featured-products an_homeproducts-products clearfix mt-3 js-an_homeproducts-products">
        <?php $_smarty_tpl->_subTemplateRender("file:catalog/_partials/productlist.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('products'=>$_smarty_tpl->tpl_vars['block']->value['products'],'cssClass'=>"row",'productClass'=>"col-xs-6 col-lg-4 col-xl-3"), 0, false);
?>
    </section>

    <?php if (!$_smarty_tpl->tpl_vars['widget']->value['config']['slider'] && $_smarty_tpl->tpl_vars['widget']->value['config']['show_load_more'] && $_smarty_tpl->tpl_vars['block']->value['productsNextPage'] > 0) {?>
    <button class="btn btn-primary an_homeproducts-loadmore js-an_homeproducts-loadmore" data-page="2"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Load more','mod'=>'an_homeproducts'),$_smarty_tpl ) );?>
</button>
    <?php }?>



    <?php if ((isset($_smarty_tpl->tpl_vars['widget']->value['banners'][$_smarty_tpl->tpl_vars['block']->value['id_block']]['1']))) {?>
    <?php $_smarty_tpl->_subTemplateRender('file:./banners.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('banners'=>$_smarty_tpl->tpl_vars['widget']->value['banners'][$_smarty_tpl->tpl_vars['block']->value['id_block']]['1']), 0, true);
?>
    <?php }?>

</div><?php }
}


??

??