<?php /* Smarty version Smarty-3.1.19, created on 2026-06-29 19:21:57 compiled from "/var/www/5poplavkov/data/www/5poplavkov.ru/themes/theme496/modules/pm_advancedsearch4/views/templates/hook/pm_advancedsearch.tpl" */ ?> <?php /*%%SmartyHeaderCode:18397649866a429ba54ce5e0-68117746%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '72bcb31f92c0ad53a089e442e3ee3d169b6390ff' => array ( 0 => '/var/www/5poplavkov/data/www/5poplavkov.ru/themes/theme496/modules/pm_advancedsearch4/views/templates/hook/pm_advancedsearch.tpl', 1 => 1579076846, 2 => 'file', ), ), 'nocache_hash' => '18397649866a429ba54ce5e0-68117746', 'function' => array ( ), 'variables' => array ( 'as_searchs' => 0, 'hookName' => 0, 'hideAS4Form' => 0, 'as_obj' => 0, 'as_search' => 0, 'ASSearchUrlForm' => 0, 'criterions_group' => 0, 'selected_id_criterion' => 0, 'as_criteria_group_type_interal_name' => 0, 'hidden_criteria_group_open' => 0, 'next_id_criterion_group_isset' => 0, 'as4_productFilterListData' => 0, 'as4_productFilterListSource' => 0, 'as_location_name' => 0, 'ajaxMode' => 0, 'as4_localCacheKey' => 0, 'as4_localCache' => 0, 'as4_blurEffect' => 0, 'page_name' => 0, 'as_is_seo_page' => 0, 'orderby' => 0, 'orderway' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.19', 'unifunc' => 'content_6a429ba559e0c3_09650084', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_6a429ba559e0c3_09650084')) {function content_6a429ba559e0c3_09650084($_smarty_tpl) {?><?php if (isset($_smarty_tpl->tpl_vars['as_searchs']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hookName']->value=='top') {?><div class="clear"></div><?php }?> <?php if (isset($_smarty_tpl->tpl_vars['hideAS4Form']->value)&&$_smarty_tpl->tpl_vars['hideAS4Form']->value==true) {?><div id="PM_ASFormContainerHidden" style="display: none"><?php }?> <?php $_smarty_tpl->tpl_vars['as_search'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['as_search']->_loop = false; $_from = $_smarty_tpl->tpl_vars['as_searchs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['as_search']->key => $_smarty_tpl->tpl_vars['as_search']->value) { $_smarty_tpl->tpl_vars['as_search']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['next_id_criterion_group_isset'] = new Smarty_variable(false, null, 0);?> <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['as_obj']->value->_getTplPath("pm_advancedsearch_header_block.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?php if ($_smarty_tpl->tpl_vars['as_search']->value['remind_selection']==3||$_smarty_tpl->tpl_vars['as_search']->value['remind_selection']==2) {?> <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['as_obj']->value->_getTplPath("pm_advancedsearch_selection_block.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?php }?> <form action="<?php echo htmlentities($_smarty_tpl->tpl_vars['ASSearchUrlForm']->value, ENT_QUOTES, 'UTF-8', true);?> " method="GET" id="PM_ASForm_<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> " class="PM_ASForm"> <div class="PM_ASCriterionsGroupList<?php if ($_smarty_tpl->tpl_vars['hookName']->value!='leftcolumn'&&$_smarty_tpl->tpl_vars['hookName']->value!='rightcolumn') {?> row<?php }?>"> <?php $_smarty_tpl->tpl_vars['criterions_group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['criterions_group']->_loop = false; $_from = $_smarty_tpl->tpl_vars['as_search']->value['criterions_groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['criterions_group']->key => $_smarty_tpl->tpl_vars['criterions_group']->value) { $_smarty_tpl->tpl_vars['criterions_group']->_loop = true; ?> <?php $_smarty_tpl->_capture_stack[0][] = array("as4_input_hidden_criterions", null, null); ob_start(); ?> <?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']])) {?> <?php $_smarty_tpl->tpl_vars['selected_id_criterion'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['selected_id_criterion']->_loop = false; $_from = $_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['selected_id_criterion']->key => $_smarty_tpl->tpl_vars['selected_id_criterion']->value) { $_smarty_tpl->tpl_vars['selected_id_criterion']->_loop = true; ?> <?php if (!$_smarty_tpl->tpl_vars['criterions_group']->value['visible']) {?> <input type="hidden" name="as4c[<?php echo intval($_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']);?> ][]" value="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['as4_nofilter'][0][0]->smartyNoFilterModifier($_smarty_tpl->tpl_vars['selected_id_criterion']->value);?> " /> <input type="hidden" name="as4c_hidden[<?php echo intval($_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']);?> ][]" value="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['as4_nofilter'][0][0]->smartyNoFilterModifier($_smarty_tpl->tpl_vars['selected_id_criterion']->value);?> " /> <?php }?> <?php } ?> <?php }?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents()); if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents()); Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean(); } else $_smarty_tpl->capture_error();?> <?php if (!(isset($_smarty_tpl->tpl_vars['as_criteria_group_type_interal_name']->value[$_smarty_tpl->tpl_vars['criterions_group']->value['display_type']])&&($_smarty_tpl->tpl_vars['as_criteria_group_type_interal_name']->value[$_smarty_tpl->tpl_vars['criterions_group']->value['display_type']]=='slider'||$_smarty_tpl->tpl_vars['as_criteria_group_type_interal_name']->value[$_smarty_tpl->tpl_vars['criterions_group']->value['display_type']]=='range')&&isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']])&&isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0])&&((isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['cur_min'])&&isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['cur_max'])&&$_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['cur_min']==0&&$_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['cur_max']==0)||(isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['min'])&&isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['max'])&&$_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['min']==0&&$_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']][0]['max']==0)))&&($_smarty_tpl->tpl_vars['criterions_group']->value['visible']&&$_smarty_tpl->tpl_vars['as_search']->value['hide_empty_crit_group']&&isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']])&&sizeof($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']]))||($_smarty_tpl->tpl_vars['criterions_group']->value['visible']&&!$_smarty_tpl->tpl_vars['as_search']->value['hide_empty_crit_group'])||($_smarty_tpl->tpl_vars['criterions_group']->value['visible']&&$_smarty_tpl->tpl_vars['as_search']->value['step_search'])) {?> <?php if ($_smarty_tpl->tpl_vars['criterions_group']->value['hidden']=='1'&&!isset($_smarty_tpl->tpl_vars['hidden_criteria_group_open']->value)) {?> <?php $_smarty_tpl->tpl_vars['hidden_criteria_group_open'] = new Smarty_variable(true, null, 0);?> <p class="PM_ASShowCriterionsGroupHidden<?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['advanced_search_open'])&&$_smarty_tpl->tpl_vars['as_search']->value['advanced_search_open']) {?> PM_ASShowCriterionsGroupHiddenOpen<?php }?>"><a href="#"><?php echo smartyTranslate(array('s'=>'Show/hide more options','mod'=>'pm_advancedsearch4'),$_smarty_tpl);?> </a></p> <?php }?> <div id="PM_ASCriterionsGroup_<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> _<?php echo intval($_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']);?> " class="<?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups'])&&is_array($_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups'])&&in_array($_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group'],$_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups'])) {?>PM_ASCriterionsSEOGroupDisabled <?php }?>PM_ASCriterionsGroup<?php if ($_smarty_tpl->tpl_vars['criterions_group']->value['hidden']) {?> PM_ASCriterionsGroupHidden<?php }?><?php if ($_smarty_tpl->tpl_vars['as_search']->value['hide_empty_crit_group']&&$_smarty_tpl->tpl_vars['as_search']->value['step_search']&&(!isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']])||!sizeof($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']]))) {?> PM_ASCriterionsGroupHidden<?php }?> PM_ASCriterionsGroup<?php echo htmlentities(ucfirst($_smarty_tpl->tpl_vars['criterions_group']->value['criterion_group_type']), ENT_QUOTES, 'UTF-8', true);?> <?php if ($_smarty_tpl->tpl_vars['hookName']->value!='leftcolumn'&&$_smarty_tpl->tpl_vars['hookName']->value!='rightcolumn') {?><?php echo htmlentities($_smarty_tpl->tpl_vars['criterions_group']->value['css_classes'], ENT_QUOTES, 'UTF-8', true);?> <?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['advanced_search_open'])&&$_smarty_tpl->tpl_vars['as_search']->value['advanced_search_open']) {?> style="display:block;"<?php }?>> <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['as_obj']->value->_getTplPath("pm_advancedsearch_criterions.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> </div> <?php if ($_smarty_tpl->tpl_vars['as_search']->value['step_search']&&$_smarty_tpl->tpl_vars['next_id_criterion_group_isset']->value==false&&!isset($_smarty_tpl->tpl_vars['as_search']->value['criterions'][$_smarty_tpl->tpl_vars['criterions_group']->value['id_criterion_group']])) {?> <?php $_smarty_tpl->tpl_vars['next_id_criterion_group_isset'] = new Smarty_variable(true, null, 0);?> <?php }?> <?php }?> <?php } ?> </div><!-- .PM_ASCriterionsGroupList --> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['as4_nofilter'][0][0]->smartyNoFilterModifier(Smarty::$_smarty_vars['capture']['as4_input_hidden_criterions']);?> <?php if (intval($_smarty_tpl->tpl_vars['as_search']->value['reset_group'])) {?> <input type="hidden" name="reset_group" value="" /> <?php }?> <input type="hidden" name="id_search" value="<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> " /> <?php if (As4SearchEngine::getCurrentCategory()) {?> <input type="hidden" name="id_category_search" value="<?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['id_category_root'])&&$_smarty_tpl->tpl_vars['as_search']->value['id_category_root']>0) {?><?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_category_root']);?> <?php } elseif (As4SearchEngine::getCurrentCategory()) {?><?php echo intval(As4SearchEngine::getCurrentCategory());?> <?php }?>" /> <?php }?> <?php if (As4SearchEngine::getCurrentManufacturer()) {?> <input type="hidden" name="id_manufacturer_search" value="<?php echo intval(As4SearchEngine::getCurrentManufacturer());?> " /> <?php }?> <?php if (As4SearchEngine::getCurrentSupplier()) {?> <input type="hidden" name="id_supplier_search" value="<?php echo intval(As4SearchEngine::getCurrentSupplier());?> " /> <?php }?> <?php if ($_smarty_tpl->tpl_vars['as_search']->value['step_search']) {?> <input type="hidden" name="next_id_criterion_group" value="" /> <?php }?> <input type="hidden" name="orderby"<?php if (isset($_GET['orderby'])&&$_GET['orderby']) {?> value="<?php echo htmlentities($_GET['orderby'], ENT_QUOTES, 'UTF-8', true);?> "<?php } else { ?> disabled="disabled"<?php }?> /> <input type="hidden" name="orderway"<?php if (isset($_GET['orderway'])&&$_GET['orderway']) {?> value="<?php echo htmlentities($_GET['orderway'], ENT_QUOTES, 'UTF-8', true);?> "<?php } else { ?> disabled="disabled"<?php }?> /> <input type="hidden" name="n"<?php if (isset($_GET['n'])&&$_GET['n']) {?> value="<?php echo intval($_GET['n']);?> "<?php } else { ?> disabled="disabled"<?php }?> /> <?php if ($_smarty_tpl->tpl_vars['as_search']->value['search_method']==2) {?> <input type="submit" value="<?php echo smartyTranslate(array('s'=>'Search','mod'=>'pm_advancedsearch4'),$_smarty_tpl);?> " name="submitAsearch" class="btn btn-default PM_ASSubmitSearch" /> <?php }?> <?php if (isset($_GET['id_seo'])) {?> <input type="hidden" name="id_seo" value="<?php echo intval($_GET['id_seo']);?> " /> <?php }?> <script type="text/javascript"> as4Plugin.params[<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> ] = { 'hookName' : '<?php echo htmlentities($_smarty_tpl->tpl_vars['hookName']->value, ENT_QUOTES, 'UTF-8', true);?> ', 'centerColumnCssClasses' : <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as_search']->value['search_results_selector_css']);?> , 'availableCriterionsGroups' : <?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['criterionsGroupsMini'])) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as_search']->value['criterionsGroupsMini']);?> <?php } else { ?>{}<?php }?>, 'selectedCriterions' : <?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['criterions_selected'])) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as_search']->value['criterions_selected']);?> <?php } else { ?>{}<?php }?>, 'stepSearch' : <?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['step_search']);?> , 'searchMethod' : <?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['search_method']);?> , 'keep_category_information' : <?php if (As4SearchEngine::getCurrentCategory()||As4SearchEngine::getCurrentManufacturer()||As4SearchEngine::getCurrentSupplier()||!empty($_GET['seo_url'])) {?><?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['keep_category_information']);?> <?php } else { ?>0<?php }?>, 'search_results_selector' : '<?php echo htmlentities($_smarty_tpl->tpl_vars['as_search']->value['search_results_selector'], ENT_QUOTES, 'UTF-8', true);?> ', 'insert_in_center_column' : <?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['insert_in_center_column']);?> , 'seo_criterion_groups' : '<?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups'])&&is_array($_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups'])) {?><?php echo htmlentities(implode(",",$_smarty_tpl->tpl_vars['as_search']->value['seo_criterion_groups']), ENT_QUOTES, 'UTF-8', true);?> <?php }?>', 'as4_productFilterListData' : <?php if (isset($_smarty_tpl->tpl_vars['as4_productFilterListData']->value)&&!empty($_smarty_tpl->tpl_vars['as4_productFilterListData']->value)) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as4_productFilterListData']->value);?> <?php } else { ?>''<?php }?>, 'as4_productFilterListSource' : <?php if (isset($_smarty_tpl->tpl_vars['as4_productFilterListSource']->value)&&!empty($_smarty_tpl->tpl_vars['as4_productFilterListSource']->value)) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as4_productFilterListSource']->value);?> <?php } else { ?>''<?php }?>, 'scrollTopActive' : <?php if (isset($_smarty_tpl->tpl_vars['as_search']->value['scrolltop_active'])&&$_smarty_tpl->tpl_vars['as_search']->value['scrolltop_active']) {?>true<?php } else { ?>false<?php }?>, 'resetURL' : <?php if (is_array($_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'])&&sizeof($_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'])) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(As4SearchEngine::generateURLFromCriterions($_smarty_tpl->tpl_vars['as_search']->value['id_search']));?> <?php } else { ?>''<?php }?> }; <?php if (isset($_smarty_tpl->tpl_vars['as_location_name']->value)&&$_smarty_tpl->tpl_vars['as_location_name']->value) {?> as4Plugin.locationName = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as_location_name']->value);?> ; if(typeof(as4Plugin.locationName) != 'undefined' && as4Plugin.locationName) { $(document).ready(function() { $('#PM_ASBlock_<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> .PM_ASResetSearch').html("<?php echo smartyTranslate(array('s'=>'Back to','mod'=>'pm_advancedsearch4','js'=>1),$_smarty_tpl);?> " + as4Plugin.locationName); }); } <?php }?> <?php if (is_array($_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'])&&sizeof($_smarty_tpl->tpl_vars['as_search']->value['selected_criterion'])&&$_smarty_tpl->tpl_vars['as_search']->value['selected_criterion']!=$_smarty_tpl->tpl_vars['as_search']->value['selected_criterion_from_emplacement']&&isset($_smarty_tpl->tpl_vars['ajaxMode']->value)&&$_smarty_tpl->tpl_vars['ajaxMode']->value) {?> $('#PM_ASBlock_<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> .PM_ASResetSearch').css('display','block'); <?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['as4_localCacheKey']->value)) {?> as4Plugin.localCacheKey = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as4_localCacheKey']->value);?> ; <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['as4_localCache']->value)) {?> as4Plugin.localCache = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as4_localCache']->value);?> ; <?php }?> as4Plugin.blurEffect = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['as4_blurEffect']->value);?> ; <?php if ($_smarty_tpl->tpl_vars['page_name']->value=='module-pm_advancedsearch4-searchresults'||!empty($_smarty_tpl->tpl_vars['as_is_seo_page']->value)) {?> <?php if (!empty($_smarty_tpl->tpl_vars['orderby']->value)) {?> as4Plugin.params[<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> ].orderBy = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(htmlentities($_smarty_tpl->tpl_vars['orderby']->value, ENT_QUOTES, 'UTF-8', true));?> ; <?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['orderway']->value)) {?> as4Plugin.params[<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> ].orderWay = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(htmlentities($_smarty_tpl->tpl_vars['orderway']->value, ENT_QUOTES, 'UTF-8', true));?> ; <?php }?> as4Plugin.params[<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> ].addBestSalesOption = false; <?php }?> as4Plugin.initSearchBlock(<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['id_search']);?> ,<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['search_method']);?> ,<?php echo intval($_smarty_tpl->tpl_vars['as_search']->value['step_search']);?> ); as4Plugin.initSearchEngine(); </script> <div class="clear"></div> </form> <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['as_obj']->value->_getTplPath("pm_advancedsearch_footer_block.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['hideAS4Form']->value)&&$_smarty_tpl->tpl_vars['hideAS4Form']->value==true) {?></div><script type="text/javascript">$(document).ready(function() { as4Plugin.moveFormContainerForSEOPages(); });</script><?php }?> <?php }?><?php }} ?>
END