function content_55d2ed042b4228_06464166($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('name', 'icon', 'delivery_time', 'weight_limit', 'rate_calculation', 'rate_calculation_manual', 'rate_calculation_realtime', 'shipping_service', 'test', 'weight', 'test', 'test', 'taxes', 'usergroups', 'ttc_usergroups', 'add_shipping_method', 'shipping_methods', 'delete', 'new_shipping_method', 'editing_shipping_method')); if ($_smarty_tpl->tpl_vars['shipping']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings"), null, 0); ?> <script type="text/javascript"> (function(_, $) { $(document).ready(function() { $('#elm_rate_calculation_R,#elm_rate_calculation_M').on('change', function() { if ($(this).val() == 'M') { $('#elm_service').val(''); $('#elm_service').prop('disabled', true); } else { $('#elm_service').prop('disabled', false); } $('#elm_service').trigger('change'); }); $('#elm_service').on('change', function() { var option = $(this).find('option:selected'); var href; if (option.val()) { href = fn_url('shippings.configure?shipping_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> &module=' + option.data('caShippingModule') + '&code=' + option.data('caShippingCode')); if ($('#configure a').prop('href') != href) { $('#content_configure').remove(); $('#configure a').prop('href', href); } $('#configure').show(); } else { $('#configure').hide(); } }); }); }(Tygh, Tygh.$)); </script> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="shippings_form" enctype="multipart/form-data" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="shipping_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['id']->value) { $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_general"> <?php } ?> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="ship_descr_shipping"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" name="shipping_data[shipping]" id="ship_descr_shipping" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "shipping_data[company_id]", 'id' => "shipping_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'selected' => $_smarty_tpl->tpl_vars['shipping']->value['company_id'], 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "shipping", 'image_object_type' => "shipping", 'image_pair' => $_smarty_tpl->tpl_vars['shipping']->value['icon'], 'no_detailed' => "Y", 'hide_titles' => "Y", 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_delivery_time"><?php echo $_smarty_tpl->__("delivery_time"); ?> </label> <div class="controls"> <input type="text" class="input-medium" name="shipping_data[delivery_time]" id="elm_delivery_time" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['delivery_time'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_weight"><?php echo $_smarty_tpl->__("weight_limit"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ):</label> <div class="controls"> <input type="text" name="shipping_data[min_weight]" id="elm_min_weight" size="4" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['min_weight'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini" /> - <input type="text" name="shipping_data[max_weight]" size="4" value="<?php if ($_smarty_tpl->tpl_vars['shipping']->value['max_weight'] != "0.00") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['max_weight'], ENT_QUOTES, 'UTF-8'); } ?> " class="input-mini right" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("rate_calculation"); ?> </label> <div class="controls"> <label class="radio inline" for="elm_rate_calculation_M"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_M" value="M" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['shipping']->value['rate_calculation']) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_manual"); ?> </label> <label class="radio inline" for="elm_rate_calculation_R"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_R" value="R" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "R") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_realtime"); ?> </label> </div> </div> <div class="control-group"> <label class="control-label" for="elm_service"><?php echo $_smarty_tpl->__("shipping_service"); ?> </label> <div class="controls"> <select name="shipping_data[service_id]" id="elm_service" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['id']->value) { ?> disabled="disabled"<?php } ?> > <option value="">--</option> <?php $_smarty_tpl->tpl_vars['service'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['service']->_loop = false; $_from = $_smarty_tpl->tpl_vars['services']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['service']->key => $_smarty_tpl->tpl_vars['service']->value) { $_smarty_tpl->tpl_vars['service']->_loop = true; ?> <option data-ca-shipping-module="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['module'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-shipping-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['code'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['service_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['shipping']->value['service_id'] == $_smarty_tpl->tpl_vars['service']->value['service_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <span><?php echo $_smarty_tpl->__("test"); ?> </span> <?php echo $_smarty_tpl->__("weight"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ) <div class="input-append"> <input id="elm_weight" type="text" class="input-mini" size="3" name="shipping_data[test_weight]" value="0" /> <input type="hidden" name="result_ids" value="elm_shipping_test" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "action", 'but_name' => "dispatch[shippings.test]", 'but_text' => __("test"), 'but_meta' => "cm-submit btn cm-skip-validation cm-ajax cm-form-dialog-opener"), 0); ?> </div> <div id="elm_shipping_test" title="<?php echo $_smarty_tpl->__("test"); ?> "></div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> </label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="shipping_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['shipping']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_usergroups")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_ship_data_usergroup_id", 'name' => "shipping_data[usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['shipping']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "shipping_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['shipping']->value['localization']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "shipping_data[status]", 'id' => "elm_shipping_status", 'obj' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> </fieldset> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("add_shipping_method"), 'href' => "shippings.add")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("shipping_methods"), 'href' => "shippings.manage")); ?> </li> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'dispatch' => "dispatch[shippings.delete_rate_values]", 'form' => "shippings_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'hide_first_button' => true, 'hide_second_button' => true, 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?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 ($_smarty_tpl->tpl_vars['id']->value) { ?> <input type="hidden" name="selected_section" value="general" /> <!--content_general--></div> <div id="content_configure"> <!--content_configure--></div> <div id="content_shipping_charges"> <?php echo $_smarty_tpl->getSubTemplate("views/shippings/components/rates.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'shipping' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> <!--content_shipping_charges--></div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?php } ?> </form> <?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 (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->__("new_shipping_method"), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_shipping_method"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping'], null, 0); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'select_languages' => true), 0); ?> <?php }
echo $this->_tpl_vars['def']['templateMeta']['widths'][$this->_foreach['colIteration']['iteration'] - 1]['label']; ?> %' scope='row' > <label for="<?php echo $this->_tpl_vars['country']; ?> ">{sugar_translate label='LBL_COUNTRY' module='<?php echo $this->_tpl_vars['module']; ?> '}:</label> {if $fields.<?php echo $this->_tpl_vars['country']; ?> .required || <?php if (is_array($_tmp = is_array($_tmp = $this->_tpl_vars['country']) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['displayParams']['required']) : smarty_modifier_in_array($_tmp, $this->_tpl_vars['displayParams']['required'])) { ?> true<?php } else { ?> false<?php } ?> } <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span> {/if} </td> <td> <input type="text" name="<?php echo $this->_tpl_vars['country']; ?>
function content_55ccecdcb0c041_94002410($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_modifier_empty_tabs')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.empty_tabs.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['active_tab']->value) { ?> <?php $_smarty_tpl->tpl_vars["active_tab"] = new Smarty_variable($_REQUEST['selected_section'], null, 0); } ?> <?php $_smarty_tpl->tpl_vars["empty_tab_ids"] = new Smarty_variable(smarty_modifier_empty_tabs($_smarty_tpl->tpl_vars['content']->value), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value['tabs']) { ?> <div class="cm-j-tabs<?php if ($_smarty_tpl->tpl_vars['track']->value) { ?> cm-track<?php } ?> tabs"> <ul class="nav nav-tabs"> <?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tab']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) { $_smarty_tpl->tpl_vars['tab']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tab']->key; ?> <?php if ((!$_smarty_tpl->tpl_vars['tabs_section']->value || $_smarty_tpl->tpl_vars['tabs_section']->value == $_smarty_tpl->tpl_vars['tab']->value['section']) && ($_smarty_tpl->tpl_vars['tab']->value['hidden'] || !smarty_modifier_in_array($_smarty_tpl->tpl_vars['key']->value, $_smarty_tpl->tpl_vars['empty_tab_ids']->value))) { ?> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['tab']->value['hidden'] == "Y") { ?> hidden <?php } if ($_smarty_tpl->tpl_vars['tab']->value['js']) { ?> cm-js<?php } elseif ($_smarty_tpl->tpl_vars['tab']->value['ajax']) { ?> cm-js cm-ajax<?php } if ($_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['active_tab']->value) { ?> active<?php } if ($_smarty_tpl->tpl_vars['active_tab_extra']->value && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['active_tab']->value) { ?> extra-tab<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['active_tab']->value) { echo $_smarty_tpl->tpl_vars['active_tab_extra']->value; } ?> <a <?php if ($_smarty_tpl->tpl_vars['tab']->value['href']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['tab']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> </ul> </div> <div class="cm-tabs-content"> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> </div> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> <?php } }
function content_55d2ed19774126_96674473($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('general', 'configure', 'name', 'processor', 'offline', 'checkout', 'gateways', 'template', 'tt_views_payments_update_template', 'payment_category', 'payments_tab1', 'payments_tab2', 'payments_tab3', 'payment_category_note', 'usergroups', 'ttc_usergroups', 'description', 'surcharge', 'surcharge_title', 'tt_views_payments_update_surcharge_title', 'taxes', 'payment_instructions', 'icon')); if ($_smarty_tpl->tpl_vars['payment']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['payment']->value['payment_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable("0", null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['payment']->value, "payments"), null, 0); ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="payments_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " enctype="multipart/form-data" class=" form-horizontal<?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="payment_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> <li id="tab_conf_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js cm-ajax <?php if (!$_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> hidden<?php } ?> "><a <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> href="<?php echo htmlspecialchars(fn_url("payments.processor?payment_id=" . (string) $_smarty_tpl->tpl_vars['id']->value), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo $_smarty_tpl->__("configure"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="tabs_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label for="elm_payment_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-required control-label"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="elm_payment_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[payment]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['payment'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "payment_data[company_id]", 'id' => "payment_data_" . (string) $_REQUEST['payment_id'], 'selected' => $_smarty_tpl->tpl_vars['payment']->value['company_id']), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_payment_processor_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("processor"); ?> :</label> <div class="controls"> <select id="elm_payment_processor_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[processor_id]" onchange="fn_switch_processor(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> , this.value);"> <option value=""><?php echo $_smarty_tpl->__("offline"); ?> </option> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:processors_optgroups")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:processors_optgroups"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <optgroup label="<?php echo $_smarty_tpl->__("checkout"); ?> "> <?php $_smarty_tpl->tpl_vars["processor"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["processor"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['payment_processors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["processor"]->key => $_smarty_tpl->tpl_vars["processor"]->value) { $_smarty_tpl->tpl_vars["processor"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['processor']->value['type'] != "P") { ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id'] == $_smarty_tpl->tpl_vars['processor']->value['processor_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </optgroup> <optgroup label="<?php echo $_smarty_tpl->__("gateways"); ?> "> <?php $_smarty_tpl->tpl_vars["processor"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["processor"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['payment_processors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["processor"]->key => $_smarty_tpl->tpl_vars["processor"]->value) { $_smarty_tpl->tpl_vars["processor"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['processor']->value['type'] == "P") { ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id'] == $_smarty_tpl->tpl_vars['processor']->value['processor_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['processor']->value['processor'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </optgroup> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:processors_optgroups"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> <p id="elm_processor_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="description <?php if (!$_smarty_tpl->tpl_vars['payment_processors']->value[$_smarty_tpl->tpl_vars['payment']->value['processor_id']]['description']) { ?> hidden<?php } ?> "><br> <small><?php echo $_smarty_tpl->tpl_vars['payment_processors']->value[$_smarty_tpl->tpl_vars['payment']->value['processor_id']]['description']; ?> </small> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_tpl_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("template"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_payments_update_template")), 0); ?> :</label> <div class="controls"> <select id="elm_payment_tpl_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[template]" <?php if ($_smarty_tpl->tpl_vars['payment']->value['processor_id']) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['full_path'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['full_path']->_loop = false; $_smarty_tpl->tpl_vars['template'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['templates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['full_path']->key => $_smarty_tpl->tpl_vars['full_path']->value) { $_smarty_tpl->tpl_vars['full_path']->_loop = true; $_smarty_tpl->tpl_vars['template']->value = $_smarty_tpl->tpl_vars['full_path']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['full_path']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['payment']->value['template'] == $_smarty_tpl->tpl_vars['full_path']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['template']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_category_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("payment_category"); ?> :</label> <div class="controls"> <select id="elm_payment_category_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[payment_category]"> <option value="tab1" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab1") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab1"); ?> </option> <option value="tab2" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab2") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab2"); ?> </option> <option value="tab3" <?php if ($_smarty_tpl->tpl_vars['payment']->value['payment_category'] == "tab3") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("payments_tab3"); ?> </option> </select> <p class="description"> <small><?php echo $_smarty_tpl->__("payment_category_note"); ?> </small> </p> </div> </div> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_usergroups")), 0); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_payment_usergroup_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'name' => "payment_data[usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['payment']->value['usergroup_ids'], 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_payment_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <input id="elm_payment_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[description]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['description'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="control-group"> <label class="control-label" for="elm_payment_surcharge_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("surcharge"); ?> :</label> <div class="controls"> <input id="elm_payment_surcharge_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[p_surcharge]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['p_surcharge'], ENT_QUOTES, 'UTF-8'); ?> " size="4"> % + <input type="text" name="payment_data[a_surcharge]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['a_surcharge'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini" size="4"> <?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_surcharge_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("surcharge_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_payments_update_surcharge_title")), 0); ?> :</label> <div class="controls"> <input id="elm_payment_surcharge_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="payment_data[surcharge_title]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['surcharge_title'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> :</label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label for="elm_payment_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="payment_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_payment_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['payment']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> <div class="text-type-value">—</div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_payment_instructions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("payment_instructions"); ?> :</label> <div class="controls"> <textarea id="elm_payment_instructions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="payment_data[instructions]" cols="55" rows="8" class="cm-wysiwyg input-textarea-long"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['instructions'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "payment_data[status]", 'id' => "elm_payment_status_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'obj_id' => $_smarty_tpl->tpl_vars['id']->value, 'obj' => $_smarty_tpl->tpl_vars['payment']->value), 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "payment_data[localization]", 'id' => "elm_payment_localization_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'data_from' => $_smarty_tpl->tpl_vars['payment']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> :</label> <div class="controls"><?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "payment_image", 'image_key' => $_smarty_tpl->tpl_vars['id']->value, 'image_object_type' => "payment", 'image_pair' => $_smarty_tpl->tpl_vars['payment']->value['icon'], 'no_detailed' => "Y", 'hide_titles' => "Y", 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "payments:properties")); $_block_repeat = true; echo smarty_block_hook(array('name' => "payments:properties"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "payments:properties"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> <!--content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[payments.update]", 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php }
function content_55db8f5833f7a1_27021682($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/var/www/html/market/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('none', 'your_range', 'none', 'yes', 'no')); echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <table cellpadding="8"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["filters_row"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; $_smarty_tpl->tpl_vars["filters_row"]->index++; $_smarty_tpl->tpl_vars["filters_row"]->first = $_smarty_tpl->tpl_vars["filters_row"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["filters_row"]['first'] = $_smarty_tpl->tpl_vars["filters_row"]->first; ?> <thead> <tr> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td><strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> </strong></td> <?php } ?> <?php } ?> </tr> </thead> <tr valign="top"<?php if (sizeof($_smarty_tpl->tpl_vars['splitted_filter']->value) > 1 && $_smarty_tpl->getVariable('smarty')->value['foreach']['filters_row']['first']) { ?> class="delim"<?php } ?> > <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['feature_id'] : $tmp, null, 0); ?> <td width="33%"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::TEXT_SELECTBOX") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::EXTENDED") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::MULTIPLE_CHECKBOX") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX") && !$_smarty_tpl->tpl_vars['id']->value) { ?> <div class="scroll-y"> <?php $_smarty_tpl->tpl_vars["variant"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["variant"]->_loop = false; $_smarty_tpl->tpl_vars["variant_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["variant"]->key => $_smarty_tpl->tpl_vars["variant"]->value) { $_smarty_tpl->tpl_vars["variant"]->_loop = true; $_smarty_tpl->tpl_vars["variant_id"]->value = $_smarty_tpl->tpl_vars["variant"]->key; ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['variant_id']->value, $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value])) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['variant'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_FIELD") || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::NUMBER_SELECTBOX") && $_smarty_tpl->tpl_vars['id']->value || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::DATE") || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D") { ?> <div> <label class="radio"><input class="cm-switch-availability cm-switch-inverse" type="radio" name="range_selected[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_N" value="" checked="checked" /><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <?php $_smarty_tpl->tpl_vars['disable'] = new Smarty_variable(true, null, 0); ?> <label class="radio"><input class="cm-switch-availability" type="radio" name="range_selected[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_Y" value="1" <?php if ($_smarty_tpl->tpl_vars['search']->value['range_selected'][$_smarty_tpl->tpl_vars['id']->value]) { $_smarty_tpl->tpl_vars['disable'] = new Smarty_variable(false, null, 0); ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("your_range"); ?> </label> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::DATE")) { ?> <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> <?php $_smarty_tpl->tpl_vars['date_extra'] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['date_extra'] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "range_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_from", 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['id']->value . "][0]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "range_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_to", 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['id']->value . "][1]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][1], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['from_value'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], null, 0); ?> <?php $_smarty_tpl->tpl_vars['to_value'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][1], null, 0); ?> <input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][0]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> disabled="disabled"<?php } ?> />-<input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][1]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::SINGLE_CHECKBOX") || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0]) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("none"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0] == "Y") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("yes"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0] == "N") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("no"); ?> </label> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == smarty_modifier_enum("ProductFeatures::TEXT_FIELD")) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['data_name']->value][$_smarty_tpl->tpl_vars['id']->value][0], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </td> <?php } } ?> </tr> <?php } ?> </table><?php }
function content_55ccecdbdaa829_22080058($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!fn_allowed_for("ULTIMATE:FREE")) { if ($_smarty_tpl->tpl_vars['usergroup_ids']->value !== '') { $_smarty_tpl->tpl_vars["ug_ids"] = new Smarty_variable(explode(",", $_smarty_tpl->tpl_vars['usergroup_ids']->value), null, 0); } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "usergroups:select_usergroups")); $_block_repeat = true; echo smarty_block_hook(array('name' => "usergroups:select_usergroups"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="0" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_extra']->value, ENT_QUOTES, 'UTF-8'); ?> /> <?php $_smarty_tpl->_capture_stack[0][] = array("usergroups_list", null, null); ob_start(); $_smarty_tpl->tpl_vars['usergroups_default'] = new Smarty_variable(fn_get_default_usergroups(), null, 0); $_smarty_tpl->tpl_vars['usergroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['usergroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['usergroups_default']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['usergroup']->key => $_smarty_tpl->tpl_vars['usergroup']->value) { $_smarty_tpl->tpl_vars['usergroup']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['select_mode']->value) { ?> <li><a> <?php } else { ?> <label class="checkbox <?php if (!$_smarty_tpl->tpl_vars['list_mode']->value) { ?> inline<?php } ?> " for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['ug_ids']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], $_smarty_tpl->tpl_vars['ug_ids']->value) || !$_smarty_tpl->tpl_vars['ug_ids']->value && $_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'] == @constant('USERGROUP_ALL')) { ?> checked="checked"<?php } ?> <?php if ((!$_smarty_tpl->tpl_vars['ug_ids']->value || $_smarty_tpl->tpl_vars['ug_ids']->value && count($_smarty_tpl->tpl_vars['ug_ids']->value) == 1 && smarty_modifier_in_array($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], $_smarty_tpl->tpl_vars['ug_ids']->value)) && $_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'] == @constant('USERGROUP_ALL')) { ?> disabled="disabled"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_extra']->value, ENT_QUOTES, 'UTF-8'); ?> onclick="fn_switch_default_box(this, '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ', <?php echo htmlspecialchars(@constant('USERGROUP_ALL'), ENT_QUOTES, 'UTF-8'); ?> );" /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['select_mode']->value) { ?> </a></li> <?php } else { ?> </label> <?php } } ?> <?php $_smarty_tpl->tpl_vars['usergroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['usergroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['usergroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['usergroup']->key => $_smarty_tpl->tpl_vars['usergroup']->value) { $_smarty_tpl->tpl_vars['usergroup']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['select_mode']->value) { ?> <li><a> <?php } else { ?> <label class="checkbox <?php if (!$_smarty_tpl->tpl_vars['list_mode']->value) { ?> inline<?php } ?> " for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['ug_ids']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], $_smarty_tpl->tpl_vars['ug_ids']->value)) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_extra']->value, ENT_QUOTES, 'UTF-8'); ?> onclick="fn_switch_default_box(this, '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ', <?php echo htmlspecialchars(@constant('USERGROUP_ALL'), ENT_QUOTES, 'UTF-8'); ?> );" /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['select_mode']->value) { ?> </a></li> <?php } else { ?> </label> <?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(); } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "usergroups:select_usergroups"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['select_mode']->value) { ?> <div class="btn-group"> <a class="btn-text dropdown-toggle" data-toggle="dropdown"> <?php if ($_smarty_tpl->tpl_vars['ug_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars["ug_count"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['ug_ids']->value), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["ug_count"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['ug_ids']->value), null, 0); ?> <?php } ?> <i class="exicon-usergroup"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); ?> <span class="cm-ug-amount">(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ug_count']->value, ENT_QUOTES, 'UTF-8'); ?> )</span> <span class="caret"></span> </a> <ul class="dropdown-menu"> <?php echo Smarty::$_smarty_vars['capture']['usergroups_list']; ?> </ul> </div> <?php } else { ?> <?php echo Smarty::$_smarty_vars['capture']['usergroups_list']; ?> <?php } ?> <?php if (!defined("SMARTY_USERGROUPS_LOADED")) { ?> <?php $_smarty_tpl->tpl_vars["tmp"] = new Smarty_variable(define("SMARTY_USERGROUPS_LOADED", true), null, 0); ?> <script type="text/javascript"> function fn_switch_default_box(holder, prefix, default_id) { var $ = Tygh.$; var p = $(holder).parents(':not(li,a,label,ul):first'); var default_box = $('input[id^=' + prefix + '_' + default_id + ']', p); var checked_groups = $('input[id^=' + prefix + '_][type=checkbox]:checked', p).not(default_box).not(holder).length + (holder.checked ? 1 : 0); default_box.prop('disabled', (checked_groups == 0)); if (checked_groups == 0) { default_box.prop('checked', true); } fn_calculate_usergroups(p); return true; } function fn_calculate_usergroups(holder) { var $ = Tygh.$; if ($(holder).length) { var note = $('.cm-ug-amount', $(holder)); } else { var note = $('.cm-ug-amount'); } note.each(function(){ var p = $(this).parents(':not(li,a,label,ul):first'); var total_checked = $('input[type=checkbox]:checked', p).length; $(this).html('(' + total_checked + ')'); }); } </script> <?php } ?> <?php } }
function content_55db8bf92e8236_50589251($_smarty_tpl) { if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('no_items', 'multiple_selectbox_notice', 'no_items', 'select_country', 'select_state', 'browse', 'no_items')); if ($_smarty_tpl->tpl_vars['item']->value['update_for_all'] && $_smarty_tpl->tpl_vars['settings']->value['Stores']['default_state_update_for_all'] == 'not_active' && !$_smarty_tpl->tpl_vars['runtime']->value['simple_ultimate']) { ?> <?php $_smarty_tpl->tpl_vars["disable_input"] = new Smarty_variable(true, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['parent_item']->value) { $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array()); $_block_repeat = true; echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo '<script'; ?> type="text/javascript"> (function($, _) { $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_item_html_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').on('click', function() { $('#container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').toggle(); }); }(Tygh.$, Tygh)); <?php echo '</script'; ?> ><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "O") { ?> <div><?php echo $_smarty_tpl->tpl_vars['item']->value['info']; ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "E") { ?> <div><?php echo $_smarty_tpl->getSubTemplate("addons/" . (string) $_REQUEST['addon'] . "/settings/" . (string) $_smarty_tpl->tpl_vars['item']->value['value'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "Z") { ?> <div><?php echo $_smarty_tpl->getSubTemplate("addons/" . (string) $_REQUEST['addon'] . "/settings/" . (string) $_smarty_tpl->tpl_vars['item']->value['value'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('skip_addon_check' => true), 0); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "H") { ?> <?php if (Smarty::$_smarty_vars['capture']['header_first'] == 'true') { ?> </fieldset> </div> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("header_first", null, null); ob_start(); ?> true<?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 echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['item']->value['description'], 'target' => "#collapsable_" . (string) $_smarty_tpl->tpl_vars['html_id']->value), 0); ?> <div id="collapsable_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="in collapse"> <fieldset> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] != "D" && $_smarty_tpl->tpl_vars['item']->value['type'] != "B") { ?> <div id="container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-group<?php if ($_smarty_tpl->tpl_vars['class']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class']->value, ENT_QUOTES, 'UTF-8'); } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['section_name'], ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['parent_item']->value && $_smarty_tpl->tpl_vars['parent_item']->value['value'] != "Y") { ?> hidden<?php } ?> "> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label <?php if ($_smarty_tpl->tpl_vars['highlight']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['item']->value['name'], $_smarty_tpl->tpl_vars['highlight']->value)) { ?> highlight<?php } ?> " ><?php echo $_smarty_tpl->tpl_vars['item']->value['description']; if ($_smarty_tpl->tpl_vars['item']->value['tooltip']) { echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => $_smarty_tpl->tpl_vars['item']->value['tooltip']), 0); } ?> : </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "P") { ?> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="password" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " class="input-text" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "T") { ?> <textarea id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " rows="5" cols="19" class="input-large" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "C") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="N" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == "Y") { ?> checked="checked"<?php } if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "S") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "R") { ?> <div class="select-field" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> checked="checked"<?php } ?> id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "M") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" multiple="multiple" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <div class="muted"><?php echo $_smarty_tpl->__("multiple_selectbox_notice"); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "N") { ?> <div class="select-field" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="N" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "X") { ?> <select class="cm-country cm-location-billing" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?php $_smarty_tpl->tpl_vars["countries"] = new Smarty_variable(fn_get_simple_countries(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["country"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["country"]->_loop = false; $_smarty_tpl->tpl_vars["code"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["country"]->key => $_smarty_tpl->tpl_vars["country"]->value) { $_smarty_tpl->tpl_vars["country"]->_loop = true; $_smarty_tpl->tpl_vars["code"]->value = $_smarty_tpl->tpl_vars["country"]->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['item']->value['value']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "W") { ?> <select class="cm-state cm-location-billing" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> </select> <input type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> _d" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " size="32" maxlength="64" disabled="disabled" class="cm-state cm-location-billing hidden" /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "F") { ?> <div class="input-append"> <input id="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " size="30" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <button id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="button" class="btn" onclick="Tygh.fileuploader.init('box_server_upload', this.id);" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> ><?php echo $_smarty_tpl->__("browse"); ?> </button> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "G") { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" class="cm-combo-checkbox" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "K") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combo-select" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } else { ?> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "U") { ?> cm-value-integer<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> <div class="right update-for-all"> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['item']->value['update_for_all'], 'object_id' => $_smarty_tpl->tpl_vars['item']->value['object_id'], 'name' => "update_all_vendors[" . (string) $_smarty_tpl->tpl_vars['item']->value['object_id'] . "]", 'hide_element' => $_smarty_tpl->tpl_vars['html_id']->value), 0); ?> </div> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "B") { ?> <div class="control-group"> <?php echo $_smarty_tpl->getSubTemplate("common/selectable_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('addon' => $_smarty_tpl->tpl_vars['section']->value, 'name' => $_smarty_tpl->tpl_vars['html_name']->value, 'id' => $_smarty_tpl->tpl_vars['html_id']->value, 'fields' => $_smarty_tpl->tpl_vars['item']->value['variants'], 'selected_fields' => $_smarty_tpl->tpl_vars['item']->value['value']), 0); ?> </div> <?php } if ($_smarty_tpl->tpl_vars['total']->value == $_smarty_tpl->tpl_vars['index']->value && Smarty::$_smarty_vars['capture']['header_first'] == 'true') { ?> </fieldset> </div> <?php } }
function content_55d31b940f1a52_76714753($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } ?> <div class="connections_between_option_variants"> <h4>Legaturi intre aceasta varianta a unei optiuni cu alte variante din alte optiuni</h4> <input type="hidden" name="primary_product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="variant_option_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <table class="table table-tree table-middle"> <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['option']->_loop = false; $_smarty_tpl->tpl_vars['optionId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['option_variants_combination']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) { $_smarty_tpl->tpl_vars['option']->_loop = true; $_smarty_tpl->tpl_vars['optionId']->value = $_smarty_tpl->tpl_vars['option']->key; ?> <tr> <td style="width:100%"> <div style="position:relative"> <?php if ($_smarty_tpl->tpl_vars['blockedVariants']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['optionId']->value, $_smarty_tpl->tpl_vars['blockedVariants']->value)) { ?> <div style="height:100%;width:100%;background-color: #F0FFF0;text-align: center;vertical-align: middle;opacity:0.7;position:absolute;padding-top: 15px;"><span style="font-weight: bolder;font-size: 120%;">Aceasta optiune este deja in legatura cu optiunea in a carei varianta lucrati</span></div> <?php } ?> <table style="width:100%"> <tr> <td width="20%"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> </td> <td width="80%"> <table style="width:100%"> <tr> <?php $_smarty_tpl->tpl_vars['variantCounter'] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars['variant'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['variant']->_loop = false; $_smarty_tpl->tpl_vars['variantId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['option']->value['option_variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['variant']->key => $_smarty_tpl->tpl_vars['variant']->value) { $_smarty_tpl->tpl_vars['variant']->_loop = true; $_smarty_tpl->tpl_vars['variantId']->value = $_smarty_tpl->tpl_vars['variant']->key; ?> <?php if ($_smarty_tpl->tpl_vars['variantCounter']->value % 4 == 0) { ?> </tr><tr> <?php } ?> <td> <label> <input type="checkbox" name="option_variant_for_link[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_variant_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variantId']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['checkedVariantsView']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['variantId']->value, $_smarty_tpl->tpl_vars['checkedVariantsView']->value)) { ?> checked<?php } ?> <?php if ($_smarty_tpl->tpl_vars['blockedVariants']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['optionId']->value, $_smarty_tpl->tpl_vars['blockedVariants']->value) || $_smarty_tpl->tpl_vars['product_id']->value && $_smarty_tpl->tpl_vars['globalOptionVariants']->value[$_smarty_tpl->tpl_vars['option_variant_id']->value] && smarty_modifier_in_array($_smarty_tpl->tpl_vars['variantId']->value, $_smarty_tpl->tpl_vars['globalOptionVariants']->value[$_smarty_tpl->tpl_vars['option_variant_id']->value]) && $_smarty_tpl->tpl_vars['checkedVariantsView']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['variantId']->value, $_smarty_tpl->tpl_vars['checkedVariantsView']->value)) { ?> disabled<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['variant_name'], ENT_QUOTES, 'UTF-8'); ?> </label> </td> <?php $_smarty_tpl->tpl_vars['variantCounter'] = new Smarty_variable($_smarty_tpl->tpl_vars['variantCounter']->value + 1, null, 0); ?> <?php } ?> </tr> </table> </td> </tr> </table> </div> </td> </tr> <?php } ?> </table> </div><?php }
function content_55d3121df1ce65_07880209($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('none', 'your_range', 'none', 'yes', 'no', 'any', 'submit', 'or', 'reset_filter', 'advanced_filter', 'advanced_filter', 'none', 'your_range', 'none', 'yes', 'no', 'any', 'submit', 'or', 'reset_filter', 'advanced_filter', 'advanced_filter')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['filter_features']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("filtering", null, null); ob_start(); ?> <input type="hidden" name="advanced_filter" value="Y" /> <?php if ($_REQUEST['category_id']) { ?> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_REQUEST['category_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="subcats" value="Y" /> <?php } ?> <?php if ($_REQUEST['variant_id']) { ?> <input type="hidden" name="variant_id" value="<?php echo htmlspecialchars($_REQUEST['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <div class="ty-filters-search"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 (!isset($_smarty_tpl->tpl_vars['filter']->value['feature_type']) && !isset($_smarty_tpl->tpl_vars['filter']->value['condition_type'])) { ?> <?php continue 1; ?> <?php } ?> <span style="display: none"><?php echo htmlspecialchars(var_dump($_smarty_tpl->tpl_vars['filter']->value), ENT_QUOTES, 'UTF-8'); ?> </span> <div class="ty-column12"> <div class="ty-filters-search__item"> <div class="ty-filters-search__title"><?php echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp)) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8'); ?> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> <div class="ty-filters-search__scroll"> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <div class="ty-select-field"><input type="checkbox" class="ty-select-field__checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range']->value['range_id'], $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_name'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="ty-filters-search__scroll"> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <p<?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> class="ty-select-field"<?php } ?> ><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" class="radio ty-select-field__checkbox" /><label class="ty-select-field__title" for="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("none"); ?> </label></p> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <div class="ty-select-field"><input type="radio" class="ty-select-field__checkbox" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range']->value['range_id']) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <p><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> class="radio" /><label for="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("your_range"); ?> </label></p> <div class="ty-select-field"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <?php $_smarty_tpl->tpl_vars["cur"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['cur']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['secondary_currency']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_from"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_from'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_to"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_to'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_cur"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_cur'], null, 0); ?> <?php } ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_from]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_from']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_from" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_to]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_to']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> </div> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function()<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> var $ = Tygh.$; $('input[type=radio][name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]"]').change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; var flag = (this.value !== 'O'); $('#range_' + el_id + '_from').prop('disabled', flag).toggleClass('disabled', flag); $('#range_' + el_id + '_to').prop('disabled', flag).toggleClass('disabled', flag); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_' + el_id + '_cur').prop('disabled', flag); $('#range_' + el_id + '_orig_from').prop('disabled', flag); $('#range_' + el_id + '_orig_to').prop('disabled', flag); $('#range_' + el_id + '_orig_cur').prop('disabled', flag); <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#range_' + el_id + '_from_but').prop('disabled', flag); $('#range_' + el_id + '_to_but').prop('disabled', flag); <?php } ?> }); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none"><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <div class="ty-select-field"> <input type="radio" class="radio ty-select-field__checkbox" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any"><?php echo $_smarty_tpl->__("any"); ?> </label> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <div class="ty-select-field ty-nowrap"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="ty-filters-search__input-text<?php if ($_smarty_tpl->tpl_vars['filter']->value['prefix'] || $_smarty_tpl->tpl_vars['filter']->value['suffix']) { ?> -medium<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </div> <?php } ?> </div> </div> <?php } } ?> </div> <?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 ($_smarty_tpl->tpl_vars['separate_form']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("section", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="get" name="advanced_filter_form"> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_REQUEST['dispatch'] . "]", 'but_text' => __("submit")), 0); ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="cm-reset-link"><?php echo $_smarty_tpl->__("reset_filter"); ?> </a> </div> </form> <?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 ($_smarty_tpl->tpl_vars['search']->value['variants']) { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/section.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section_title' => __("advanced_filter"), 'section_content' => Smarty::$_smarty_vars['capture']['section'], 'collapse' => $_smarty_tpl->tpl_vars['_collapse']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("advanced_filter")), 0); ?> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['search']->value['features_hash']) { ?> <input type="hidden" name="features_hash" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['features_hash'], ENT_QUOTES, 'UTF-8'); ?> " /> <?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="views/products/components/product_filters_advanced_form.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/products/components/product_filters_advanced_form.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { if ($_smarty_tpl->tpl_vars['filter_features']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("filtering", null, null); ob_start(); ?> <input type="hidden" name="advanced_filter" value="Y" /> <?php if ($_REQUEST['category_id']) { ?> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_REQUEST['category_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="subcats" value="Y" /> <?php } ?> <?php if ($_REQUEST['variant_id']) { ?> <input type="hidden" name="variant_id" value="<?php echo htmlspecialchars($_REQUEST['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <div class="ty-filters-search"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 (!isset($_smarty_tpl->tpl_vars['filter']->value['feature_type']) && !isset($_smarty_tpl->tpl_vars['filter']->value['condition_type'])) { ?> <?php continue 1; ?> <?php } ?> <span style="display: none"><?php echo htmlspecialchars(var_dump($_smarty_tpl->tpl_vars['filter']->value), ENT_QUOTES, 'UTF-8'); ?> </span> <div class="ty-column12"> <div class="ty-filters-search__item"> <div class="ty-filters-search__title"><?php echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp)) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8'); ?> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> <div class="ty-filters-search__scroll"> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <div class="ty-select-field"><input type="checkbox" class="ty-select-field__checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range']->value['range_id'], $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_name'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="ty-filters-search__scroll"> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <p<?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> class="ty-select-field"<?php } ?> ><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" class="radio ty-select-field__checkbox" /><label class="ty-select-field__title" for="no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("none"); ?> </label></p> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filter']->value['ranges']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <div class="ty-select-field"><input type="radio" class="ty-select-field__checkbox" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range']->value['range_id']) { ?> checked="checked"<?php } ?> /><label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['range_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); ?> </label></div> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <p><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> class="radio" /><label for="select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("your_range"); ?> </label></p> <div class="ty-select-field"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <?php $_smarty_tpl->tpl_vars["cur"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['cur']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['secondary_currency']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_from"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_from'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_to"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_to'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["orig_cur"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['orig_cur'], null, 0); ?> <?php } ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="ty-input-text-short<?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_from]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_from']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_from" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_to]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_to']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <input type="hidden" name="field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ][orig_cur]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orig_cur']->value, ENT_QUOTES, 'UTF-8'); ?> " id="range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> </div> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function()<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> var $ = Tygh.$; $('input[type=radio][name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]"]').change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; var flag = (this.value !== 'O'); $('#range_' + el_id + '_from').prop('disabled', flag).toggleClass('disabled', flag); $('#range_' + el_id + '_to').prop('disabled', flag).toggleClass('disabled', flag); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_' + el_id + '_cur').prop('disabled', flag); $('#range_' + el_id + '_orig_from').prop('disabled', flag); $('#range_' + el_id + '_orig_to').prop('disabled', flag); $('#range_' + el_id + '_orig_cur').prop('disabled', flag); <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#range_' + el_id + '_from_but').prop('disabled', flag); $('#range_' + el_id + '_to_but').prop('disabled', flag); <?php } ?> }); <?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type'] == 'P') { ?> $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from').change(function() { $('#range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _orig_cur').val(''); }); <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none"><?php echo $_smarty_tpl->__("none"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> </div> <div class="ty-select-field"> <input type="radio ty-select-field__checkbox" class="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <div class="ty-select-field"> <input type="radio" class="radio ty-select-field__checkbox" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <label class="ty-select-field__title" for="ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any"><?php echo $_smarty_tpl->__("any"); ?> </label> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <div class="ty-select-field ty-nowrap"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="ty-filters-search__input-text<?php if ($_smarty_tpl->tpl_vars['filter']->value['prefix'] || $_smarty_tpl->tpl_vars['filter']->value['suffix']) { ?> -medium<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </div> <?php } ?> </div> </div> <?php } } ?> </div> <?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 ($_smarty_tpl->tpl_vars['separate_form']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("section", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="get" name="advanced_filter_form"> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_REQUEST['dispatch'] . "]", 'but_text' => __("submit")), 0); ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="cm-reset-link"><?php echo $_smarty_tpl->__("reset_filter"); ?> </a> </div> </form> <?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 ($_smarty_tpl->tpl_vars['search']->value['variants']) { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/section.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section_title' => __("advanced_filter"), 'section_content' => Smarty::$_smarty_vars['capture']['section'], 'collapse' => $_smarty_tpl->tpl_vars['_collapse']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("advanced_filter")), 0); ?> <?php echo Smarty::$_smarty_vars['capture']['filtering']; ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['search']->value['features_hash']) { ?> <input type="hidden" name="features_hash" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['features_hash'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } }
function content_55deab254a7b30_93084451($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('search', 'category', 'all_categories', 'feature', 'type', 'checkbox', 'single', 'checkbox', 'multiple', 'selectbox', 'text', 'selectbox', 'number', 'selectbox', 'brand_type', 'others', 'text', 'others', 'number', 'others', 'date', 'display_on', 'product', 'catalog_pages', 'group', 'ungroupped_features')); ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="product_features_search_form" method="get"> <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?> <div class="sidebar-field"> <label><?php echo $_smarty_tpl->__("category"); ?> :</label> <div class="break clear correct-picker-but"> <?php if (fn_show_picker("categories", @constant('CATEGORY_THRESHOLD'))) { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['category_ids']) { ?> <?php $_smarty_tpl->tpl_vars["s_cid"] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['category_ids'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["s_cid"] = new Smarty_variable("0", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_id' => "location_category", 'input_name' => "category_ids", 'item_ids' => $_smarty_tpl->tpl_vars['s_cid']->value, 'hide_link' => true, 'hide_delete_button' => true, 'default_name' => __("all_categories"), 'extra' => ''), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_category.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "category_ids", 'id' => $_smarty_tpl->tpl_vars['search']->value['category_ids']), 0); ?> <?php } ?> </div> </div> <div class="sidebar-field"> <label for="fname"><?php echo $_smarty_tpl->__("feature"); ?> :</label> <input type="text" name="description" id="fname" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " size="30" /> </div> <?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 $_smarty_tpl->_capture_stack[0][] = array("advanced_search", null, null); ob_start(); ?> <div class="group form-horizontal"> <?php echo $_smarty_tpl->__("type"); ?> <table width="100%"> <tr class="nowrap"> <td><label for="elm_checkbox_single" class="checkbox"><input id="elm_checkbox_single" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("C", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="C"/><?php echo $_smarty_tpl->__("checkbox"); ?> : <?php echo $_smarty_tpl->__("single"); ?> </label></td> <td><label for="elm_checkbox_multiple" class="checkbox"><input id="elm_checkbox_multiple" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("M", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="M"/><?php echo $_smarty_tpl->__("checkbox"); ?> : <?php echo $_smarty_tpl->__("multiple"); ?> </label></td> <td><label for="elm_selectbox_text" class="checkbox"><input id="elm_selectbox_text" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("S", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="S"/><?php echo $_smarty_tpl->__("selectbox"); ?> : <?php echo $_smarty_tpl->__("text"); ?> </label></td> <td><label for="elm_selectbox_number" class="checkbox"><input id="elm_selectbox_number" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("N", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="N"/><?php echo $_smarty_tpl->__("selectbox"); ?> : <?php echo $_smarty_tpl->__("number"); ?> </label></td> </tr> <tr> <td><label for="elm_selectbox_brand_type" class="checkbox"><input id="elm_selectbox_brand_type" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("E", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="E"/><?php echo $_smarty_tpl->__("selectbox"); ?> : <?php echo $_smarty_tpl->__("brand_type"); ?> </label></td> <td><label for="elm_others_text" class="checkbox"><input id="elm_others_text" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("T", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="T"/><?php echo $_smarty_tpl->__("others"); ?> : <?php echo $_smarty_tpl->__("text"); ?> </label></td> <td><label for="elm_others_number" class="checkbox"><input id="elm_others_number" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("O", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="O"/><?php echo $_smarty_tpl->__("others"); ?> : <?php echo $_smarty_tpl->__("number"); ?> </label></td> <td><label for="elm_others_date" class="checkbox"><input id="elm_others_date" type="checkbox" name="feature_types[]" <?php if (smarty_modifier_in_array("D", $_smarty_tpl->tpl_vars['search']->value['feature_types'])) { ?> checked="checked"<?php } ?> value="D"/><?php echo $_smarty_tpl->__("others"); ?> : <?php echo $_smarty_tpl->__("date"); ?> </label></td> </tr> </table> </div> <div class="group form-horizontal"> <div class="control-group"> <label class="control-label" for="elm_display_on"><?php echo $_smarty_tpl->__("display_on"); ?> :</label> <div class="controls"> <select name="display_on" id="elm_display_on"> <option value="">--</option> <option value="product" <?php if ($_smarty_tpl->tpl_vars['search']->value['display_on'] == "product") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("product"); ?> </option> <option value="catalog" <?php if ($_smarty_tpl->tpl_vars['search']->value['display_on'] == "catalog") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("catalog_pages"); ?> </option> </select> </div> </div> <div class="control-group"> <label for="elm_parent_id" class="control-label"><?php echo $_smarty_tpl->__("group"); ?> :</label> <div class="controls"> <select name="parent_id" id="elm_parent_id"> <option value="">--</option> <option <?php if ($_smarty_tpl->tpl_vars['search']->value['parent_id'] === "0") { ?> selected="selected"<?php } ?> value="0"><?php echo $_smarty_tpl->__("ungroupped_features"); ?> </option> <?php $_smarty_tpl->tpl_vars["group_feature"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["group_feature"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group_features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["group_feature"]->key => $_smarty_tpl->tpl_vars["group_feature"]->value) { $_smarty_tpl->tpl_vars["group_feature"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['group_feature']->value['feature_id'] == $_smarty_tpl->tpl_vars['search']->value['parent_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_feature']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_features:search_form")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_features:search_form"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_features:search_form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?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 echo $_smarty_tpl->getSubTemplate("common/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('simple_search' => Smarty::$_smarty_vars['capture']['simple_search'], 'advanced_search' => Smarty::$_smarty_vars['capture']['advanced_search'], 'dispatch' => $_smarty_tpl->tpl_vars['dispatch']->value, 'view_type' => "product_features"), 0); ?> </form> </div><?php }
function content_55ccecb4e1aac1_97059005($_smarty_tpl) { if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('none', 'your_range', 'none', 'yes', 'no', 'any')); echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['filter_features']->value, 'size' => "3", 'assign' => "splitted_filter", 'preverse_keys' => true), $_smarty_tpl); ?> <table cellpadding="8"> <?php $_smarty_tpl->tpl_vars["filters_row"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filters_row"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_filter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["filters_row"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["filters_row"]->key => $_smarty_tpl->tpl_vars["filters_row"]->value) { $_smarty_tpl->tpl_vars["filters_row"]->_loop = true; $_smarty_tpl->tpl_vars["filters_row"]->index++; $_smarty_tpl->tpl_vars["filters_row"]->first = $_smarty_tpl->tpl_vars["filters_row"]->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["filters_row"]['first'] = $_smarty_tpl->tpl_vars["filters_row"]->first; ?> <thead> <tr> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td><strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['filter']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> </strong></td> <?php } ?> <?php } ?> </tr> </thead> <tr valign="top"<?php if (sizeof($_smarty_tpl->tpl_vars['splitted_filter']->value) > 1 && $_smarty_tpl->getVariable('smarty')->value['foreach']['filters_row']['first']) { ?> class="delim"<?php } ?> > <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['filters_row']->value; 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 && $_smarty_tpl->tpl_vars['filter']->value['field_type'] != "P") { ?> <td width="33%"> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "S" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" && !$_smarty_tpl->tpl_vars['filter']->value['filter_id']) { ?> <div class="scroll-y"> <?php $_smarty_tpl->tpl_vars["filter_ranges"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['ranges']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['variants'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_smarty_tpl->tpl_vars["range_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_ranges']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; $_smarty_tpl->tpl_vars["range_id"]->value = $_smarty_tpl->tpl_vars["range"]->key; ?> <label for="variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"><input type="checkbox" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { ?> multiple_<?php } ?> variants[]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "M") { echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); } else { ?> [V<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> " <?php if (smarty_modifier_in_array("[V" . (string) $_smarty_tpl->tpl_vars['range_id']->value . "]", $_smarty_tpl->tpl_vars['search']->value['variants']) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['range_id']->value, $_smarty_tpl->tpl_vars['search']->value['multiple_variants'])) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['variant'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "O" || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "N" && $_smarty_tpl->tpl_vars['filter']->value['filter_id'] || $_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "D" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "F") { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <div class="scroll-y"><?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("field_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable("feature_" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> no_ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="" checked="checked" /><?php echo $_smarty_tpl->__("none"); ?> </label> <?php $_smarty_tpl->tpl_vars["filter_ranges"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['ranges']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['variants'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['filter']->value['field_type']) === null || $tmp === '' ? "R" : $tmp, null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["range"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["range"]->_loop = false; $_smarty_tpl->tpl_vars["range_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['filter_ranges']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["range"]->key => $_smarty_tpl->tpl_vars["range"]->value) { $_smarty_tpl->tpl_vars["range"]->_loop = true; $_smarty_tpl->tpl_vars["range_id"]->value = $_smarty_tpl->tpl_vars["range"]->key; ?> <?php $_smarty_tpl->tpl_vars["range_name"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['range']->value['range_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['range']->value['variant'] : $tmp, null, 0); ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_type']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['range_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == (string) $_smarty_tpl->tpl_vars['_type']->value . (string) $_smarty_tpl->tpl_vars['range_id']->value) { ?> checked="checked"<?php } ?> /><?php echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range_name']->value), ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> </div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type'] != "F") { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"><input type="radio" name="variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_custom_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="O" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] == "O") { ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("your_range"); ?> </label> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'] || $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_extra"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_from", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][from]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "range_" . (string) $_smarty_tpl->tpl_vars['el_id']->value . "_to", 'date_name' => "custom_range[" . (string) $_smarty_tpl->tpl_vars['filter']->value['feature_id'] . "][to]", 'date_val' => $_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to'], 'extra' => $_smarty_tpl->tpl_vars['date_extra']->value, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> <input type="hidden" name="custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ][type]" value="D" /> <?php } else { ?> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['custom_range'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to'] : $tmp, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["from_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['from']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['min'] : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["to_value"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['search']->value['field_range'][$_smarty_tpl->tpl_vars['filter']->value['field_type']]['to']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['filter']->value['range_values']['max'] : $tmp, null, 0); ?> <?php } ?> <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [from]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _from" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['from_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> - <input type="text" name="<?php if ($_smarty_tpl->tpl_vars['filter']->value['field_type']) { ?> field_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['field_type'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } else { ?> custom_range[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]<?php } ?> [to]" size="3" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['to_value']->value, ENT_QUOTES, 'UTF-8'); ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _to" <?php if ($_smarty_tpl->tpl_vars['search']->value['variants'][$_smarty_tpl->tpl_vars['el_id']->value] != "O") { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> <script type="text/javascript"> Tygh.$(document).ready(function() { var $ = Tygh.$; $("input[type=radio][name='variants[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]']").change(function() { var el_id = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> '; $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_from').prop('disabled', this.value !== 'O'); $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_to').prop('disabled', this.value !== 'O'); <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "D") { ?> $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_from_but').prop('disabled', this.value !== 'O'); $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> range_' + el_id + '_to_but').prop('disabled', this.value !== 'O'); <?php } ?> }); }); </script> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "C" || $_smarty_tpl->tpl_vars['filter']->value['condition_type'] == "C") { ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['field_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["el_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['filter']->value['feature_id'], null, 0); ?> <?php } ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _none" value="" <?php if (!$_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value]) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("none"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _yes" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "Y") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("yes"); ?> </label> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _no" value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "N") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("no"); ?> </label> <?php if (!$_smarty_tpl->tpl_vars['filter']->value['condition_type']) { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" class="radio"> <input type="radio" name="ch_filters[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> ranges_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['el_id']->value, ENT_QUOTES, 'UTF-8'); ?> _any" value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['ch_filters'][$_smarty_tpl->tpl_vars['el_id']->value] == "A") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("any"); ?> </label> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "T") { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); ?> <input type="text" name="tx_features[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['feature_id'], ENT_QUOTES, 'UTF-8'); ?> ]" class="input-mini" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['tx_features'][$_smarty_tpl->tpl_vars['filter']->value['feature_id']], ENT_QUOTES, 'UTF-8'); ?> " /><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </td> <?php } } ?> </tr> <?php } ?> </table><?php }
function content_55d3124fcc25b2_51902813($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('product', 'unit_price', 'quantity', 'total_price', 'remove', 'sku', 'free', 'discount', 'taxes', 'price', 'quantity', 'discount', 'tax', 'subtotal', 'text_click_here', 'cart_items', 'product', 'unit_price', 'quantity', 'total_price', 'remove', 'sku', 'free', 'discount', 'taxes', 'price', 'quantity', 'discount', 'tax', 'subtotal', 'text_click_here', 'cart_items')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); $_smarty_tpl->_capture_stack[0][] = array("cartbox", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "checkout") { ?> <?php if (floatval($_smarty_tpl->tpl_vars['cart']->value['coupons'])) { ?> <input type="hidden" name="c_id" value="" /><?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:form_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:form_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:form_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <div id="cart_items"> <input type="hidden" id="hidden_return_url" value='checkout.cart' /> <table class="ty-cart-content ty-table"> <?php $_smarty_tpl->tpl_vars["prods"] = new Smarty_variable(false, null, 0); ?> <thead> <tr> <th class="ty-cart-content__title ty-left"><?php echo $_smarty_tpl->__("product"); ?> </th> <th class="ty-cart-content__title ty-left"> </th> <th class="ty-cart-content__title ty-right"><?php echo $_smarty_tpl->__("unit_price"); ?> </th> <th class="ty-cart-content__title quantity-cell"><?php echo $_smarty_tpl->__("quantity"); ?> </th> <th class="ty-cart-content__title ty-right"><?php echo $_smarty_tpl->__("total_price"); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars["box_product_promos_disabled"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_product_promos_disabled_amount"] = new Smarty_variable(array(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['cart_products']->value) { ?> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) { $_smarty_tpl->tpl_vars["product"]->_loop = true; $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["product"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]) { ?> <?php $_smarty_tpl->createLocalArrayVariable('box_product_promos_disabled', null, 0); $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value[$_smarty_tpl->tpl_vars['product']->value['product_id']] = $_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]; ?> <?php $_smarty_tpl->createLocalArrayVariable('box_product_promos_disabled_amount', null, 0); $_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]][$_smarty_tpl->tpl_vars['product']->value['product_id']] = $_smarty_tpl->tpl_vars['product']->value['amount']; ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['product']->value['object_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['key']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:items_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:items_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['cart']->value['products'][$_smarty_tpl->tpl_vars['key']->value]['extra']['parent']) { ?> <tr> <td class="ty-cart-content__product-elem ty-cart-content__image-block"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "cart" || $_smarty_tpl->tpl_vars['show_images']->value) { ?> <div class="ty-cart-content__image cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "?wishlist_id=" . (string) $_smarty_tpl->tpl_vars['key']->value), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['key']->value, 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> </td> <td class="ty-cart-content__product-elem ty-cart-content__description" style="width: 50%;"> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['key']->value), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> </a><input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /><?php if (!$_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-cart-content__product-delete ty-delete-big" href="<?php echo htmlspecialchars(fn_url("checkout.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&cart_amount=" . (string) $_smarty_tpl->tpl_vars['product']->value['amount'] . "&redirect_mode=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="cart_items,checkout_totals,cart_status*,checkout_steps,checkout_cart" title="<?php echo $_smarty_tpl->__("remove"); ?> "> <i class="ty-delete-big__icon ty-icon-cancel-circle"></i></a><?php } ?> <div class="ty-cart-content__sku ty-sku<?php if (!$_smarty_tpl->tpl_vars['product']->value['product_code']) { ?> hidden<?php } ?> " id="sku_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__("sku"); ?> : <span class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_code_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> <!--product_code_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></span> </div> <?php if ($_smarty_tpl->tpl_vars['product']->value['product_options']) { ?> <div class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ty-cart-content__options" id="options_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['product']->value['product_options'], 'product' => $_smarty_tpl->tpl_vars['product']->value, 'name' => "cart_products", 'id' => $_smarty_tpl->tpl_vars['key']->value, 'location' => "cart", 'disable_ids' => $_smarty_tpl->tpl_vars['disable_ids']->value, 'form_name' => "checkout_form", 'product_array_otions_variants' => $_smarty_tpl->tpl_vars['product']->value['productArrayOtionsVariants']), 0); ?> <!--options_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("product_options_" . (string) $_smarty_tpl->tpl_vars['key']->value, null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array($_smarty_tpl->tpl_vars['name']->value, null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("product_info_update", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_info")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_info"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <strong><span class="price"><?php echo $_smarty_tpl->__("free"); ?> </span></strong> <?php } elseif (floatval($_smarty_tpl->tpl_vars['product']->value['discount']) || $_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <?php $_smarty_tpl->tpl_vars["price_info_title"] = new Smarty_variable($_smarty_tpl->__("discount"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["price_info_title"] = new Smarty_variable($_smarty_tpl->__("taxes"), null, 0); ?> <?php } ?> <p><a data-ca-target-id="discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-dialog-opener cm-dialog-auto-size" rel="nofollow"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['price_info_title']->value, ENT_QUOTES, 'UTF-8'); ?> </a></p> <div class="ty-group-block hidden" id="discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['price_info_title']->value, ENT_QUOTES, 'UTF-8'); ?> "> <table class="ty-cart-content__more-info ty-table"> <tr> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("price"); ?> </th> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("quantity"); ?> </th> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("discount"); ?> </th><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <th><?php echo $_smarty_tpl->__("tax"); ?> </th><?php } ?> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("subtotal"); ?> </th> </tr> <tr> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['original_price'], 'span_id' => "original_price_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td> <td class="ty-center"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['discount'], 'span_id' => "discount_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['tax_summary']['total'], 'span_id' => "tax_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td><?php } ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('span_id' => "product_subtotal_2_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'value' => $_smarty_tpl->tpl_vars['product']->value['display_subtotal'], 'class' => "none"), 0); ?> </td> </tr> </table> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/product_company_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('company_name' => $_smarty_tpl->tpl_vars['product']->value['company_name'], 'company_id' => $_smarty_tpl->tpl_vars['product']->value['company_id']), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_info"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 (trim(Smarty::$_smarty_vars['capture']['product_info_update'])) { ?> <div class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_info_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo Smarty::$_smarty_vars['capture']['product_info_update']; ?> <!--product_info_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?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 (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value])) { ?> <div class="ty-cart-content__detailed"><a id="sw_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination ty-cart-content__detailed-link detailed-link"><?php echo $_smarty_tpl->__("text_click_here"); ?> </a></div> <div id="options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-options ty-group-block hidden"> <div class="ty-group-block__arrow"> <span class="ty-caret-info"><span class="ty-caret-outer"></span><span class="ty-caret-inner"></span></span> </div> <?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value]; ?> </div> <?php } ?> </td> <td class="ty-cart-content__product-elem ty-cart-content__price cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="price_display_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['display_price'], 'span_id' => "product_price_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "ty-sub-price"), 0); ?> <!--price_display_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> <td class="ty-cart-content__product-elem ty-cart-content__qty <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> quantity-disabled<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value == true && $_smarty_tpl->tpl_vars['cart']->value['amount'] != 1) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <div class="quantity cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> changer<?php } ?> " id="quantity_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][exclude_from_calculate]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate'], ENT_QUOTES, 'UTF-8'); ?> " /><?php } ?> <label for="amount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "></label> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> <div class="ty-center ty-value-changer cm-value-changer"> <a class="cm-increase ty-value-changer__increase">+</a> <?php } ?> <input type="text" size="3" id="amount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-value-changer__input cm-amount"<?php if ($_smarty_tpl->tpl_vars['product']->value['qty_step'] > 1) { ?> data-ca-step="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['qty_step'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> <a class="cm-decrease ty-value-changer__decrease">−</a> </div> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y") { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][is_edp]" value="Y" /> <?php } ?> <!--quantity_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </td> <td class="ty-cart-content__product-elem ty-cart-content__price cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['display_subtotal'], 'span_id' => "product_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "price"), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['base_price'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <!--price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> </tr> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:items_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:extra_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:extra_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:extra_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['applied_promotions']) { ?> <tr> <td colspan="6"> <table> <tr> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["special_box_products_ids_array"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_products_number"] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_products_ids_array"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["bonus_product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_product"]->_loop = false; $_smarty_tpl->tpl_vars["key1"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['applied_promotions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_product"]->key => $_smarty_tpl->tpl_vars["bonus_product"]->value) { $_smarty_tpl->tpl_vars["bonus_product"]->_loop = true; $_smarty_tpl->tpl_vars["key1"]->value = $_smarty_tpl->tpl_vars["bonus_product"]->key; ?> <?php $_smarty_tpl->tpl_vars["bonus"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus"]->_loop = false; $_smarty_tpl->tpl_vars["key2"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus_product']->value['bonuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus"]->key => $_smarty_tpl->tpl_vars["bonus"]->value) { $_smarty_tpl->tpl_vars["bonus"]->_loop = true; $_smarty_tpl->tpl_vars["key2"]->value = $_smarty_tpl->tpl_vars["bonus"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['bonus']->value['bonus'] && $_smarty_tpl->tpl_vars['bonus']->value['bonus'] != "box_products") { ?> <?php $_smarty_tpl->tpl_vars["bonus_values"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values"]->_loop = false; $_smarty_tpl->tpl_vars["key3"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values"]->key => $_smarty_tpl->tpl_vars["bonus_values"]->value) { $_smarty_tpl->tpl_vars["bonus_values"]->_loop = true; $_smarty_tpl->tpl_vars["key3"]->value = $_smarty_tpl->tpl_vars["bonus_values"]->key; ?> <?php $_smarty_tpl->tpl_vars["bonus_values_products"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values_products"]->_loop = false; $_smarty_tpl->tpl_vars["key4"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values_products"]->key => $_smarty_tpl->tpl_vars["bonus_values_products"]->value) { $_smarty_tpl->tpl_vars["bonus_values_products"]->_loop = true; $_smarty_tpl->tpl_vars["key4"]->value = $_smarty_tpl->tpl_vars["bonus_values_products"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'] == $_smarty_tpl->tpl_vars['bonus_values']->value['product_id'] && !smarty_modifier_in_array($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], $_smarty_tpl->tpl_vars['box_products_ids_array']->value) && (!smarty_modifier_in_array($_smarty_tpl->tpl_vars['key1']->value, $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['key1']->value, $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value) && $_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] > array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]))) { ?> <td class="ty-cart-content__product-elem ty-cart-content__image-block" > <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key1']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][promo_id]"> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]"> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][object_id]"> <input type="hidden" value="true" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][exclude_from_calculate]"> <?php $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_ids']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->key => $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->value) { $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->_loop = true; ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product_applied_products_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][applied_products_id][]"> <?php } ?> <div><a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] - array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]), ENT_QUOTES, 'UTF-8'); ?> x <?php echo $_smarty_tpl->tpl_vars['bonus_values_products']->value['product']; ?> </a> (<?php echo $_smarty_tpl->__('free'); ?> )<input type="hidden" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] - array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]), ENT_QUOTES, 'UTF-8'); ?> " /><input type="hidden" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="0" /></div> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "cart" || $_smarty_tpl->tpl_vars['show_images']->value) { ?> <div class="ty-cart-content__image cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " id="product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['key4']->value, 'images' => $_smarty_tpl->tpl_vars['bonus_values_products']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </td> <?php $_smarty_tpl->createLocalArrayVariable('box_products_ids_array', null, 0); $_smarty_tpl->tpl_vars['box_products_ids_array']->value[$_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']] = $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']; ?> <?php } ?> <?php } ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['bonus']->value['bonus'] && $_smarty_tpl->tpl_vars['bonus']->value['bonus'] == "box_products") { ?> <?php $_smarty_tpl->tpl_vars["bonus_values1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values1"]->_loop = false; $_smarty_tpl->tpl_vars["key3"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values1"]->key => $_smarty_tpl->tpl_vars["bonus_values1"]->value) { $_smarty_tpl->tpl_vars["bonus_values1"]->_loop = true; $_smarty_tpl->tpl_vars["key3"]->value = $_smarty_tpl->tpl_vars["bonus_values1"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['box_products_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['box_products_ids']->value . "," . (string) $_smarty_tpl->tpl_vars['bonus_values1']->value['product_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable($_smarty_tpl->tpl_vars['bonus_values1']->value['product_id'], null, 0); ?> <?php } ?> <?php $_smarty_tpl->createLocalArrayVariable('special_box_products_ids_array', null, 0); $_smarty_tpl->tpl_vars['special_box_products_ids_array']->value[$_smarty_tpl->tpl_vars['key1']->value][$_smarty_tpl->tpl_vars['bonus_values1']->value['product_id']] = $_smarty_tpl->tpl_vars['bonus_values1']->value['product_id']; ?> <?php $_smarty_tpl->tpl_vars["box_products_number"] = new Smarty_variable($_smarty_tpl->tpl_vars['box_products_number']->value + 1, null, 0); ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['box_products_number']->value > 0) { ?> <td class="ty-cart-content__product-elem ty-cart-content__image-block" > <?php $_smarty_tpl->tpl_vars["pb1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pb1"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['special_box_products_ids_array']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["pb1"]->key => $_smarty_tpl->tpl_vars["pb1"]->value) { $_smarty_tpl->tpl_vars["pb1"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["pb1"]->key; ?> <?php $_smarty_tpl->tpl_vars["pb2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pb2"]->_loop = false; $_smarty_tpl->tpl_vars["k2"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['pb1']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["pb2"]->key => $_smarty_tpl->tpl_vars["pb2"]->value) { $_smarty_tpl->tpl_vars["pb2"]->_loop = true; $_smarty_tpl->tpl_vars["k2"]->value = $_smarty_tpl->tpl_vars["pb2"]->key; ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pb2']->value, ENT_QUOTES, 'UTF-8'); ?> " name="special_box_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pb2']->value, ENT_QUOTES, 'UTF-8'); ?> ]"> <?php } ?> <?php } ?> <a id="box_products" class="btn hand cm-dialog-opener cm-ajax" href="<?php echo htmlspecialchars(fn_url("products.show_boxes_products&product_ids=" . (string) $_smarty_tpl->tpl_vars['box_products_ids']->value), ENT_QUOTES, 'UTF-8'); ?> " title="products" data-ca-aditional-event-parameters="<?php echo htmlspecialchars(json_encode(array("target_id" => "box_products_carusel", "nr_of_elements" => $_smarty_tpl->tpl_vars['box_products_number']->value, "nr_of_elements_to_show" => 3)), ENT_QUOTES, 'UTF-8'); ?> " data-ca-aditional-event="add_carousel" data-ca-target-id="dialog_box_products" name="boxes" data-ca-view-id="box_products_id_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_products_number']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="cutii" >boxes</a> </td> <?php } ?> </tr> </table> </td> </tr> <?php } ?> </tbody> </table> <!--cart_items--></div> <?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 echo $_smarty_tpl->getSubTemplate("common/mainbox_cart.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("cart_items"), 'content' => Smarty::$_smarty_vars['capture']['cartbox']), 0); ?> <?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="views/checkout/components/cart_items.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/checkout/components/cart_items.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { $_smarty_tpl->_capture_stack[0][] = array("cartbox", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "checkout") { ?> <?php if (floatval($_smarty_tpl->tpl_vars['cart']->value['coupons'])) { ?> <input type="hidden" name="c_id" value="" /><?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:form_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:form_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:form_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <div id="cart_items"> <input type="hidden" id="hidden_return_url" value='checkout.cart' /> <table class="ty-cart-content ty-table"> <?php $_smarty_tpl->tpl_vars["prods"] = new Smarty_variable(false, null, 0); ?> <thead> <tr> <th class="ty-cart-content__title ty-left"><?php echo $_smarty_tpl->__("product"); ?> </th> <th class="ty-cart-content__title ty-left"> </th> <th class="ty-cart-content__title ty-right"><?php echo $_smarty_tpl->__("unit_price"); ?> </th> <th class="ty-cart-content__title quantity-cell"><?php echo $_smarty_tpl->__("quantity"); ?> </th> <th class="ty-cart-content__title ty-right"><?php echo $_smarty_tpl->__("total_price"); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars["box_product_promos_disabled"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_product_promos_disabled_amount"] = new Smarty_variable(array(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['cart_products']->value) { ?> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) { $_smarty_tpl->tpl_vars["product"]->_loop = true; $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["product"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]) { ?> <?php $_smarty_tpl->createLocalArrayVariable('box_product_promos_disabled', null, 0); $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value[$_smarty_tpl->tpl_vars['product']->value['product_id']] = $_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]; ?> <?php $_smarty_tpl->createLocalArrayVariable('box_product_promos_disabled_amount', null, 0); $_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['cart']->value['applied_promotions_box_products'][$_smarty_tpl->tpl_vars['product']->value['product_id']]][$_smarty_tpl->tpl_vars['product']->value['product_id']] = $_smarty_tpl->tpl_vars['product']->value['amount']; ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['product']->value['object_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['key']->value : $tmp, null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:items_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:items_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['cart']->value['products'][$_smarty_tpl->tpl_vars['key']->value]['extra']['parent']) { ?> <tr> <td class="ty-cart-content__product-elem ty-cart-content__image-block"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "cart" || $_smarty_tpl->tpl_vars['show_images']->value) { ?> <div class="ty-cart-content__image cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "?wishlist_id=" . (string) $_smarty_tpl->tpl_vars['key']->value), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['key']->value, 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> </td> <td class="ty-cart-content__product-elem ty-cart-content__description" style="width: 50%;"> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['key']->value), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> </a><input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /><?php if (!$_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-cart-content__product-delete ty-delete-big" href="<?php echo htmlspecialchars(fn_url("checkout.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&cart_amount=" . (string) $_smarty_tpl->tpl_vars['product']->value['amount'] . "&redirect_mode=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="cart_items,checkout_totals,cart_status*,checkout_steps,checkout_cart" title="<?php echo $_smarty_tpl->__("remove"); ?> "> <i class="ty-delete-big__icon ty-icon-cancel-circle"></i></a><?php } ?> <div class="ty-cart-content__sku ty-sku<?php if (!$_smarty_tpl->tpl_vars['product']->value['product_code']) { ?> hidden<?php } ?> " id="sku_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__("sku"); ?> : <span class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_code_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> <!--product_code_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></span> </div> <?php if ($_smarty_tpl->tpl_vars['product']->value['product_options']) { ?> <div class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ty-cart-content__options" id="options_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['product']->value['product_options'], 'product' => $_smarty_tpl->tpl_vars['product']->value, 'name' => "cart_products", 'id' => $_smarty_tpl->tpl_vars['key']->value, 'location' => "cart", 'disable_ids' => $_smarty_tpl->tpl_vars['disable_ids']->value, 'form_name' => "checkout_form", 'product_array_otions_variants' => $_smarty_tpl->tpl_vars['product']->value['productArrayOtionsVariants']), 0); ?> <!--options_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("product_options_" . (string) $_smarty_tpl->tpl_vars['key']->value, null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array($_smarty_tpl->tpl_vars['name']->value, null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("product_info_update", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_info")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_info"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <strong><span class="price"><?php echo $_smarty_tpl->__("free"); ?> </span></strong> <?php } elseif (floatval($_smarty_tpl->tpl_vars['product']->value['discount']) || $_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <?php $_smarty_tpl->tpl_vars["price_info_title"] = new Smarty_variable($_smarty_tpl->__("discount"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["price_info_title"] = new Smarty_variable($_smarty_tpl->__("taxes"), null, 0); ?> <?php } ?> <p><a data-ca-target-id="discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-dialog-opener cm-dialog-auto-size" rel="nofollow"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['price_info_title']->value, ENT_QUOTES, 'UTF-8'); ?> </a></p> <div class="ty-group-block hidden" id="discount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['price_info_title']->value, ENT_QUOTES, 'UTF-8'); ?> "> <table class="ty-cart-content__more-info ty-table"> <tr> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("price"); ?> </th> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("quantity"); ?> </th> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("discount"); ?> </th><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <th><?php echo $_smarty_tpl->__("tax"); ?> </th><?php } ?> <th class="ty-cart-content__more-info-title"><?php echo $_smarty_tpl->__("subtotal"); ?> </th> </tr> <tr> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['original_price'], 'span_id' => "original_price_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td> <td class="ty-center"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['discount'], 'span_id' => "discount_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['tax_summary']['total'], 'span_id' => "tax_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "none"), 0); ?> </td><?php } ?> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('span_id' => "product_subtotal_2_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'value' => $_smarty_tpl->tpl_vars['product']->value['display_subtotal'], 'class' => "none"), 0); ?> </td> </tr> </table> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/product_company_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('company_name' => $_smarty_tpl->tpl_vars['product']->value['company_name'], 'company_id' => $_smarty_tpl->tpl_vars['product']->value['company_id']), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_info"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 (trim(Smarty::$_smarty_vars['capture']['product_info_update'])) { ?> <div class="cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_info_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo Smarty::$_smarty_vars['capture']['product_info_update']; ?> <!--product_info_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?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 (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value])) { ?> <div class="ty-cart-content__detailed"><a id="sw_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination ty-cart-content__detailed-link detailed-link"><?php echo $_smarty_tpl->__("text_click_here"); ?> </a></div> <div id="options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-options ty-group-block hidden"> <div class="ty-group-block__arrow"> <span class="ty-caret-info"><span class="ty-caret-outer"></span><span class="ty-caret-inner"></span></span> </div> <?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value]; ?> </div> <?php } ?> </td> <td class="ty-cart-content__product-elem ty-cart-content__price cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="price_display_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['display_price'], 'span_id' => "product_price_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "ty-sub-price"), 0); ?> <!--price_display_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> <td class="ty-cart-content__product-elem ty-cart-content__qty <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> quantity-disabled<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value == true && $_smarty_tpl->tpl_vars['cart']->value['amount'] != 1) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <div class="quantity cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> changer<?php } ?> " id="quantity_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][exclude_from_calculate]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate'], ENT_QUOTES, 'UTF-8'); ?> " /><?php } ?> <label for="amount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "></label> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> <div class="ty-center ty-value-changer cm-value-changer"> <a class="cm-increase ty-value-changer__increase">+</a> <?php } ?> <input type="text" size="3" id="amount_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-value-changer__input cm-amount"<?php if ($_smarty_tpl->tpl_vars['product']->value['qty_step'] > 1) { ?> data-ca-step="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['qty_step'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> /> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['quantity_changer'] == "Y") { ?> <a class="cm-decrease ty-value-changer__decrease">−</a> </div> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y" || $_smarty_tpl->tpl_vars['product']->value['exclude_from_calculate']) { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y") { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][is_edp]" value="Y" /> <?php } ?> <!--quantity_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </td> <td class="ty-cart-content__product-elem ty-cart-content__price cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> " id="price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['display_subtotal'], 'span_id' => "product_subtotal_" . (string) $_smarty_tpl->tpl_vars['key']->value, 'class' => "price"), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") { ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['base_price'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <!--price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> </tr> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:items_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:extra_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:extra_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:extra_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['applied_promotions']) { ?> <tr> <td colspan="6"> <table> <tr> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["special_box_products_ids_array"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_products_number"] = new Smarty_variable(0, null, 0); ?> <?php $_smarty_tpl->tpl_vars["box_products_ids_array"] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars["bonus_product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_product"]->_loop = false; $_smarty_tpl->tpl_vars["key1"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['applied_promotions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_product"]->key => $_smarty_tpl->tpl_vars["bonus_product"]->value) { $_smarty_tpl->tpl_vars["bonus_product"]->_loop = true; $_smarty_tpl->tpl_vars["key1"]->value = $_smarty_tpl->tpl_vars["bonus_product"]->key; ?> <?php $_smarty_tpl->tpl_vars["bonus"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus"]->_loop = false; $_smarty_tpl->tpl_vars["key2"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus_product']->value['bonuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus"]->key => $_smarty_tpl->tpl_vars["bonus"]->value) { $_smarty_tpl->tpl_vars["bonus"]->_loop = true; $_smarty_tpl->tpl_vars["key2"]->value = $_smarty_tpl->tpl_vars["bonus"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['bonus']->value['bonus'] && $_smarty_tpl->tpl_vars['bonus']->value['bonus'] != "box_products") { ?> <?php $_smarty_tpl->tpl_vars["bonus_values"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values"]->_loop = false; $_smarty_tpl->tpl_vars["key3"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values"]->key => $_smarty_tpl->tpl_vars["bonus_values"]->value) { $_smarty_tpl->tpl_vars["bonus_values"]->_loop = true; $_smarty_tpl->tpl_vars["key3"]->value = $_smarty_tpl->tpl_vars["bonus_values"]->key; ?> <?php $_smarty_tpl->tpl_vars["bonus_values_products"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values_products"]->_loop = false; $_smarty_tpl->tpl_vars["key4"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values_products"]->key => $_smarty_tpl->tpl_vars["bonus_values_products"]->value) { $_smarty_tpl->tpl_vars["bonus_values_products"]->_loop = true; $_smarty_tpl->tpl_vars["key4"]->value = $_smarty_tpl->tpl_vars["bonus_values_products"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'] == $_smarty_tpl->tpl_vars['bonus_values']->value['product_id'] && !smarty_modifier_in_array($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], $_smarty_tpl->tpl_vars['box_products_ids_array']->value) && (!smarty_modifier_in_array($_smarty_tpl->tpl_vars['key1']->value, $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value) || smarty_modifier_in_array($_smarty_tpl->tpl_vars['key1']->value, $_smarty_tpl->tpl_vars['box_product_promos_disabled']->value) && $_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] > array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]))) { ?> <td class="ty-cart-content__product-elem ty-cart-content__image-block" > <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key1']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][promo_id]"> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_id]"> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][object_id]"> <input type="hidden" value="true" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][exclude_from_calculate]"> <?php $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_ids']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->key => $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->value) { $_smarty_tpl->tpl_vars["bonus_product_applied_products_id"]->_loop = true; ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product_applied_products_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][applied_products_id][]"> <?php } ?> <div><a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] - array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]), ENT_QUOTES, 'UTF-8'); ?> x <?php echo $_smarty_tpl->tpl_vars['bonus_values_products']->value['product']; ?> </a> (<?php echo $_smarty_tpl->__('free'); ?> )<input type="hidden" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_product']->value['applied_products_amount'] - array_sum($_smarty_tpl->tpl_vars['box_product_promos_disabled_amount']->value[$_smarty_tpl->tpl_vars['key1']->value]), ENT_QUOTES, 'UTF-8'); ?> " /><input type="hidden" name="cart_products_bonuses_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key4']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="0" /></div> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "cart" || $_smarty_tpl->tpl_vars['show_images']->value) { ?> <div class="ty-cart-content__image cm-reload-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " id="product_image_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:product_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:product_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj_id' => $_smarty_tpl->tpl_vars['key4']->value, 'images' => $_smarty_tpl->tpl_vars['bonus_values_products']->value['main_pair'], 'image_width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'image_height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:product_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </td> <?php $_smarty_tpl->createLocalArrayVariable('box_products_ids_array', null, 0); $_smarty_tpl->tpl_vars['box_products_ids_array']->value[$_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']] = $_smarty_tpl->tpl_vars['bonus_values_products']->value['product_id']; ?> <?php } ?> <?php } ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['bonus']->value['bonus'] && $_smarty_tpl->tpl_vars['bonus']->value['bonus'] == "box_products") { ?> <?php $_smarty_tpl->tpl_vars["bonus_values1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["bonus_values1"]->_loop = false; $_smarty_tpl->tpl_vars["key3"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['bonus']->value['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["bonus_values1"]->key => $_smarty_tpl->tpl_vars["bonus_values1"]->value) { $_smarty_tpl->tpl_vars["bonus_values1"]->_loop = true; $_smarty_tpl->tpl_vars["key3"]->value = $_smarty_tpl->tpl_vars["bonus_values1"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['box_products_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['box_products_ids']->value . "," . (string) $_smarty_tpl->tpl_vars['bonus_values1']->value['product_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["box_products_ids"] = new Smarty_variable($_smarty_tpl->tpl_vars['bonus_values1']->value['product_id'], null, 0); ?> <?php } ?> <?php $_smarty_tpl->createLocalArrayVariable('special_box_products_ids_array', null, 0); $_smarty_tpl->tpl_vars['special_box_products_ids_array']->value[$_smarty_tpl->tpl_vars['key1']->value][$_smarty_tpl->tpl_vars['bonus_values1']->value['product_id']] = $_smarty_tpl->tpl_vars['bonus_values1']->value['product_id']; ?> <?php $_smarty_tpl->tpl_vars["box_products_number"] = new Smarty_variable($_smarty_tpl->tpl_vars['box_products_number']->value + 1, null, 0); ?> <?php } ?> <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['box_products_number']->value > 0) { ?> <td class="ty-cart-content__product-elem ty-cart-content__image-block" > <?php $_smarty_tpl->tpl_vars["pb1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pb1"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['special_box_products_ids_array']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["pb1"]->key => $_smarty_tpl->tpl_vars["pb1"]->value) { $_smarty_tpl->tpl_vars["pb1"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["pb1"]->key; ?> <?php $_smarty_tpl->tpl_vars["pb2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pb2"]->_loop = false; $_smarty_tpl->tpl_vars["k2"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['pb1']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["pb2"]->key => $_smarty_tpl->tpl_vars["pb2"]->value) { $_smarty_tpl->tpl_vars["pb2"]->_loop = true; $_smarty_tpl->tpl_vars["k2"]->value = $_smarty_tpl->tpl_vars["pb2"]->key; ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pb2']->value, ENT_QUOTES, 'UTF-8'); ?> " name="special_box_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> ][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pb2']->value, ENT_QUOTES, 'UTF-8'); ?> ]"> <?php } ?> <?php } ?> <a id="box_products" class="btn hand cm-dialog-opener cm-ajax" href="<?php echo htmlspecialchars(fn_url("products.show_boxes_products&product_ids=" . (string) $_smarty_tpl->tpl_vars['box_products_ids']->value), ENT_QUOTES, 'UTF-8'); ?> " title="products" data-ca-aditional-event-parameters="<?php echo htmlspecialchars(json_encode(array("target_id" => "box_products_carusel", "nr_of_elements" => $_smarty_tpl->tpl_vars['box_products_number']->value, "nr_of_elements_to_show" => 3)), ENT_QUOTES, 'UTF-8'); ?> " data-ca-aditional-event="add_carousel" data-ca-target-id="dialog_box_products" name="boxes" data-ca-view-id="box_products_id_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_products_number']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="cutii" >boxes</a> </td> <?php } ?> </tr> </table> </td> </tr> <?php } ?> </tbody> </table> <!--cart_items--></div> <?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 echo $_smarty_tpl->getSubTemplate("common/mainbox_cart.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("cart_items"), 'content' => Smarty::$_smarty_vars['capture']['cartbox']), 0); ?> <?php } }
function content_55cdd4916cb4d4_92302053($_smarty_tpl) { if (!is_callable('smarty_modifier_empty_tabs')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.empty_tabs.php'; } if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); if (!$_smarty_tpl->tpl_vars['active_tab']->value) { ?> <?php $_smarty_tpl->tpl_vars["active_tab"] = new Smarty_variable($_REQUEST['selected_section'], null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value['tabs']) { ?> <?php $_smarty_tpl->tpl_vars["empty_tab_ids"] = new Smarty_variable(smarty_modifier_empty_tabs($_smarty_tpl->tpl_vars['content']->value), null, 0); $_smarty_tpl->tpl_vars["_tabs"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['top_order_actions']->value) { echo $_smarty_tpl->tpl_vars['top_order_actions']->value; } echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <div class="ty-tabs cm-j-tabs<?php if ($_smarty_tpl->tpl_vars['track']->value) { ?> cm-track<?php } ?> clearfix"> <ul class="ty-tabs__list" <?php if ($_smarty_tpl->tpl_vars['tabs_section']->value) { ?> id="tabs_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tabs_section']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tab']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) { $_smarty_tpl->tpl_vars['tab']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tab']->key; ?> <?php if ((!$_smarty_tpl->tpl_vars['tabs_section']->value && !$_smarty_tpl->tpl_vars['tab']->value['section'] || $_smarty_tpl->tpl_vars['tabs_section']->value == $_smarty_tpl->tpl_vars['tab']->value['section']) && !smarty_modifier_in_array($_smarty_tpl->tpl_vars['key']->value, $_smarty_tpl->tpl_vars['empty_tab_ids']->value)) { ?> <?php if (!$_smarty_tpl->tpl_vars['active_tab']->value) { ?> <?php $_smarty_tpl->tpl_vars["active_tab"] = new Smarty_variable($_smarty_tpl->tpl_vars['key']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["_tabs"] = new Smarty_variable(true, null, 0); ?> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-tabs__item<?php if ($_smarty_tpl->tpl_vars['tab']->value['js']) { ?> cm-js<?php } elseif ($_smarty_tpl->tpl_vars['tab']->value['ajax']) { ?> cm-js cm-ajax<?php } if ($_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['active_tab']->value) { ?> active<?php } ?> "><a class="ty-tabs__a" <?php if ($_smarty_tpl->tpl_vars['tab']->value['href']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['tab']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> <?php if ($_smarty_tpl->tpl_vars['_tabs']->value) { ?> <div class="cm-tabs-content ty-tabs__content clearfix" id="tabs_content"> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['onclick']->value) { ?> <script type="text/javascript"> var hndl = <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> 'tabs_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tabs_section']->value, ENT_QUOTES, 'UTF-8'); ?> ': <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['onclick']->value, ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> </script> <?php } } else { ?> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> <?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="common/tabsbox.tpl" id="<?php echo smarty_function_set_id(array('name' => "common/tabsbox.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { if (!$_smarty_tpl->tpl_vars['active_tab']->value) { ?> <?php $_smarty_tpl->tpl_vars["active_tab"] = new Smarty_variable($_REQUEST['selected_section'], null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value['tabs']) { ?> <?php $_smarty_tpl->tpl_vars["empty_tab_ids"] = new Smarty_variable(smarty_modifier_empty_tabs($_smarty_tpl->tpl_vars['content']->value), null, 0); $_smarty_tpl->tpl_vars["_tabs"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['top_order_actions']->value) { echo $_smarty_tpl->tpl_vars['top_order_actions']->value; } echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <div class="ty-tabs cm-j-tabs<?php if ($_smarty_tpl->tpl_vars['track']->value) { ?> cm-track<?php } ?> clearfix"> <ul class="ty-tabs__list" <?php if ($_smarty_tpl->tpl_vars['tabs_section']->value) { ?> id="tabs_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tabs_section']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tab']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) { $_smarty_tpl->tpl_vars['tab']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tab']->key; ?> <?php if ((!$_smarty_tpl->tpl_vars['tabs_section']->value && !$_smarty_tpl->tpl_vars['tab']->value['section'] || $_smarty_tpl->tpl_vars['tabs_section']->value == $_smarty_tpl->tpl_vars['tab']->value['section']) && !smarty_modifier_in_array($_smarty_tpl->tpl_vars['key']->value, $_smarty_tpl->tpl_vars['empty_tab_ids']->value)) { ?> <?php if (!$_smarty_tpl->tpl_vars['active_tab']->value) { ?> <?php $_smarty_tpl->tpl_vars["active_tab"] = new Smarty_variable($_smarty_tpl->tpl_vars['key']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["_tabs"] = new Smarty_variable(true, null, 0); ?> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-tabs__item<?php if ($_smarty_tpl->tpl_vars['tab']->value['js']) { ?> cm-js<?php } elseif ($_smarty_tpl->tpl_vars['tab']->value['ajax']) { ?> cm-js cm-ajax<?php } if ($_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['active_tab']->value) { ?> active<?php } ?> "><a class="ty-tabs__a" <?php if ($_smarty_tpl->tpl_vars['tab']->value['href']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['tab']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> <?php if ($_smarty_tpl->tpl_vars['_tabs']->value) { ?> <div class="cm-tabs-content ty-tabs__content clearfix" id="tabs_content"> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['onclick']->value) { ?> <script type="text/javascript"> var hndl = <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> 'tabs_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tabs_section']->value, ENT_QUOTES, 'UTF-8'); ?> ': <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['onclick']->value, ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> </script> <?php } } else { ?> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> <?php } } }
function content_55e61f9ae0ca45_28054294($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('information', 'name', 'text_ult_product_store_field_tooltip', 'categories', 'tt_views_products_update_categories', 'price', 'full_description', 'edit_content_on_site', 'images', 'text_product_thumbnail', 'text_product_detailed_image', 'options_settings', 'options_type', 'simultaneous', 'sequential', 'exceptions_type', 'forbidden', 'allowed', 'pricing_inventory', 'sku', 'list_price', 'tt_views_products_update_list_price', 'in_stock', 'edit', 'zero_price_action', 'zpa_refuse', 'zpa_permit', 'zpa_ask_price', 'inventory', 'tt_views_products_update_inventory', 'track_with_options', 'track_without_options', 'dont_track', 'min_order_qty', 'max_order_qty', 'quantity_step', 'list_quantity_count', 'taxes', 'availability', 'usergroups', 'creation_date', 'available_since', 'out_of_stock_actions', 'tt_views_products_update_out_of_stock_actions', 'none', 'buy_in_advance', 'sign_up_for_notification', 'extra', 'product_details_view', 'feature_comparison', 'downloadable', 'edp_enable_shipping', 'time_unlimited_download', 'short_description', 'popularity', 'ttc_popularity', 'search_words', 'promo_text', 'additional_images', 'sort_images', 'sort', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'preview', 'clone', 'delete', 'editing_product', 'new_product')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['company_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "product"), null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['product_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); ?> <?php } ?> <form id='form' action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="product_update_form" class="form-horizontal form-edit cm-disable-empty-files <?php if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="selected_section" id="selected_section" value="<?php echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="product-manage" id="content_detailed"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#acc_information"), 0); ?> <div id="acc_information" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="product_description_product" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="input-large" form="form" type="text" name="product_data[product]" id="product_description_product" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'product', 'name' => "update_all_vendors[product]"), 0); ?> </div> </div> <?php $_smarty_tpl->tpl_vars["result_ids"] = new Smarty_variable("product_categories", null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:product_details_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies:product_details_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['mode']->value != "add") { ?> <?php $_smarty_tpl->tpl_vars["reload_form"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["companies_tooltip"] = new Smarty_variable($_smarty_tpl->__("text_ult_product_store_field_tooltip"), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "product_data[company_id]", 'id' => "product_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'tooltip' => $_smarty_tpl->tpl_vars['companies_tooltip']->value, 'reload_form' => $_smarty_tpl->tpl_vars['reload_form']->value), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "companies:product_details_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8'); ?> " name="result_ids"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_categories"> <?php echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <?php if ($_REQUEST['category_id']) { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable(explode(",", $_REQUEST['category_id']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable('', null, 0); ?> <?php } ?> <label for="ccategories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8'); ?> _ids" class="control-label cm-required"><?php echo $_smarty_tpl->__("categories"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_categories")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_input' => $_smarty_tpl->tpl_vars['product_data']->value['shared_product'], 'company_ids' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'rnd' => $_smarty_tpl->tpl_vars['rnd']->value, 'data_id' => "categories", 'input_name' => "product_data[category_ids]", 'radio_input_name' => "product_data[main_category]", 'main_category' => $_smarty_tpl->tpl_vars['product_data']->value['main_category'], 'item_ids' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['category_ids']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['request_category_id']->value : $tmp, 'hide_link' => true, 'hide_delete_button' => true, 'display_input_id' => "category_ids", 'disable_no_item_text' => true, 'view_mode' => "list", 'but_meta' => "btn"), 0); ?> </div> <!--product_categories--></div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="elm_price_price" class="control-label cm-required"><?php echo $_smarty_tpl->__("price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ):</label> <div class="controls"> <input type="text" name="product_data[price]" id="elm_price_price" size="10" value="<?php echo htmlspecialchars(fn_format_price(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['price']) === null || $tmp === '' ? "0.00" : $tmp, $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'price', 'name' => "update_all_vendors[price]"), 0); ?> </div> </div> <div class="control-group cm-no-hide-input"> <label class="control-label" for="elm_product_full_descr"><?php echo $_smarty_tpl->__("full_description"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'full_description', 'name' => "update_all_vendors[full_description]"), 0); ?> <textarea id="elm_product_full_descr" name="product_data[full_description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['full_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['product_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "product_data[status]", 'id' => "elm_product_status", 'obj' => $_smarty_tpl->tpl_vars['product_data']->value, 'hidden' => true), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_detailed_images")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_detailed_images"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("images"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_main", 'image_object_type' => "product", 'image_pair' => $_smarty_tpl->tpl_vars['product_data']->value['main_pair'], 'icon_text' => __("text_product_thumbnail"), 'detailed_text' => __("text_product_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_detailed_images"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options_settings"), 'target' => "#acc_options"), 0); ?> <?php if (fn_allowed_for("ULTIMATE:FREE")) { ?> <?php $_smarty_tpl->tpl_vars['promo_class'] = new Smarty_variable("cm-promo-popup", null, 0); ?> <?php $_smarty_tpl->tpl_vars['disable_selectors'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <div id="acc_options" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_options_type"><?php echo $_smarty_tpl->__("options_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[options_type]" id="elm_options_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("simultaneous"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sequential"); ?> </option> </select> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_exceptions_type"><?php echo $_smarty_tpl->__("exceptions_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[exceptions_type]" id="elm_exceptions_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="F" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("forbidden"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("allowed"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("pricing_inventory"), 'target' => "#acc_pricing_inventory"), 0); ?> <div id="acc_pricing_inventory" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_product_code"><?php echo $_smarty_tpl->__("sku"); ?> :</label> <div class="controls"> <input type="text" name="product_data[product_code]" id="elm_product_code" size="20" maxlength="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_price"><?php echo $_smarty_tpl->__("list_price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ) <?php echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_list_price")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_price]" id="elm_list_price" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_price']) === null || $tmp === '' ? "0.00" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_in_stock"><?php echo $_smarty_tpl->__("in_stock"); ?> :</label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS")) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "product_options.inventory?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'but_role' => "edit"), 0); ?> <?php } else { ?> <input type="text" name="product_data[amount]" id="elm_in_stock" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['amount']) === null || $tmp === '' ? "1" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_zero_price_action"><?php echo $_smarty_tpl->__("zero_price_action"); ?> :</label> <div class="controls"> <select class="span5" name="product_data[zero_price_action]" id="elm_zero_price_action"> <option value="R" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "R") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_refuse"); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_permit"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_ask_price"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_tracking"><?php echo $_smarty_tpl->__("inventory"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_inventory")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[tracking]" id="elm_product_tracking" <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> disabled="disabled"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['product_options']->value) { ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS") && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_with_options"); ?> </option> <?php } ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); $_tmp3 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp3 && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_without_options"); ?> </option> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); $_tmp4 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp4 || $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("dont_track"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_qty"><?php echo $_smarty_tpl->__("min_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[min_qty]" size="10" id="elm_min_qty" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['min_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_max_qty"><?php echo $_smarty_tpl->__("max_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[max_qty]" id="elm_max_qty" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['max_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_qty_step"><?php echo $_smarty_tpl->__("quantity_step"); ?> :</label> <div class="controls"> <input type="text" name="product_data[qty_step]" id="elm_qty_step" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['qty_step']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_qty_count"><?php echo $_smarty_tpl->__("list_quantity_count"); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_qty_count]" id="elm_list_qty_count" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_qty_count']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> :</label> <div class="controls"> <input type="hidden" name="product_data[tax_ids]" value="" /> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="product_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['product_data']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#acc_availability"), 0); ?> <div id="acc_availability" class="collapse in"> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "product_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['product_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_date_holder"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_holder", 'date_name' => "product_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_date_avail_holder"><?php echo $_smarty_tpl->__("available_since"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_avail_holder", 'date_name' => "product_data[avail_since]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['avail_since']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_out_of_stock_actions"><?php echo $_smarty_tpl->__("out_of_stock_actions"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_out_of_stock_actions")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[out_of_stock_actions]" id="elm_out_of_stock_actions"> <option value="N" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("none"); ?> </option> <option value="B" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "B") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("buy_in_advance"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sign_up_for_notification"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("extra"), 'target' => "#acc_extra"), 0); ?> <div id="acc_extra" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_details_layout"><?php echo $_smarty_tpl->__("product_details_view"); ?> :</label> <div class="controls"> <select class="span5" id="elm_details_layout" name="product_data[details_layout]"> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable(); $_from = fn_get_product_details_views($_smarty_tpl->tpl_vars['id']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) { $_smarty_tpl->tpl_vars["item"]->_loop = true; $_smarty_tpl->tpl_vars["layout"]->value = $_smarty_tpl->tpl_vars["item"]->key; ?> <option <?php if ($_smarty_tpl->tpl_vars['product_data']->value['details_layout'] == $_smarty_tpl->tpl_vars['layout']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_feature_comparison"><?php echo $_smarty_tpl->__("feature_comparison"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[feature_comparison]" value="N" /> <input type="checkbox" name="product_data[feature_comparison]" id="elm_product_feature_comparison" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['feature_comparison'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div class="control-group"> <label class="control-label" for="elm_product_is_edp"><?php echo $_smarty_tpl->__("downloadable"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[is_edp]" value="N" /> <input type="checkbox" name="product_data[is_edp]" id="elm_product_is_edp" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] == "Y") { ?> checked="checked"<?php } ?> onclick="Tygh.$('#edp_shipping').toggleBy(); Tygh.$('#edp_unlimited').toggleBy();"/> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_shipping"> <label class="control-label" for="elm_product_edp_shipping"><?php echo $_smarty_tpl->__("edp_enable_shipping"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[edp_shipping]" value="N" /> <input type="checkbox" name="product_data[edp_shipping]" id="elm_product_edp_shipping" value="Y"<?php if ($_smarty_tpl->tpl_vars['product_data']->value['edp_shipping'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_unlimited"> <label class="control-label" for="elm_product_edp_unlimited"><?php echo $_smarty_tpl->__("time_unlimited_download"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[unlimited_download]" value="N" /> <input type="checkbox" name="product_data[unlimited_download]" id="elm_product_edp_unlimited" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['unlimited_download'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_from' => $_smarty_tpl->tpl_vars['product_data']->value['localization'], 'data_name' => "product_data[localization]"), 0); ?> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_short_descr"><?php echo $_smarty_tpl->__("short_description"); ?> :</label> <div class="controls"> <textarea id="elm_product_short_descr" name="product_data[short_description]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['short_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "short_description", 'name' => "update_all_vendors[short_description]"), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_popularity"><?php echo $_smarty_tpl->__("popularity"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_popularity")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[popularity]" id="elm_product_popularity" size="55" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['popularity']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_search_words"><?php echo $_smarty_tpl->__("search_words"); ?> :</label> <div class="controls"> <textarea name="product_data[search_words]" id="elm_product_search_words" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['search_words'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'search_words', 'name' => "update_all_vendors[search_words]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_promo_text"><?php echo $_smarty_tpl->__("promo_text"); ?> :</label> <div class="controls"> <textarea id="elm_product_promo_text" name="product_data[promo_text]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['promo_text'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "promo_text", 'name' => "update_all_vendors[promo_text]"), 0); ?> </div> </div> </div> <!--content_detailed--></div> <div id="content_images" class="hidden clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("additional_images")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['image_pairs']) { ?> <div class="cm-sortable sortable-box" data-ca-sortable-table="images_links" data-ca-sortable-id-name="pair_id" id="additional_images"> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable("0", null, 0); ?> <?php $_smarty_tpl->tpl_vars['pair'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['pair']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_data']->value['image_pairs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['pair']->key => $_smarty_tpl->tpl_vars['pair']->value) { $_smarty_tpl->tpl_vars['pair']->_loop = true; ?> <div class="cm-row-item cm-sortable-id-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pair']->value['pair_id'], ENT_QUOTES, 'UTF-8'); ?> cm-sortable-box"> <div class="cm-sortable-handle sortable-bar"><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /icon_sort_bar.gif" width="26" height="25" border="0" title="<?php echo $_smarty_tpl->__("sort_images"); ?> " alt="<?php echo $_smarty_tpl->__("sort"); ?> " class="valign" /></div> <div class="sortable-item"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_additional", 'image_object_type' => "product", 'image_key' => $_smarty_tpl->tpl_vars['pair']->value['pair_id'], 'image_type' => "A", 'image_pair' => $_smarty_tpl->tpl_vars['pair']->value, 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'delete_pair' => true, 'no_thumbnail' => true), 0); ?> </div> <div class="clear"></div> </div> <?php if ($_smarty_tpl->tpl_vars['new_image_position']->value <= $_smarty_tpl->tpl_vars['pair']->value['position']) { ?> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable($_smarty_tpl->tpl_vars['pair']->value['position'], null, 0); ?> <?php } ?> <?php } ?> </div> <?php } ?> <div id="box_new_image"> <div class="clear cm-row-item"> <input type="hidden" name="product_add_additional_image_data[0][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_image_position']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-image-field" /> <div class="image-upload-wrap pull-left"><?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_add_additional", 'image_object_type' => "product", 'image_type' => "A", 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> <div class="pull-right"><?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "new_image"), 0); ?> </div> </div> </div> </div> <div id="content_seo" class="hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_seo")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_seo"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#acc_seo_meta"), 0); ?> <div id="acc_seo_meta" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[page_title]" id="elm_product_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "page_title", 'name' => "update_all_vendors[page_title]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_description]" id="elm_product_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_description", 'name' => "update_all_vendors[meta_description]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_keywords]" id="elm_product_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_keywords", 'name' => "update_all_vendors[meta_keywords]"), 0); ?> </div> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_seo"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="content_shippings" class="hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_shipping_settings.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_qty_discounts")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_qty_discounts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['product_data']->value['product_id']), 0); ?> <div id="content_addons"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:detailed_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('url' => "products.update?product_id="), 0); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </li> <li class="divider"></li> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone"), 'class' => "cm-post", 'href' => "products.clone?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "products.delete?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "submit-link", 'but_name' => "dispatch[products.update]", 'but_target_form' => "product_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?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(); } ?> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_extra"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <div class="cm-hide-save-button hidden" id="content_options"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div id="content_files" class="cm-hide-save-button hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:content_files")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:content_files"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_files.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:content_files"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <div id="content_subscribers" class="cm-hide-save-button hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_subscribers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?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 echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_mainbox_params")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php ob_start(); echo $_smarty_tpl->__("editing_product"); $_tmp5 = ob_get_clean(); echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['product_data']->value['product']), ENT_QUOTES, 'UTF-8'); ?> <?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(); } } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php echo $_smarty_tpl->__("new_product"); ?> <?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 $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => $_smarty_tpl->tpl_vars['id']->value, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); }
function content_55dc7cc5e77c27_94087511($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items')); ?> <ul> <?php $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['page']->_loop = false; $_from = $_smarty_tpl->tpl_vars['pages_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['page']->key => $_smarty_tpl->tpl_vars['page']->value) { $_smarty_tpl->tpl_vars['page']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['shift'] = new Smarty_variable(14 * (($tmp = @$_smarty_tpl->tpl_vars['page']->value['level']) === null || $tmp === '' ? 0 : $tmp), null, 0); ?> <?php $_smarty_tpl->tpl_vars['expanded'] = new Smarty_variable(smarty_modifier_in_array($_smarty_tpl->tpl_vars['page']->value['page_id'], $_smarty_tpl->tpl_vars['runtime']->value['active_page_ids']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['comb_id'] = new Smarty_variable("page_" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'], null, 0); ?> <li <?php if ($_smarty_tpl->tpl_vars['page']->value['active']) { ?> class="active"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> style="padding-left: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shift']->value, ENT_QUOTES, 'UTF-8'); ?> px;"<?php } ?> > <div class="link"><?php if ($_smarty_tpl->tpl_vars['page']->value['subpages']) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if ($_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " ><span class="exicon-expand"> </span></span><span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if (!$_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " ><span class="exicon-collapse"> </span></span><?php } ?> <a href="<?php echo htmlspecialchars(fn_url("pages.update?page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['status'] == "N") { ?> class="manage-root-item-disabled"<?php } ?> id="page_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (!$_smarty_tpl->tpl_vars['page']->value['subpages']) { ?> style="padding-left: 14px;"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); ?> </a></div> </li> <?php if ($_smarty_tpl->tpl_vars['page']->value['subpages']) { ?> <li class="<?php if (!$_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('pages_tree' => $_smarty_tpl->tpl_vars['page']->value['subpages'], 'parent_id' => $_smarty_tpl->tpl_vars['page']->value['page_id']), 0); ?> </li> <?php } ?> <?php } ?> </ul><?php }
function content_55e62051452198_34325532($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } $_smarty_tpl->tpl_vars['render_placed'] = new Smarty_variable(false, null, 0); ?> <ul> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_smarty_tpl->tpl_vars["item_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) { $_smarty_tpl->tpl_vars["item"]->_loop = true; $_smarty_tpl->tpl_vars["item_id"]->value = $_smarty_tpl->tpl_vars["item"]->key; ?> <?php $_smarty_tpl->tpl_vars["forbidden"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "F") { ?> <?php $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "gif") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("gif", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "jpg") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("jpg", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "jpeg") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("jpg", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "png") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("png", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "html" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "htm") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("html", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "tgz" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "zip" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "zip2" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "gz" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "bz" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "rar") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("zip", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "tpl" || $_smarty_tpl->tpl_vars['item']->value['ext'] == "txt") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("tpl", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "php") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("php", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "css") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("css", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['ext'] == "js") { $_smarty_tpl->tpl_vars["file_ext"] = new Smarty_variable("js", null, 0); } ?> <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['item']->value['ext'], $_smarty_tpl->tpl_vars['config']->value['forbidden_file_extensions'])) { $_smarty_tpl->tpl_vars["forbidden"] = new Smarty_variable(true, null, 0); } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["uniqid"] = new Smarty_variable(uniqid(10), null, 0); ?> <li class="<?php if ($_smarty_tpl->tpl_vars['item']->value['name'] == $_smarty_tpl->tpl_vars['active_object']->value) { ?> parent<?php } ?> <?php if ($_smarty_tpl->tpl_vars['last_object']->value && $_smarty_tpl->tpl_vars['item']->value['name'] == $_smarty_tpl->tpl_vars['active_object']->value) { ?> active<?php } ?> "> <a data-ca-item-full-path="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['full_path'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-item-path="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['path'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-item-filename="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['ext']) { ?> data-ca-item-ext="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['ext'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> data-ca-item-type="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['type'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-te-file" id="file_id_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['uniqid']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span class="overlay"></span> <span class="item"> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "D") { ?> <i class="exicon-expand"></i> <?php } elseif ($_smarty_tpl->tpl_vars['file_ext']->value == "gif" || $_smarty_tpl->tpl_vars['file_ext']->value == "jpg" || $_smarty_tpl->tpl_vars['file_ext']->value == "jpeg" || $_smarty_tpl->tpl_vars['file_ext']->value == "png") { ?> <i class="icon-picture"></i> <?php } else { ?> <i class="icon-file"></i> <?php } ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> </span> </a> <?php if ($_smarty_tpl->tpl_vars['item']->value['name'] == $_smarty_tpl->tpl_vars['active_object']->value) { ?> <?php $_smarty_tpl->tpl_vars['render_placed'] = new Smarty_variable(true, null, 0); ?> <!--render_place--> <?php } ?> </li> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['render_placed']->value) { ?> <!--render_place--> <?php } ?> </ul><?php }
function content_55d2ec4cceb3a6_06757597($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('hw_restrict_header', 'shippings', 'payments')); if ($_smarty_tpl->tpl_vars['hw_restrict']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("hw_restrict_header"), 'target' => "#hw_restrict"), 0); ?> <div id="hw_restrict" class="in collapse"> <fieldset> <input type="hidden" name="product_data[extra][hw_restrict][action]" value="update"> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("shippings"); ?> :</label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["shipping"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["shipping"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['hw_restrict']->value['shippings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["shipping"]->key => $_smarty_tpl->tpl_vars["shipping"]->value) { $_smarty_tpl->tpl_vars["shipping"]->_loop = true; ?> <label class="checkbox inline" for="hwd_s_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="product_data[extra][hw_restrict][shipping][]" id="hwd_s_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], $_smarty_tpl->tpl_vars['product_data']->value['extra']['hw_restrict']['shippings'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->tpl_vars['shipping']->value['shipping']; ?> </label> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("payments"); ?> :</label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["payment"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["payment"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['hw_restrict']->value['payments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["payment"]->key => $_smarty_tpl->tpl_vars["payment"]->value) { $_smarty_tpl->tpl_vars["payment"]->_loop = true; ?> <label class="checkbox inline" for="hwd_p_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['payment_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="product_data[extra][hw_restrict][payment][]" id="hwd_p_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['payment_id'], ENT_QUOTES, 'UTF-8'); ?> "<?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['payment']->value['payment_id'], $_smarty_tpl->tpl_vars['product_data']->value['extra']['hw_restrict']['payments'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payment']->value['payment_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->tpl_vars['payment']->value['payment']; ?> </label> <?php } ?> </div> </div> </fieldset> </div> <?php } }
function content_55ddd10480e890_36709742($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items')); ?> <ul> <?php $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['category']->_loop = false; $_from = $_smarty_tpl->tpl_vars['categories_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) { $_smarty_tpl->tpl_vars['category']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['shift'] = new Smarty_variable(14 * (($tmp = @$_smarty_tpl->tpl_vars['category']->value['level']) === null || $tmp === '' ? 0 : $tmp), null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("category_subtitle", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['category']->value['company_categories']) { ?> <?php $_smarty_tpl->tpl_vars['expanded'] = new Smarty_variable($_smarty_tpl->tpl_vars['category']->value['company_id'] == $_smarty_tpl->tpl_vars['category_data']->value['company_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['comb_id'] = new Smarty_variable("comp_" . (string) $_smarty_tpl->tpl_vars['category']->value['company_id'], null, 0); ?> <strong class="row-status"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> </strong> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['expanded'] = new Smarty_variable(smarty_modifier_in_array($_smarty_tpl->tpl_vars['category']->value['category_id'], $_smarty_tpl->tpl_vars['runtime']->value['active_category_ids']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['comb_id'] = new Smarty_variable("cat_" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id'], null, 0); ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['category']->value['disabled']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <a class="row-status <?php if ($_smarty_tpl->tpl_vars['category']->value['status'] == "N") { ?> manage-root-item-disabled<?php } if (!$_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> normal<?php } ?> " href="<?php echo htmlspecialchars(fn_url("categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']), ENT_QUOTES, 'UTF-8'); ?> "<?php if (!$_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> style="padding-left: 14px;"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> </a> <?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(); } ?> <li <?php if ($_smarty_tpl->tpl_vars['category']->value['active']) { ?> class="active"<?php } ?> style="padding-left: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shift']->value, ENT_QUOTES, 'UTF-8'); ?> px;"> <span class="link"><?php if ($_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if ($_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " ><span class="exicon-expand"> </span></span><span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if (!$_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " ><span class="exicon-collapse"> </span></span><?php } echo Smarty::$_smarty_vars['capture']['category_subtitle']; ?> </span> </li> <?php if ($_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> <li class="<?php if (!$_smarty_tpl->tpl_vars['expanded']->value) { ?> hidden<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/categories/components/categories_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('categories_tree' => $_smarty_tpl->tpl_vars['category']->value['subcategories']), 0); ?> <?php } ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></li> <?php } } ?> </ul><?php }
function content_55dc7cc6723f17_67346748($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('container_not_used', 'set_custom_configuration', 'insert_grid', 'insert_grid', 'container_options', 'enable_or_disable_container', 'use_default_block_configuration')); if ($_smarty_tpl->tpl_vars['container']->value['default'] != 1 && !$_smarty_tpl->tpl_vars['dynamic_object']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['container']->value['position'], array("TOP_PANEL", "HEADER", "FOOTER")) && $_smarty_tpl->tpl_vars['container']->value['linked_to_default'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars['linked'] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['linked'] = new Smarty_variable(false, null, 0); } ?> <div id="container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['container']->value['container_id'], ENT_QUOTES, 'UTF-8'); ?> " class="container container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['container']->value['width'], ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['linked']->value) { ?> container-lock<?php } ?> <?php if ($_smarty_tpl->tpl_vars['container']->value['status'] == "D") { ?> container-off<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['container']->value['status'] != "A") { ?> data-ca-status="disabled"<?php } else { ?> data-ca-status="active"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['linked']->value) { ?> <p><?php echo $_smarty_tpl->__("container_not_used", array("[container]" => __($_smarty_tpl->tpl_vars['container']->value['position']))); ?> <a class="cm-post" href="<?php echo htmlspecialchars(fn_url("block_manager.set_custom_container?container_id=" . (string) $_smarty_tpl->tpl_vars['container']->value['container_id'] . "&linked_to_default=N&selected_location=" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("set_custom_configuration"); ?> </a></p><?php } ?> <?php if ($_smarty_tpl->tpl_vars['container']->value['default'] == 1 || $_smarty_tpl->tpl_vars['container']->value['position'] == 'CONTENT' || $_smarty_tpl->tpl_vars['dynamic_object']->value || $_smarty_tpl->tpl_vars['container']->value['linked_to_default'] != "Y") { ?> <?php echo $_smarty_tpl->tpl_vars['content']->value; ?> <?php } ?> <div class="clearfix"></div> <div class="grid-control-menu bm-control-menu"> <?php if ($_smarty_tpl->tpl_vars['container']->value['default'] == 1 || $_smarty_tpl->tpl_vars['container']->value['position'] == 'CONTENT' && !$_smarty_tpl->tpl_vars['dynamic_object']->value || $_smarty_tpl->tpl_vars['container']->value['linked_to_default'] != "Y") { ?> <div class="grid-control-menu-actions"> <div class="btn-group action"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="icon-plus cm-tooltip" data-ce-tooltip-position="top" title="<?php echo $_smarty_tpl->__("insert_grid"); ?> "></span></a> <ul class="dropdown-menu droptop"> <li><a href="#" class="cm-action bm-action-add-grid"><?php echo $_smarty_tpl->__("insert_grid"); ?> </a></li> </ul> </div> <div class="cm-tooltip cm-action exicon-cog bm-action-properties action" data-ce-tooltip-position="top" title="<?php echo $_smarty_tpl->__("container_options"); ?> "></div> <div class="cm-action bm-action-switch cm-tooltip exicon-off action" data-ce-tooltip-position="top" title="<?php echo $_smarty_tpl->__("enable_or_disable_container"); ?> "></div> </div> <?php } ?> <h4 class="grid-control-title"><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['container']->value['position']); ?> <?php if ($_smarty_tpl->tpl_vars['container']->value['default'] != 1 && !$_smarty_tpl->tpl_vars['dynamic_object']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['container']->value['position'], array("TOP_PANEL", "HEADER", "FOOTER"))) { ?> <a class="cm-post" href="<?php echo htmlspecialchars(fn_url("block_manager.set_custom_container?container_id=" . (string) $_smarty_tpl->tpl_vars['container']->value['container_id'] . "&linked_to_default=Y&selected_location=" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("use_default_block_configuration"); ?> </a> <?php } ?> </h4> </div> <!--container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['container']->value['container_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> <hr /><?php }