Files
shop-praktikum/shop/source/tmp/smarty/b33208ab596d2e84d44ce676212fb275^%%1B^1BE^1BE9113A%%attributes.tpl.php
Nikolai Fesenko 8d227c9191 First upload
2025-02-02 13:37:56 +01:00

90 lines
4.4 KiB
PHP

<?php /* Smarty version 2.6.34, created on 2025-02-01 09:42:14
compiled from widget/locator/attributes.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'oxmultilang', 'widget/locator/attributes.tpl', 18, false),)), $this); ?>
<?php if ($this->_tpl_vars['attributes']): ?>
<div class="row">
<div class="col-xs-12">
<div class="list-filter clearfix">
<form method="get" action="<?php echo $this->_tpl_vars['oViewConf']->getSelfActionLink(); ?>
" name="_filterlist" id="filterList" class="pull-left">
<div class="hidden">
<?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>
<?php echo $this->_tpl_vars['oViewConf']->getNavFormParams(); ?>
<input type="hidden" name="cl" value="<?php echo $this->_tpl_vars['oViewConf']->getActiveClassName(); ?>
">
<input type="hidden" name="tpl" value="<?php echo $this->_tpl_vars['oViewConf']->getActTplName(); ?>
">
<input type="hidden" name="oxloadid" value="<?php echo $this->_tpl_vars['oViewConf']->getActContentLoadId(); ?>
">
<input type="hidden" name="fnc" value="executefilter">
<input type="hidden" name="fname" value="">
</div>
<?php if ($this->_tpl_vars['oView']->getClassName() == 'alist'): ?>
<strong><?php echo smarty_function_oxmultilang(array('ident' => 'DD_LISTLOCATOR_FILTER_ATTRIBUTES'), $this);?>
</strong>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['attributes']; if (($_from instanceof StdClass) || (!is_array($_from) && !is_object($_from))) { settype($_from, 'array'); }$this->_foreach['attr'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['attr']['total'] > 0):
foreach ($_from as $this->_tpl_vars['sAttrID'] => $this->_tpl_vars['oFilterAttr']):
$this->_foreach['attr']['iteration']++;
?>
<?php $this->assign('sActiveValue', $this->_tpl_vars['oFilterAttr']->getActiveValue()); ?>
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
<strong><?php echo $this->_tpl_vars['oFilterAttr']->getTitle(); ?>
:</strong>
<?php if ($this->_tpl_vars['sActiveValue']): ?>
<?php echo $this->_tpl_vars['sActiveValue']; ?>
<?php else: ?>
<?php echo smarty_function_oxmultilang(array('ident' => 'PLEASE_CHOOSE'), $this);?>
<?php endif; ?>
<span class="caret"></span>
</button>
<input type="hidden" name="attrfilter[<?php echo $this->_tpl_vars['sAttrID']; ?>
]" value="<?php echo $this->_tpl_vars['sActiveValue']; ?>
">
<ul class="dropdown-menu" role="menu">
<?php if ($this->_tpl_vars['sActiveValue']): ?>
<li><a data-selection-id="" href="#"><?php echo smarty_function_oxmultilang(array('ident' => 'PLEASE_CHOOSE'), $this);?>
</a></li>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['oFilterAttr']->getValues(); if (($_from instanceof StdClass) || (!is_array($_from) && !is_object($_from))) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['sValue']):
?>
<li><a data-selection-id="<?php echo $this->_tpl_vars['sValue']; ?>
" href="#" <?php if ($this->_tpl_vars['sActiveValue'] == $this->_tpl_vars['sValue']): ?>class="selected"<?php endif; ?> ><?php echo $this->_tpl_vars['sValue']; ?>
</a></li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>
<?php if ($this->_tpl_vars['sActiveValue']): ?><?php $this->assign('hasActiveValue', $this->_tpl_vars['sActiveValue']); ?><?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</form>
<?php if ($this->_tpl_vars['hasActiveValue']): ?>
<form method="get" action="<?php echo $this->_tpl_vars['oViewConf']->getSelfActionLink(); ?>
" name="_resetFilter" id="resetFilter" class="pull-left">
<?php echo $this->_tpl_vars['oViewConf']->getHiddenSid(); ?>
<?php echo $this->_tpl_vars['oViewConf']->getNavFormParams(); ?>
<input type="hidden" name="cl" value="<?php echo $this->_tpl_vars['oViewConf']->getActiveClassName(); ?>
">
<input type="hidden" name="fnc" value="resetFilter">
<button type="submit" class="btn btn-default btn-sm ml-2"><?php echo smarty_function_oxmultilang(array('ident' => 'DD_CATEGORY_RESET_BUTTON'), $this);?>
</button>
</form>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>