Files
shop-praktikum/shop/source/tmp/smarty/b33208ab596d2e84d44ce676212fb275^%%C3^C37^C375492C%%manufacturerlist.tpl.php
Nikolai Fesenko 8d227c9191 First upload
2025-02-02 13:37:56 +01:00

33 lines
2.3 KiB
PHP

<?php /* Smarty version 2.6.34, created on 2025-02-01 09:42:13
compiled from widget/footer/manufacturerlist.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'widget/footer/manufacturerlist.tpl', 4, false),array('function', 'oxmultilang', 'widget/footer/manufacturerlist.tpl', 8, false),)), $this); ?>
<?php $this->assign('iManufacturerLimit', '20'); ?>
<?php $this->assign('manufacturers', $this->_tpl_vars['oView']->getManufacturerlist()); ?>
<?php if ($this->_tpl_vars['manufacturers']): ?>
<?php if (((is_array($_tmp=$this->_tpl_vars['manufacturers'])) ? $this->_run_mod_handler('count', true, $_tmp) : count($_tmp))): ?>
<ul class="manufacturers list-unstyled">
<?php $this->assign('rootManufacturer', $this->_tpl_vars['oView']->getRootManufacturer()); ?>
<li><a href="<?php echo $this->_tpl_vars['rootManufacturer']->getLink(); ?>
"><?php echo smarty_function_oxmultilang(array('ident' => 'ALL_BRANDS'), $this);?>
</a></li>
<?php $_from = $this->_tpl_vars['manufacturers']; if (($_from instanceof StdClass) || (!is_array($_from) && !is_object($_from))) { settype($_from, 'array'); }$this->_foreach['manufacturers'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['manufacturers']['total'] > 0):
foreach ($_from as $this->_tpl_vars['_mnf']):
$this->_foreach['manufacturers']['iteration']++;
?>
<?php if (($this->_foreach['manufacturers']['iteration']-1) < $this->_tpl_vars['iManufacturerLimit']): ?>
<li><a href="<?php echo $this->_tpl_vars['_mnf']->getLink(); ?>
" <?php if ($this->_tpl_vars['_mnf']->expanded): ?>class="exp"<?php endif; ?>><?php echo $this->_tpl_vars['_mnf']->oxmanufacturers__oxtitle->value; ?>
</a></li>
<?php elseif (($this->_foreach['manufacturers']['iteration']-1) == $this->_tpl_vars['iManufacturerLimit']): ?>
<li><a href="<?php echo $this->_tpl_vars['rootManufacturer']->getLink(); ?>
"><?php echo smarty_function_oxmultilang(array('ident' => 'MORE'), $this);?>
</a></li>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</ul>
<?php endif; ?>
<?php endif; ?>