/app/cache/prod/smarty/compile/e1/42/82/e14282a36d31398d8dba97f8a2d2aad196c6a101.file.facets.tpl.php
PHP | 180 lines | 175 code | 5 blank | 0 comment | 32 complexity | 987acec51313c5fada8749e366f6f45c MD5 | raw file
Possible License(s): BSD-2-Clause, GPL-2.0, GPL-3.0, BSD-3-Clause, Apache-2.0
- <?php /* Smarty version Smarty-3.1.19, created on 2018-04-11 22:17:58
- compiled from "/home/autokr/domains/autokrai.kraitis.lt/public_html/themes/pos_aboss3/templates/catalog/_partials/facets.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:12263916455ace5f66bd2544-13385948%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- 'e14282a36d31398d8dba97f8a2d2aad196c6a101' =>
- array (
- 0 => '/home/autokr/domains/autokrai.kraitis.lt/public_html/themes/pos_aboss3/templates/catalog/_partials/facets.tpl',
- 1 => 1523458027,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '12263916455ace5f66bd2544-13385948',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'clear_all_link' => 0,
- 'facets' => 0,
- 'facet' => 0,
- 'filter' => 0,
- '_expand_id' => 0,
- '_collapse' => 0,
- 'js_enabled' => 0,
- 'sort_order' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.19',
- 'unifunc' => 'content_5ace5f66cc6bc3_69334451',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_5ace5f66cc6bc3_69334451')) {function content_5ace5f66cc6bc3_69334451($_smarty_tpl) {?>
- <div id="search_filters">
- <h4 class="text-uppercase h6 hidden-sm-down"><?php echo smartyTranslate(array('s'=>'Filter By','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
- </h4>
- <div id="_desktop_search_filters_clear_all" class="hidden-sm-down clear-all-wrapper">
- <button data-search-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['clear_all_link']->value, ENT_QUOTES, 'UTF-8');?>
- " class="btn btn-tertiary js-search-filters-clear-all">
- <i class="material-icons"></i>
- <?php echo smartyTranslate(array('s'=>'Clear all','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
- </button>
- </div>
- <?php $_smarty_tpl->tpl_vars["facet"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["facet"]->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['facets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars["facet"]->key => $_smarty_tpl->tpl_vars["facet"]->value) {
- $_smarty_tpl->tpl_vars["facet"]->_loop = true;
- ?>
- <?php if ($_smarty_tpl->tpl_vars['facet']->value['displayed']) {?>
- <section class="facet">
- <h1 class="h6 facet-title hidden-sm-down"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['facet']->value['label'], ENT_QUOTES, 'UTF-8');?>
- </h1>
- <?php $_smarty_tpl->tpl_vars['_expand_id'] = new Smarty_variable(mt_rand(10,100000), null, 0);?>
- <?php $_smarty_tpl->tpl_vars['_collapse'] = new Smarty_variable(true, null, 0);?>
- <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["filter"]->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['facet']->value['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) {
- $_smarty_tpl->tpl_vars["filter"]->_loop = true;
- ?>
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?><?php $_smarty_tpl->tpl_vars['_collapse'] = new Smarty_variable(false, null, 0);?><?php }?>
- <?php } ?>
- <div class="title hidden-md-up" data-target="#facet_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_expand_id']->value, ENT_QUOTES, 'UTF-8');?>
- " data-toggle="collapse"<?php if (!$_smarty_tpl->tpl_vars['_collapse']->value) {?> aria-expanded="true"<?php }?>>
- <h1 class="h6 facet-title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['facet']->value['label'], ENT_QUOTES, 'UTF-8');?>
- </h1>
- <span class="pull-xs-right">
- <span class="navbar-toggler collapse-icons">
- <i class="material-icons add"></i>
- <i class="material-icons remove"></i>
- </span>
- </span>
- </div>
- <?php if ($_smarty_tpl->tpl_vars['facet']->value['widgetType']!=='dropdown') {?>
- <ul id="facet_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_expand_id']->value, ENT_QUOTES, 'UTF-8');?>
- " class="collapse<?php if (!$_smarty_tpl->tpl_vars['_collapse']->value) {?> in<?php }?>">
- <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["filter"]->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['facet']->value['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) {
- $_smarty_tpl->tpl_vars["filter"]->_loop = true;
- ?>
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['displayed']) {?>
- <li>
- <label class="facet-label<?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?> active <?php }?>">
- <?php if ($_smarty_tpl->tpl_vars['facet']->value['multipleSelectionAllowed']) {?>
- <span class="custom-checkbox">
- <input
- data-search-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['nextEncodedFacetsURL'], ENT_QUOTES, 'UTF-8');?>
- "
- type="checkbox"
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?> checked <?php }?>
- >
- <?php if (isset($_smarty_tpl->tpl_vars['filter']->value['properties']['color'])) {?>
- <span class="color" style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['properties']['color'], ENT_QUOTES, 'UTF-8');?>
- "></span>
- <?php } elseif (isset($_smarty_tpl->tpl_vars['filter']->value['properties']['texture'])) {?>
- <span class="color texture" style="background-image:url(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['properties']['texture'], ENT_QUOTES, 'UTF-8');?>
- )"></span>
- <?php } else { ?>
- <span <?php if (!$_smarty_tpl->tpl_vars['js_enabled']->value) {?> class="ps-shown-by-js" <?php }?>><i class="material-icons checkbox-checked"></i></span>
- <?php }?>
- </span>
- <?php } else { ?>
- <span class="custom-checkbox">
- <input
- data-search-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['nextEncodedFacetsURL'], ENT_QUOTES, 'UTF-8');?>
- "
- type="radio"
- name="filter <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['facet']->value['label'], ENT_QUOTES, 'UTF-8');?>
- "
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?> checked <?php }?>
- >
- <span <?php if (!$_smarty_tpl->tpl_vars['js_enabled']->value) {?> class="ps-shown-by-js" <?php }?>><i class="material-icons checkbox-checked"></i></span>
- </span>
- <?php }?>
- <a
- href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['nextEncodedFacetsURL'], ENT_QUOTES, 'UTF-8');?>
- "
- class="_gray-darker search-link js-search-link"
- rel="nofollow"
- >
- <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['label'], ENT_QUOTES, 'UTF-8');?>
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['magnitude']) {?>
- <span class="magnitude">(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['magnitude'], ENT_QUOTES, 'UTF-8');?>
- )</span>
- <?php }?>
- </a>
- </label>
- </li>
- <?php }?>
- <?php } ?>
- </ul>
- <?php } else { ?>
- <form>
- <input type="hidden" name="order" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sort_order']->value, ENT_QUOTES, 'UTF-8');?>
- ">
- <select name="q">
- <option disabled selected hidden><?php echo smartyTranslate(array('s'=>'(no filter)','d'=>'Shop.Theme'),$_smarty_tpl);?>
- </option>
- <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["filter"]->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['facet']->value['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) {
- $_smarty_tpl->tpl_vars["filter"]->_loop = true;
- ?>
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['displayed']) {?>
- <option
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['active']) {?>
- selected
- value="<?php echo htmlspecialchars($_GET['q'], ENT_QUOTES, 'UTF-8');?>
- "
- <?php } else { ?>
- value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['nextEncodedFacets'], ENT_QUOTES, 'UTF-8');?>
- "
- <?php }?>
- >
- <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['label'], ENT_QUOTES, 'UTF-8');?>
- <?php if ($_smarty_tpl->tpl_vars['filter']->value['magnitude']) {?>
- (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['magnitude'], ENT_QUOTES, 'UTF-8');?>
- )
- <?php }?>
- </option>
- <?php }?>
- <?php } ?>
- </select>
- <?php if (!$_smarty_tpl->tpl_vars['js_enabled']->value) {?>
- <button class="ps-hidden-by-js" type="submit">
- <?php echo smartyTranslate(array('s'=>'Filter','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
- </button>
- <?php }?>
- </form>
- <?php }?>
- </section>
- <?php }?>
- <?php } ?>
- </div>
- <?php }} ?>