?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/19/eb/d9/



?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/19/eb

?? Viewing: 19ebd94cc0cecb531678801350a008328f47e339_2.file.product-flags.tpl.php

<?php
/* Smarty version 4.3.1, created on 2024-01-02 17:16:57
  from '/home/webdevt/www/schtroumpf.fr/themes/stomp/templates/catalog/_partials/product-flags.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_659436f905fa83_83382517',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '19ebd94cc0cecb531678801350a008328f47e339' => 
    array (
      0 => '/home/webdevt/www/schtroumpf.fr/themes/stomp/templates/catalog/_partials/product-flags.tpl',
      1 => 1702566466,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_659436f905fa83_83382517 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, false);
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_51101426659436f90592c2_46450838', 'product_flags');
}
/* {block 'product_flags'} */
class Block_51101426659436f90592c2_46450838 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'product_flags' => 
  array (
    0 => 'Block_51101426659436f90592c2_46450838',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

    <ul class="product-flags <?php if (((isset($_GET['view'])) && $_GET['view'] == 'leftcol') || (Module::isEnabled('an_theme') && Module::getInstanceByName('an_theme')->getParam('productslider_minisPos') == 'left')) {?>flags-left<?php }?>">
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['product']->value['flags'], 'flag');
$_smarty_tpl->tpl_vars['flag']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['flag']->value) {
$_smarty_tpl->tpl_vars['flag']->do_else = false;
?>
        <li class="product-flag <?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['flag']->value['type'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['flag']->value['label'], ENT_QUOTES, 'UTF-8');?>
</li>
      <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>


      <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?>
        <?php if ($_smarty_tpl->tpl_vars['product']->value['discount_type'] === 'percentage') {?>
          <li class="product-flag discount discount-percentage"><?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['product']->value['discount_percentage_absolute'], ENT_QUOTES, 'UTF-8');?>
</li>
        <?php } else { ?>
          <li class="product-flag discount discount-amount">
              <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Save %amount%','d'=>'Shop.Theme.Catalog','sprintf'=>array('%amount%'=>$_smarty_tpl->tpl_vars['product']->value['discount_to_display'])),$_smarty_tpl ) );?>

          </li>
        <?php }?>
      <?php }?>


    </ul>
  <?php
}
}
/* {/block 'product_flags'} */
}


??

??