function content_55d2f402ecd844_39235354($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('dear', 'update_profile_notification_header')); echo $_smarty_tpl->getSubTemplate("common/letter_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo $_smarty_tpl->__("dear"); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['firstname']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['firstname'], ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(mb_strtolower(fn_get_user_type_description($_smarty_tpl->tpl_vars['user_data']->value['user_type']), 'UTF-8'), ENT_QUOTES, 'UTF-8'); } ?> ,<br><br> <?php echo $_smarty_tpl->__("update_profile_notification_header"); ?> <br><br> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:update_profile")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:update_profile"), 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' => "profiles:update_profile"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("profiles/profiles_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/letter_footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); }
function content_55e61f9b7722c4_18014718($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('add_post', 'add_post', 'no_data', 'text_enabled_testimonials_notice')); if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['object_type'] && !$_smarty_tpl->tpl_vars['discussion']->value['is_empty']) { ?> <?php $_smarty_tpl->tpl_vars['allow_save'] = new Smarty_variable(($_smarty_tpl->tpl_vars['discussion']->value['object_type'] != "M" || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) && fn_check_view_permissions("discussion.update"), null, 0); ?> <div id="content_discussion"> <div class="clearfix"> <div class="buttons-container buttons-bg pull-right"> <?php if (fn_check_view_permissions("discussion.add") && !(fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['object_company_id']->value || $_smarty_tpl->tpl_vars['discussion']->value['object_type'] == 'M'))) { ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'title' => __("add_post"), 'icon' => "icon-plus", 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 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 } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'link_text' => __("add_post"), 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['posts'] && fn_check_view_permissions("discussion_manager")) { ?> <?php $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable(true, null, 2); $_ptr = $_smarty_tpl->parent; while ($_ptr != null) { $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn']; $_ptr = $_ptr->parent; } ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons_insert", null, null); ob_start(); ?> <?php } ?> <?php if (fn_check_view_permissions("discussion.m_delete")) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[discussion.m_delete]", 'form' => "update_posts_form")); ?> </li> <?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['discussion']->value['object_type'] == "E") { ?> <?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 } ?> <?php } ?> </div> </div><br> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['posts']) { ?> <?php echo smarty_function_script(array('src' => "js/addons/discussion/discussion.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0); ?> <div class="posts-container <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-no-hide-input<?php } else { ?> cm-hide-inputs<?php } ?> "> <?php $_smarty_tpl->tpl_vars["post"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["post"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['discussion']->value['posts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["post"]->key => $_smarty_tpl->tpl_vars["post"]->value) { $_smarty_tpl->tpl_vars["post"]->_loop = true; ?> <div class="post-item <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "O") { if ($_smarty_tpl->tpl_vars['post']->value['user_id'] == $_smarty_tpl->tpl_vars['user_id']->value) { ?> incoming<?php } else { ?> outgoing<?php } } ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "discussion:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('post' => $_smarty_tpl->tpl_vars['post']->value, 'type' => $_smarty_tpl->tpl_vars['discussion']->value['type']), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "discussion:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0); ?> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['discussion']->value['is_empty']) { ?> <?php echo $_smarty_tpl->__("text_enabled_testimonials_notice", array("[link]" => fn_url("addons.manage#groupdiscussion"))); ?> <?php } }
function content_55dc7db6ede751_81542503($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('general', 'language_code', 'name', 'country', 'tt_views_languages_update_country', 'clone_from', 'install')); if ($_smarty_tpl->tpl_vars['lang_data']->value) { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['lang_data']->value['lang_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable("0", null, 0); } ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(!fn_allow_save_object('', "languages"), null, 0); ?> <div id="content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="add_language_form" class="form-horizontal<?php if (!fn_allow_save_object('', "languages")) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="selected_section" value="languages" /> <input type="hidden" name="lang_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_general_<?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> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:tabs_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:tabs_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:tabs_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <div class="cm-tabs-content"> <div id="content_tab_general_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label for="elm_to_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("language_code"); ?> :</label> <div class="controls"> <input id="elm_to_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="language_data[lang_code]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_data']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> " size="6" maxlength="2"> </div> </div> <div class="control-group"> <label for="elm_lang_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="elm_lang_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="language_data[name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_data']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " maxlength="64"> </div> </div> <div class="control-group"> <label for="elm_lang_country_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("country"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_languages_update_country")), 0); ?> :</label> <div class="controls"> <select id="elm_lang_country_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="language_data[country_code]"> <?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 <?php if ($_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['lang_data']->value['country_code']) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php if (fn_allowed_for("ULTIMATE:FREE")) { ?> <?php $_smarty_tpl->tpl_vars['hidden'] = new Smarty_variable(false, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['hidden'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('obj' => $_smarty_tpl->tpl_vars['lang_data']->value, 'display' => "radio", 'input_name' => "language_data[status]", 'hidden' => $_smarty_tpl->tpl_vars['hidden']->value), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <div class="control-group"> <label for="elm_from_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("clone_from"); ?> :</label> <div class="controls"> <select name="language_data[from_lang_code]" id="elm_from_lang_code_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars["language"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["language"]->_loop = false; $_from = fn_get_translation_languages(''); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["language"]->key => $_smarty_tpl->tpl_vars["language"]->value) { $_smarty_tpl->tpl_vars["language"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:update"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "languages:tabs_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "languages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->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[languages.update]", 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> <?php } else { ?> <div class="install-addon"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="add_language_form" class="form-horizontal<?php if ($_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <div class="install-addon-wrapper"> <img class="install-addon-banner" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /addon_box.png" width="151px" height="141px" /> <?php echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "language_data[po_file]", 'allowed_ext' => "po, zip"), 0); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->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[languages.install_from_po]", 'but_text' => __("install"), 'cancel_action' => "close", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> <?php } ?> </form> </div> <?php } ?> <!--content_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php }
function content_55dc759dc9f7e7_02041036($_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_set_id')) { include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('search', 'search_products', 'search', 'search', 'search', 'search_products', 'search', 'search')); 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(); ?> <div class="ty-search-block"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="search_form" method="get"> <input type="hidden" name="subcats" value="Y" /> <input type="hidden" name="pcode_from_q" value="Y" /> <input type="hidden" name="pshort" value="Y" /> <input type="hidden" name="pfull" value="Y" /> <input type="hidden" name="pname" value="Y" /> <input type="hidden" name="pkeywords" value="Y" /> <input type="hidden" name="search_performed" value="Y" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "search:additional_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "search:additional_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "search:additional_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) { $_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search"), null, 0); } else { $_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search_products"), null, 0); } ?> <input type="text" name="q" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q'], ENT_QUOTES, 'UTF-8'); ?> " id="search_input<?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['search_input_id'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search_title']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-search-block__input cm-hint" /><?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) { echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "search.results", 'alt' => __("search")), 0); } else { echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "products.search", 'alt' => __("search")), 0); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("search_input_id", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['snapping_id'], ENT_QUOTES, 'UTF-8'); 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> </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(); } 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/search.tpl" id="<?php echo smarty_function_set_id(array('name' => "common/search.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 { ?> <div class="ty-search-block"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="search_form" method="get"> <input type="hidden" name="subcats" value="Y" /> <input type="hidden" name="pcode_from_q" value="Y" /> <input type="hidden" name="pshort" value="Y" /> <input type="hidden" name="pfull" value="Y" /> <input type="hidden" name="pname" value="Y" /> <input type="hidden" name="pkeywords" value="Y" /> <input type="hidden" name="search_performed" value="Y" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "search:additional_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "search:additional_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "search:additional_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) { $_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search"), null, 0); } else { $_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search_products"), null, 0); } ?> <input type="text" name="q" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q'], ENT_QUOTES, 'UTF-8'); ?> " id="search_input<?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['search_input_id'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search_title']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-search-block__input cm-hint" /><?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) { echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "search.results", 'alt' => __("search")), 0); } else { echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "products.search", 'alt' => __("search")), 0); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("search_input_id", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['snapping_id'], ENT_QUOTES, 'UTF-8'); 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> </div> <?php } }
function content_55db8bdb79d546_98717403($_smarty_tpl) { if (!is_callable('smarty_block_scripts')) { include '/var/www/html/market/app/functions/smarty_plugins/block.scripts.php'; } if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('cannot_buy', 'no_products_selected', 'error_no_items_selected', 'delete_confirmation', 'text_out_of_stock', 'items', 'text_required_group_product', 'save', 'close', 'loading', 'notice', 'warning', 'error', 'text_are_you_sure_to_proceed', 'text_invalid_url', 'error_validator_email', 'error_validator_phone', 'error_validator_integer', 'error_validator_multiple', 'error_validator_password', 'error_validator_required', 'error_validator_zipcode', 'error_validator_message', 'error_validator_color', 'text_page_loading', 'error_ajax', 'text_changes_not_saved', 'text_data_changed', 'text_block_trial_notice', 'text_expired_license', 'file_browser', 'editing_block', 'editing_grid', 'editing_container', 'adding_grid', 'adding_block_to_grid', 'manage_blocks', 'editing_block', 'add_block', 'text_position_updating', 'more', 'browse', 'enter_new_lang_code', 'no_image')); $_smarty_tpl->smarty->_tag_stack[] = array('scripts', array()); $_block_repeat = true; echo smarty_block_scripts(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_script(array('src' => "js/lib/jquery/jquery.min.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/core.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/history.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/twitterbootstrap/bootstrap.min.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/jqueryui/jquery-ui.custom.min.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/autonumeric/autoNumeric.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/appear/jquery.appear-1.1.1.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/tools/tooltip.min.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/editors/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'] . ".editor.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/ajax.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/quick_menu.js"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['feedback_type'] == "auto") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/analytics.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("promo_data", null, null); ob_start(); ?> <div class="commercial-promotion-text"> <p><?php echo $_smarty_tpl->tpl_vars['addon_permissions_text']->value['text']; ?> </p> <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->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(_, $) { _.tr({ cannot_buy: '<?php echo strtr($_smarty_tpl->__("cannot_buy"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', no_products_selected: '<?php echo strtr($_smarty_tpl->__("no_products_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_no_items_selected: '<?php echo strtr($_smarty_tpl->__("error_no_items_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', delete_confirmation: '<?php echo strtr($_smarty_tpl->__("delete_confirmation"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_out_of_stock: '<?php echo strtr($_smarty_tpl->__("text_out_of_stock"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', items: '<?php echo strtr($_smarty_tpl->__("items"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_required_group_product: '<?php echo strtr($_smarty_tpl->__("text_required_group_product"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', save: '<?php echo strtr($_smarty_tpl->__("save"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', close: '<?php echo strtr($_smarty_tpl->__("close"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', loading: '<?php echo strtr($_smarty_tpl->__("loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', notice: '<?php echo strtr($_smarty_tpl->__("notice"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', warning: '<?php echo strtr($_smarty_tpl->__("warning"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error: '<?php echo strtr($_smarty_tpl->__("error"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_are_you_sure_to_proceed: '<?php echo strtr($_smarty_tpl->__("text_are_you_sure_to_proceed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_invalid_url: '<?php echo strtr($_smarty_tpl->__("text_invalid_url"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_email: '<?php echo strtr($_smarty_tpl->__("error_validator_email"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_phone: '<?php echo strtr($_smarty_tpl->__("error_validator_phone"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_integer: '<?php echo strtr($_smarty_tpl->__("error_validator_integer"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_multiple: '<?php echo strtr($_smarty_tpl->__("error_validator_multiple"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_password: '******'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_required: '<?php echo strtr($_smarty_tpl->__("error_validator_required"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_zipcode: '<?php echo strtr($_smarty_tpl->__("error_validator_zipcode"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_message: '<?php echo strtr($_smarty_tpl->__("error_validator_message"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_color: '<?php echo strtr($_smarty_tpl->__("error_validator_color"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_page_loading: '<?php echo strtr($_smarty_tpl->__("text_page_loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_ajax: '<?php echo strtr($_smarty_tpl->__("error_ajax"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_changes_not_saved: '<?php echo strtr($_smarty_tpl->__("text_changes_not_saved"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_data_changed: '<?php echo strtr($_smarty_tpl->__("text_data_changed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', trial_notice: '<?php echo strtr($_smarty_tpl->__("text_block_trial_notice", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['license_url'])), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', expired_license: '<?php echo strtr($_smarty_tpl->__("text_expired_license", array("[product]" => @constant('PRODUCT_NAME'))), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', file_browser: '<?php echo strtr($_smarty_tpl->__("file_browser"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_block: '<?php echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_grid: '<?php echo strtr($_smarty_tpl->__("editing_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_container: '<?php echo strtr($_smarty_tpl->__("editing_container"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', adding_grid: '<?php echo strtr($_smarty_tpl->__("adding_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', adding_block_to_grid: '<?php echo strtr($_smarty_tpl->__("adding_block_to_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', manage_blocks: '<?php echo strtr($_smarty_tpl->__("manage_blocks"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_block: '<?php echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', add_block: '<?php echo strtr($_smarty_tpl->__("add_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_position_updating: '<?php echo strtr($_smarty_tpl->__("text_position_updating"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', more: '<?php echo strtr($_smarty_tpl->__("more"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', browse: '<?php echo strtr($_smarty_tpl->__("browse"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', enter_new_lang_code: '<?php echo strtr($_smarty_tpl->__("enter_new_lang_code"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', no_image: '<?php echo strtr($_smarty_tpl->__("no_image"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }); $.extend(_, { index_script: '<?php if ($_smarty_tpl->tpl_vars['user_info']->value['user_type'] == 'V') { echo strtr($_smarty_tpl->tpl_vars['config']->value['vendor_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); } else { echo strtr($_smarty_tpl->tpl_vars['config']->value['admin_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); } ?> ', changes_warning: '<?php echo strtr($_smarty_tpl->tpl_vars['settings']->value['Appearance']['changes_warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', currencies: { 'primary': { 'decimals_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'thousands_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'decimals': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }, 'secondary': { 'decimals_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'thousands_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'decimals': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'coefficient': '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['coefficient'], ENT_QUOTES, 'UTF-8'); ?> ' } }, default_editor: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'], ENT_QUOTES, 'UTF-8'); ?> ', default_previewer: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'], ENT_QUOTES, 'UTF-8'); ?> ', current_path: '<?php echo strtr($_smarty_tpl->tpl_vars['config']->value['current_path'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', current_location: '<?php echo strtr($_smarty_tpl->tpl_vars['config']->value['current_location'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', images_dir: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> ', notice_displaying_time: <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time'], ENT_QUOTES, 'UTF-8'); } else { ?> 0<?php } ?> , cart_language: '<?php echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> ', default_language: '<?php echo htmlspecialchars(@constant('DEFAULT_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> ', cart_prices_w_taxes: <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['cart_prices_w_taxes'] == 'Y') { ?> true<?php } else { ?> false<?php } ?> , theme_name: '<?php echo strtr($_smarty_tpl->tpl_vars['settings']->value['theme_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', current_url: '<?php echo strtr(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', <?php if ($_smarty_tpl->tpl_vars['config']->value['tweaks']['anti_csrf']) { ?> security_hash: '<?php echo htmlspecialchars(fn_generate_security_hash(''), ENT_QUOTES, 'UTF-8'); ?> ', // CSRF form protection key <?php } ?> promo_data: { title: '<?php echo strtr($_smarty_tpl->tpl_vars['addon_permissions_text']->value['title'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text: '<?php echo strtr(Smarty::$_smarty_vars['capture']['promo_data'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' } }); $(document).ready(function(){ $.runCart('A'); }); }(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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:scripts")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:scripts"), 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' => "index:scripts"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_scripts(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php }
function content_55d2f3b104f8b0_98025960($_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_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('id', 'username', 'person_name', 'email', 'registered', 'type', 'status', 'view', 'administrator', 'vendor_administrator', 'customer', 'affiliate', 'view_all_orders', 'act_on_behalf', 'edit', 'delete', 'notify_user', 'no_data', 'export_selected', 'users', 'add_user')); if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); } ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="userlist_form" id="userlist_form" class="<?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !fn_allowed_for("ULTIMATE")) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="fake" value="1" /> <input type="hidden" name="user_type" value="<?php echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%" class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="3%" class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=username&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("username"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "username") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=name&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("person_name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "name") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=email&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("email"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "email") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="16%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("registered"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=type&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("type"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "type") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <th class="right"> </th> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['user']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) { $_smarty_tpl->tpl_vars['user']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['user']->value, "users"), null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value && !defined("RESTRICTED_ADMIN") && $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); } elseif ($_smarty_tpl->tpl_vars['allow_save']->value || defined("RESTRICTED_ADMIN") || $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); } if (!fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['allow_save']->value || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_SESSION['auth']['user_id']) { ?> cm-hide-inputs<?php } ?> "> <?php } ?> <td class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="user_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item" /></td> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php } ?> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['firstname'] || $_smarty_tpl->tpl_vars['user']->value['lastname']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['firstname'], ENT_QUOTES, 'UTF-8'); ?> </a><?php } else { ?> -<?php } if ($_smarty_tpl->tpl_vars['user']->value['company_id']) { echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['user']->value), 0); } ?> </td> <td><a class="row-status" href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['user']->value['email']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="row-status"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A") { echo $_smarty_tpl->__("administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "V") { echo $_smarty_tpl->__("vendor_administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { echo $_smarty_tpl->__("customer"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "P") { echo $_smarty_tpl->__("affiliate"); } ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td class="right nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("view_all_orders"), 'href' => "orders.manage?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_user_need_login($_smarty_tpl->tpl_vars['user']->value['user_type']) && (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id'] && fn_check_permission_act_as_user()) && $_smarty_tpl->tpl_vars['user']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && $_smarty_tpl->tpl_vars['user']->value['is_root'] == 'Y' && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']))) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("act_on_behalf"), 'href' => "profiles.act_as_user?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['list_extra_links']->value) { ?> <li class="divider"></li> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_REQUEST['user_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type'], null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => $_smarty_tpl->tpl_vars['user_edit_link']->value)); ?> </li> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_delete", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'href' => "profiles.delete?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value)); ?> </li> <?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['user']->value['user_id'] != $_SESSION['auth']['user_id']) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } elseif ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "N") { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <input type="hidden" name="user_types[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" || $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['user']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['user']->value['user_id'], null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && $_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']) || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id'] || fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == 'C' || $_smarty_tpl->tpl_vars['user']->value['company_id'] && $_smarty_tpl->tpl_vars['user']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['u_id']->value, 'status' => $_smarty_tpl->tpl_vars['user']->value['status'], 'hidden' => '', 'update_controller' => "profiles", 'notify' => true, 'notify_text' => __("notify_user"), 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['popup_additional_class']->value . " dropleft", 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if (fn_allowed_for("ULTIMATE") || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("export_selected"), 'dispatch' => "dispatch[profiles.export_range]", 'form' => "userlist_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[profiles.m_delete]", 'form' => "userlist_form")); ?> </li> <?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 } 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 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("adv_buttons", null, null); ob_start(); ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable(fn_get_user_type_description($_REQUEST['user_type'], true), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__("users"), null, 0); ?> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <a class="btn cm-tooltip" href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_REQUEST['user_type']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("add_user"); ?> "><i class="icon-plus"></i></a> <?php } ?> <?php } else { ?> <?php if (!empty($_smarty_tpl->tpl_vars['user_types']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['user_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["_p"]->key => $_smarty_tpl->tpl_vars["_p"]->value) { $_smarty_tpl->tpl_vars["_p"]->_loop = true; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <li><a href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_p']->value); ?> </a></li> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'no_caret' => true, 'icon' => "icon-plus", 'placement' => "right")); ?> <?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 $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage", 'view_type' => "users"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/users_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage"), 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 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'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content_id' => "manage_users"), 0); }
function content_55e61f9bbf8558_38066348($_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'; } fn_preload_lang_vars(array('general', 'variants', 'name', 'position', 'inventory', 'tt_views_product_options_update_inventory', 'type', 'description', 'comment', 'comment_hint', 'required', 'missing_variants_handling', 'display_message', 'hide_option_completely', 'regexp', 'tt_views_product_options_update_regexp', 'regexp_hint', 'inner_hint', 'tt_views_product_options_update_inner_hint', 'incorrect_filling_message', 'tt_views_product_options_update_incorrect_filling_message', 'allowed_extensions', 'allowed_extensions_hint', 'max_uploading_file_size', 'max_uploading_file_size_hint', 'multiupload', 'position_short', 'name', 'modifier', 'type', 'weight_modifier', 'type', 'status', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon')); if ($_smarty_tpl->tpl_vars['option_data']->value['option_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['option_data']->value['option_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cm_no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['option_data']->value, "product_options"), null, 0); ?> <div id="content_group_product_option_<?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="option_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="form-horizontal form-edit form-highlight cm-disable-empty-files <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <input type="hidden" name="option_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } } ?> <?php if ($_REQUEST['product_id']) { ?> <input class="cm-no-hide-input" type="hidden" name="option_data[product_id]" value="<?php echo htmlspecialchars($_REQUEST['product_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['company_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_company_id']->value, null, 0); ?> <?php } ?> <?php } } ?> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_option_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> <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "S" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "R" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C" || !$_smarty_tpl->tpl_vars['option_data']->value) { ?> <li id="tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js"><a><?php echo $_smarty_tpl->__("variants"); ?> </a></li> <?php } ?> </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_option_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <input class="cm-no-hide-input" type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['object']->value, ENT_QUOTES, 'UTF-8'); ?> " name="object"> <label for="elm_option_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="span9" type="text" name="option_data[option_name]" id="elm_option_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> "/> </div> </div> <div class="control-group"> <label class="control-label" for="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("position"); ?> </label> <div class="controls"> <input type="text" name="option_data[position]" id="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_inventory_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?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_product_options_update_inventory")), 0); ?> </label> <input type="hidden" name="option_data[inventory]" value="N" /> <div class="controls"> <?php if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <label class="checkbox"> <input type="checkbox" name="option_data[inventory]" id="elm_inventory_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['inventory'] == "Y") { ?> checked="checked"<?php } ?> /> </label> <?php } else { ?> <p>-</p> <?php } ?> </div> </div> <?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' => "option_data[company_id]", 'id' => "elm_option_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value, 'selected' => ($tmp = @$_smarty_tpl->tpl_vars['option_data']->value['company_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['company_id']->value : $tmp, 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0); ?> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> <input type="hidden" name="option_data[option_type]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_type'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-no-hide-input" /> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_option_type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("type"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/components/option_types.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "option_data[option_type]", 'value' => $_smarty_tpl->tpl_vars['option_data']->value['option_type'], 'display' => "select", 'tag_id' => "elm_option_type_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'check' => true), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> </label> <div class="controls"> <textarea id="elm_option_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[description]" cols="55" rows="8" class="cm-wysiwyg span9"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_comment_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("comment"); ?> </label> <div class="controls"> <input type="text" name="option_data[comment]" id="elm_option_comment_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['comment'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("comment_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_file_required_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("required"); ?> </label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="option_data[required]" value="N" /><input type="checkbox" id="elm_option_file_required_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[required]" value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['required'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php if (!$_smarty_tpl->tpl_vars['option_data']->value['option_type'] || strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <div class="control-group"> <label class="control-label" for="elm_option_missing_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("missing_variants_handling"); ?> </label> <div class="controls"> <?php if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) { ?> <select id="elm_option_missing_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[missing_variants_handling]"> <option value="M" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "M") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("display_message"); ?> </option> <option value="H" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "H") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("hide_option_completely"); ?> </option> </select> <?php } else { ?> <p>-</p> <?php } ?> </div> </div> <?php } ?> <div id="extra_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "I" && $_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "T") { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label" for="elm_option_regexp_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("regexp"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_regexp")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[regexp]" id="elm_option_regexp_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo $_smarty_tpl->tpl_vars['option_data']->value['regexp']; ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("regexp_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_inner_hint_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("inner_hint"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_inner_hint")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[inner_hint]" id="elm_option_inner_hint_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['inner_hint'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_incorrect_message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("incorrect_filling_message"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_incorrect_filling_message")), 0); ?> </label> <div class="controls"> <input type="text" name="option_data[incorrect_message]" id="elm_option_incorrect_message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['incorrect_message'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> </div> </div> </div> <div id="file_options_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "F") { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label" for="elm_option_allowed_extensions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("allowed_extensions"); ?> </label> <div class="controls"> <input type="text" name="option_data[allowed_extensions]" id="elm_option_allowed_extensions_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['allowed_extensions'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("allowed_extensions_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_max_uploading_file_size_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("max_uploading_file_size"); ?> </label> <div class="controls"> <input type="text" name="option_data[max_file_size]" id="elm_option_max_uploading_file_size_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['max_file_size'], ENT_QUOTES, 'UTF-8'); ?> " class="span9" /> <p class="description"><?php echo $_smarty_tpl->__("max_uploading_file_size_hint"); ?> </p> </div> </div> <div class="control-group"> <label class="control-label" for="elm_option_multiupload_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("multiupload"); ?> </label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="option_data[multiupload]" value="N" /><input type="checkbox" id="elm_option_multiupload_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="option_data[multiupload]" value="Y" <?php if ($_smarty_tpl->tpl_vars['option_data']->value['multiupload'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:properties")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options: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' => "product_options:properties"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </fieldset> <!--content_tab_option_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <div class="hidden" id="content_tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <table class="table table-middle"> <thead> <tr class="first-sibling"> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("name"); ?> </th> <th><?php echo $_smarty_tpl->__("modifier"); ?> / <?php echo $_smarty_tpl->__("type"); ?> </th> <th><?php echo $_smarty_tpl->__("weight_modifier"); ?> / <?php echo $_smarty_tpl->__("type"); ?> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("status"); ?> </th> <th> <div id="on_st_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combinations-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> exicon-expand"></div><div id="off_st_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combinations-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> exicon-collapse"></div> </th> <th class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["vr"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["vr"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['option_data']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars["vr"]->key => $_smarty_tpl->tpl_vars["vr"]->value) { $_smarty_tpl->tpl_vars["vr"]->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration']++; ?> <?php $_smarty_tpl->tpl_vars["num"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['fe_v']['iteration'], null, 0); ?> <tbody class="hover cm-row-item" id="option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> "> <tr> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-micro" /></td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_name'], ENT_QUOTES, 'UTF-8'); ?> " class="input-medium" /></td> <td class="nowrap <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") { ?> cm-no-hide-input<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['modifier'], ENT_QUOTES, 'UTF-8'); ?> " size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier_type]"> <option value="A" <?php if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "P") { ?> selected="selected"<?php } ?> >%</option> </select> <?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' => $_smarty_tpl->tpl_vars['vr']->value['variant_id'], 'name' => "update_all_vendors[" . (string) $_smarty_tpl->tpl_vars['num']->value . "]"), 0); ?> </td> <td class="nowrap"> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['weight_modifier'], ENT_QUOTES, 'UTF-8'); ?> " size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier_type]"> <option value="A" <?php if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "P") { ?> selected="selected"<?php } ?> >%</option> </select> </td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'obj' => $_smarty_tpl->tpl_vars['vr']->value, 'meta' => "input-small"), 0); ?> </td> <td class="nowrap"> <span id="on_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-expand"></span></span> <span id="off_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-collapse"></span> </span> <a id="sw_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("extra"); ?> </a> <input type="hidden" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </td> <td class="right cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "option_variants_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['num']->value, 'tag_level' => "3", 'only_delete' => "Y"), 0); ?> </td> </tr> <tr id="extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-ex-op hidden"> <td colspan="7"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <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' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'image_pair' => $_smarty_tpl->tpl_vars['vr']->value['image_pair'], 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> </tr> </tbody> <?php } ?> <?php echo smarty_function_math(array('equation' => "x + 1", 'assign' => "num", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['num']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); $_smarty_tpl->tpl_vars["vr"] = new Smarty_variable('', null, 0); ?> <tbody class="hover cm-row-item <?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> " id="box_add_variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <tr> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][position]" value="" size="3" class="input-micro" /></td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][variant_name]" value="" class="input-medium" /></td> <td> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier]" value="" size="5" class="input-mini" /> / <select class="input-mini" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][modifier_type]"> <option value="A"><?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> </option> <option value="P">%</option> </select> </td> <td> <input type="text" name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier]" value="" size="5" class="input-mini" /> / <select class='input-mini' name="option_data[variants][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> ][weight_modifier_type]"> <option value="A"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> </option> <option value="P">%</option> </select> </td> <td class="cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'meta' => "input-small"), 0); ?> </td> <td> <span id="on_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-expand"></span></span> <span id="off_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hand hidden cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="exicon-collapse"></span></span> <a id="sw_extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-options-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("extra"); ?> </a> </td> <td class="right cm-non-cb<?php if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_variant_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'tag_level' => "2"), 0); ?> </td> </tr> <tr id="extra_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-ex-op hidden"> <td colspan="7"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group cm-non-cb"> <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' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> </tr> </tbody> </table> </fieldset> <!--content_tab_option_variants_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> </div> <div class="buttons-container"> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value && $_smarty_tpl->tpl_vars['shared_product']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[product_options.update]", 'cancel_action' => "close", 'extra' => '', 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </form> <!--content_group_product_option_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php }
function content_55dc7cc5c1a670_13636549($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('information', 'name', 'description', 'edit_content_on_site', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'availability', 'usergroups', 'creation_date', 'use_avail_period', 'avail_from', 'avail_till', 'preview', 'clone_this_page', 'delete_this_page', 'pages')); if ($_smarty_tpl->tpl_vars['page_data']->value['page_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_data']->value['page_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK') && (!fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars['view_uri'] = new Smarty_variable(fn_get_preview_url("pages.view?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, $_smarty_tpl->tpl_vars['page_data']->value, $_smarty_tpl->tpl_vars['auth']->value['user_id']), null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages"), null, 0); } $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['allow_save']->value, null, 2); $_ptr = $_smarty_tpl->parent; while ($_ptr != null) { $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn']; $_ptr = $_ptr->parent; } $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="page_update_form" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <div id="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" class="cm-no-hide-input" id="selected_section" name="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" id="page_id" name="page_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="page_data[page_type]" id="page_type" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_type']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" name="come_from" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['come_from']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="result_ids" value="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "/> <div id="content_basic"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#pages_information_setting"), 0); ?> <div id="pages_information_setting" class="in collapse"> <fieldset> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/parent_page_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="control-group"> <label for="elm_page_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="page_data[page]" id="elm_page_name" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['page_data']->value['parent_id'] != 0 && $_smarty_tpl->tpl_vars['page_data']->value['page_id'] != 0) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?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' => "page_data[company_id]", 'id' => "elm_page_data_company_id", 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'selected' => $_smarty_tpl->tpl_vars['page_data']->value['company_id'], 'reload_form' => true, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <div class="control-group"> <label class="control-label" for="elm_page_descr"><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_page_descr" name="page_data[description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['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['page_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 } ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:detailed_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "page_data[status]", 'id' => "elm_page_status", 'obj' => $_smarty_tpl->tpl_vars['page_data']->value, 'hidden' => true), 0); ?> </fieldset> </div> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#pages_seo_meta_data_setting"), 0); ?> <div id="pages_seo_meta_data_setting" class="in collapse"> <fieldset> <div class="control-group"> <label class="control-label" for="elm_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="page_data[page_title]" id="elm_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_description]" id="elm_page_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_keywords]" id="elm_page_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#pages_availability_setting"), 0); ?> <div id="pages_availability_setting" class="in collapse"> <fieldset> <?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' => "page_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['page_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_page_date"><?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_page_date", 'date_name' => "page_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 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' => "page_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['page_data']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label" for="elm_page_use_avail_period"><?php echo $_smarty_tpl->__("use_avail_period"); ?> :</label> <div class="controls"> <input type="hidden" name="page_data[use_avail_period]" value="N"> <span class="checkbox"> <input type="checkbox" name="page_data[use_avail_period]" id="elm_page_use_avail_period" <?php if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] == "Y") { ?> checked="checked"<?php } ?> value="Y" onclick="fn_activate_calendar(this);"> </span> </div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("calendar_disable", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] != "Y") { ?> disabled="disabled"<?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(); } ?> <div class="control-group"> <label class="control-label" for="elm_page_avail_from"><?php echo $_smarty_tpl->__("avail_from"); ?> :</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_page_avail_from", 'date_name' => "page_data[avail_from_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_from_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_avail_till"><?php echo $_smarty_tpl->__("avail_till"); ?> :</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_page_avail_till", 'date_name' => "page_data[avail_till_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_till_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> </fieldset> </div> <?php $_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'; ?> language="javascript"> function fn_activate_calendar(el) { Tygh.$('#elm_page_avail_from').prop('disabled', !el.checked); Tygh.$('#elm_page_avail_till').prop('disabled', !el.checked); } <?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); ?> </div> <div id="content_addons"> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages: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' => "pages:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages: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' => "pages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['new_name']), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['edit_name']); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['page_data']->value['page'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("preview", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </li> <?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 } } ?> <?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->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['page_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["_p"]->key => $_smarty_tpl->tpl_vars["_p"]->value) { $_smarty_tpl->tpl_vars["_p"]->_loop = true; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __($_smarty_tpl->tpl_vars['_p']->value['add_name']), 'href' => "pages.add?page_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value . "&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tools_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' => "pages:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <li class="divider"></li> <?php echo Smarty::$_smarty_vars['capture']['preview']; ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-post", 'text' => __("clone_this_page"), 'href' => "pages.clone?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete_this_page"), 'class' => "cm-confirm cm-post", 'href' => "pages.delete?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?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 } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if (!$_smarty_tpl->tpl_vars['show_save_btn']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[pages.update]", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'but_target_form' => "page_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(); } ?> <!--update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_extra"), 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' => "pages:tabs_extra"), $_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(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], '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->_capture_stack[0][] = array("sidebar", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['pages_tree']->value) { ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("pages"); ?> </h6> <div class="nested-tree"> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('show_all' => false, 'pages_tree' => $_smarty_tpl->tpl_vars['pages_tree']->value), 0); ?> </div> </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.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left", 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
function content_55e61f9b376600_35466875($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('seo.rich_snippets', 'in_stock')); if ($_smarty_tpl->tpl_vars['view_uri']->value && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("ULTIMATE") || fn_allowed_for("MULTIVENDOR")) { echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo.rich_snippets"), 'target' => "#acc_addon_seo_richsnippets"), 0); ?> <div id="acc_addon_seo_richsnippets" class="collapsed in"> <div class="seo-rich-snippet"> <h3> <a class="srs-title cm-seo-srs-title" href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product_data']->value['product_id'], "C"), ENT_QUOTES, 'UTF-8'); ?> " target="_blank"><?php echo htmlspecialchars(smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product_data']->value['product']), 60, "..."), ENT_QUOTES, 'UTF-8'); ?> </a> </h3> <div> <div> <cite class="srs-url"><?php echo htmlspecialchars(fn_url('', "C"), ENT_QUOTES, 'UTF-8'); ?> </cite> </div> <div class="srs-price"><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:seo_snippet_attributes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:seo_snippet_attributes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product_data']->value['price'], 'span_id' => "elm_seo_srs_price"), 0); ?> - <?php echo $_smarty_tpl->__("in_stock"); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:seo_snippet_attributes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php $_smarty_tpl->tpl_vars['description'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['full_description']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['product_data']->value['short_description'] : $tmp, null, 0); ?> <span class="srs-description cm-seo-srs-description"><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['description']->value), 145, "..."); ?> </span> </div> </div> </div> <?php } }
function content_55dc75a003e1f6_47584415($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_function_split')) { include '/var/www/html/market/app/functions/smarty_plugins/function.split.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_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_set_id')) { include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('empty', 'empty')); 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['products']->value) { ?> <?php echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['no_sorting']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['show_empty']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl); ?> <?php } else { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl); ?> <?php } ?> <?php echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0); ?> <?php } ?> <?php echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <div class="grid-list"> <?php $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sproducts"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) { $_smarty_tpl->tpl_vars["sproducts"]->_loop = true; $_smarty_tpl->tpl_vars["sproducts"]->iteration++; $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last; $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['sproducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0; 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['smarty']->value['foreach']["sproducts"]['iteration']++; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0); ?> <div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value]; $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-grid-list__image"><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0); $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value]; ?> </div><div class="ty-grid-list__item-name"><?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <span class="item-number"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8'); ?> . </span><?php echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl); } $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value]; ?> </div><div class="ty-grid-list__price <?php if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) { ?> ty-grid-list__no-price<?php } ?> "><?php $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) { echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]; } $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value]; $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]; $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value]; ?> </div><?php $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) { ?> <div class="grid-list__rating"><?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]; ?> </div><?php } ?> <div class="ty-grid-list__control"><?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) { ?> <div class="button-container"><?php $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value]; ?> </div><?php } ?> </div><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value]; ?> </div><?php } ?> </div><?php } if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) { $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0); $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8'); 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(); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:products_multicolumns_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:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0); if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) { echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]); } $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows"; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="ty-product-empty"><span class="ty-product-empty__text"><?php echo $_smarty_tpl->__("empty"); ?> </span></div></div><?php } } } } } ?> </div> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); 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(); } 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="blocks/list_templates/grid_list.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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['products']->value) { ?> <?php echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['no_sorting']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['show_empty']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl); ?> <?php } else { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl); ?> <?php } ?> <?php echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0); ?> <?php } ?> <?php echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <div class="grid-list"> <?php $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sproducts"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) { $_smarty_tpl->tpl_vars["sproducts"]->_loop = true; $_smarty_tpl->tpl_vars["sproducts"]->iteration++; $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last; $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['sproducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0; 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['smarty']->value['foreach']["sproducts"]['iteration']++; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0); ?> <div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value]; $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-grid-list__image"><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0); $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value]; ?> </div><div class="ty-grid-list__item-name"><?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <span class="item-number"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8'); ?> . </span><?php echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl); } $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value]; ?> </div><div class="ty-grid-list__price <?php if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) { ?> ty-grid-list__no-price<?php } ?> "><?php $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) { echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]; } $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value]; $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value]; $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value]; ?> </div><?php $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) { ?> <div class="grid-list__rating"><?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]; ?> </div><?php } ?> <div class="ty-grid-list__control"><?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) { ?> <div class="button-container"><?php $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value]; ?> </div><?php } ?> </div><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value]; ?> </div><?php } ?> </div><?php } if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) { $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0); $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8'); 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(); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:products_multicolumns_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:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0); if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) { echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]); } $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows"; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="ty-product-empty"><span class="ty-product-empty__text"><?php echo $_smarty_tpl->__("empty"); ?> </span></div></div><?php } } } } } ?> </div> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); 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(); } } }
function content_55d2f3631b4907_82550440($_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_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('returning_customer', 'email', 'username', 'password', 'forgot_password_question', 'remember_me', 'sign_in', 'returning_customer', 'email', 'username', 'password', 'forgot_password_question', 'remember_me', 'sign_in')); 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->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "main_login" : $tmp, null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("login", null, null); ob_start(); ?> <form name="<?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"> <input type="hidden" name="return_url" value="<?php echo htmlspecialchars(($tmp = @$_REQUEST['return_url']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['style']->value == "checkout") { ?> <div class="checkout-login-form"><?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("returning_customer")), 0); ?> <?php } ?> <div class="ty-control-group"> <label for="login_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__filed-label ty-control-group__label cm-required cm-trim<?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { ?> cm-email<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { echo $_smarty_tpl->__("email"); } else { echo $_smarty_tpl->__("username"); } ?> </label> <input type="text" id="login_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="user_login" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_username'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__input testlogin" /> </div> <div class="ty-control-group password-forgot"> <label for="psw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__filed-label ty-control-group__label ty-password-forgot__label cm-required"><?php echo $_smarty_tpl->__("password"); ?> </label><a href="<?php echo htmlspecialchars(fn_url("auth.recover_password"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-password-forgot__a" tabindex="5"><?php echo $_smarty_tpl->__("forgot_password_question"); ?> </a> <input type="password" id="psw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="password" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_password'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__input" maxlength="32" /> </div> <?php echo $_smarty_tpl->getSubTemplate("common/image_verification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option' => "use_for_login", 'align' => "left"), 0); ?> <?php if ($_smarty_tpl->tpl_vars['style']->value == "checkout") { ?> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:login_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:login_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="buttons-container clearfix"> <div class="ty-float-right"> <?php echo $_smarty_tpl->getSubTemplate("buttons/login.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[auth.login]", 'but_role' => "submit"), 0); ?> </div> <div class="ty-login__remember-me"> <label for="remember_me_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__remember-me-label"><input class="checkbox" type="checkbox" name="remember_me" id="remember_me_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" /><?php echo $_smarty_tpl->__("remember_me"); ?> </label> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:login_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </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['style']->value == "popup") { ?> <?php echo Smarty::$_smarty_vars['capture']['login']; ?> <?php } else { ?> <div class="ty-login"> <?php echo Smarty::$_smarty_vars['capture']['login']; ?> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo $_smarty_tpl->__("sign_in"); 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(); } } 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/auth/login_form.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/auth/login_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 { $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "main_login" : $tmp, null, 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("login", null, null); ob_start(); ?> <form name="<?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"> <input type="hidden" name="return_url" value="<?php echo htmlspecialchars(($tmp = @$_REQUEST['return_url']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['style']->value == "checkout") { ?> <div class="checkout-login-form"><?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("returning_customer")), 0); ?> <?php } ?> <div class="ty-control-group"> <label for="login_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__filed-label ty-control-group__label cm-required cm-trim<?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { ?> cm-email<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { echo $_smarty_tpl->__("email"); } else { echo $_smarty_tpl->__("username"); } ?> </label> <input type="text" id="login_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="user_login" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_username'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__input testlogin" /> </div> <div class="ty-control-group password-forgot"> <label for="psw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__filed-label ty-control-group__label ty-password-forgot__label cm-required"><?php echo $_smarty_tpl->__("password"); ?> </label><a href="<?php echo htmlspecialchars(fn_url("auth.recover_password"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-password-forgot__a" tabindex="5"><?php echo $_smarty_tpl->__("forgot_password_question"); ?> </a> <input type="password" id="psw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="password" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_password'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__input" maxlength="32" /> </div> <?php echo $_smarty_tpl->getSubTemplate("common/image_verification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option' => "use_for_login", 'align' => "left"), 0); ?> <?php if ($_smarty_tpl->tpl_vars['style']->value == "checkout") { ?> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:login_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:login_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="buttons-container clearfix"> <div class="ty-float-right"> <?php echo $_smarty_tpl->getSubTemplate("buttons/login.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[auth.login]", 'but_role' => "submit"), 0); ?> </div> <div class="ty-login__remember-me"> <label for="remember_me_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-login__remember-me-label"><input class="checkbox" type="checkbox" name="remember_me" id="remember_me_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" /><?php echo $_smarty_tpl->__("remember_me"); ?> </label> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:login_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </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['style']->value == "popup") { ?> <?php echo Smarty::$_smarty_vars['capture']['login']; ?> <?php } else { ?> <div class="ty-login"> <?php echo Smarty::$_smarty_vars['capture']['login']; ?> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo $_smarty_tpl->__("sign_in"); 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(); } } } }
function content_55ccf2eab791e0_87754991($_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_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.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('enter_your_price', 'contact_us_for_price', 'empty', 'enter_your_price', 'contact_us_for_price', 'empty')); 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['products']->value) { ?> <?php echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['no_sorting']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['show_empty']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl); ?> <?php } else { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl); ?> <?php } ?> <?php echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0); ?> <?php } ?> <?php echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <div class="grid-list testgridlist2"> <?php $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sproducts"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) { $_smarty_tpl->tpl_vars["sproducts"]->_loop = true; $_smarty_tpl->tpl_vars["sproducts"]->iteration++; $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last; $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['sproducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0; 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['smarty']->value['foreach']["sproducts"]['iteration']++; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> ls_grid_coloumns"><?php if ($_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0); $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value]; $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0); if ($_smarty_tpl->tpl_vars['wishlist']->value) { $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0); } ?> <div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> "><?php $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) { $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) { ?> <div class="ty-grid-list__top_info_promo_name"><?php if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) { echo $_smarty_tpl->tpl_vars['product']->value['promo_name']; } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) { echo $_smarty_tpl->tpl_vars['product']->value['top_title']; } ?> </div><?php } ?> </div><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0); $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value]; ?> </div><div class="ty-grid-list__item-name"><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['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) { echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24); ?> ...<?php } else { echo $_smarty_tpl->tpl_vars['product']->value['product']; } ?> </a><?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <span class="item-number"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8'); ?> . </span><?php echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl); } $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); ?> </div><div class="ty-grid-list__item-subtitle"><?php echo $_smarty_tpl->tpl_vars['product']->value['subtitle']; ?> </div><div class="ty-grid-list__price <?php if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) { ?> ty-grid-list__no-price<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value['discount']) { $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) { echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]; } } else { $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value]; } $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value]; ?> </div><div class="ty-grid-list__control"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } ?> <div class="controller_flip"><a href="" onclick="fn_flip_info('<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> ', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) { ?> <div class="button-container"><?php $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value]; ?> </div><?php } ?> </div><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div><div class="product_short_details" id="grid_product_short_details_tpl_<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> " style="display:none;"><div class="grid_product_short_details_title"><?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> </div><div class="grid_product_short_details_short_desc"><?php echo $_smarty_tpl->tpl_vars['product']->value['subtitle']; ?> </div><?php $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) { ?> <div class="grid-list__rating"><?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]; ?> </div><?php } ?> <div class="grid_product_short_details_price"><?php if ($_smarty_tpl->tpl_vars['product']->value['price_range']) { ?> <span class="ty-price<?php if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) { ?> hidden<?php } ?> " id="line_discounted_price_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); 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' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> -<?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> </span><?php } else { if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") { ?> <span class="ty-price<?php if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) { ?> hidden<?php } ?> " id="line_discounted_price_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['details_page']->value) { } 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['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> </span><?php } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) { $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0); ?> <span class="ty-price-curency"><span class="ty-price-curency__title"><?php echo $_smarty_tpl->__("enter_your_price"); ?> :</span><div class="ty-price-curency-input"><?php if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") { echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8'); } ?> <input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="" /></div><?php if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") { echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8'); } ?> </span><?php } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") { ?> <span class="ty-no-price"><?php echo $_smarty_tpl->__("contact_us_for_price"); ?> </span><?php $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0); } } ?> </div><div class="grid_product_short_details_global_options"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][price_calc][total_price_calc]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8'); ?> " /><?php } if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) { $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product_options"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product']->value['product_options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) { $_smarty_tpl->tpl_vars["product_options"]->_loop = true; if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) { ?> <div class="grid_product_short_details_global_option"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> :</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8'); ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_options][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8'); ?> ]"></label><?php } else { if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) { ?> <span class="grid_product_short_details_global_option_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> </span><br/><div class="grid_product_short_details_global_option_variants"><?php if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) { $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) { $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true; if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) { if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) { echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0); } else { ?> <span class="grid_product_short_details_global_option_variant_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php } } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) { ?> <span class="option_variant_continue"> ..... </span><?php } $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0); } } ?> </div><?php } } ?> </div><?php } $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0); } } if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); echo htmlspecialchars($_tmp1, ENT_QUOTES, 'UTF-8'); ?> ]" value="" /><?php } ?> </div><div class="grid_product_short_details_view_product"><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['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } ?> <div class="controller_flip"><a href="" onclick="fn_flip_info('<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> ', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value]; } ?> </div><?php } if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) { $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0); $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8'); 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(); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:products_multicolumns_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:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0); if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) { echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]); } $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows"; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="ty-product-empty"><span class="ty-product-empty__text"><?php echo $_smarty_tpl->__("empty"); ?> </span></div></div><?php } } } } } ?> </div> <?php echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); 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(); } 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="blocks/list_templates/grid_list.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.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['products']->value) { ?> <?php echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['no_sorting']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['show_empty']->value) { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl); ?> <?php } else { ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl); ?> <?php } ?> <?php echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <?php $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0); ?> <?php } ?> <?php echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0); ?> <?php } ?> <div class="grid-list testgridlist2"> <?php $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["sproducts"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) { $_smarty_tpl->tpl_vars["sproducts"]->_loop = true; $_smarty_tpl->tpl_vars["sproducts"]->iteration++; $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last; $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['sproducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0; 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['smarty']->value['foreach']["sproducts"]['iteration']++; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> ls_grid_coloumns"><?php if ($_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0); echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0); $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value]; $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0); if ($_smarty_tpl->tpl_vars['wishlist']->value) { $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['cart_id'], null, 0); } ?> <div class="ty-grid-list__item ty-quick-view-button__wrapper" id="grid_product_default_tpl_<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> "><?php $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['product']->value['cart_id']) { $_smarty_tpl->tpl_vars["is_wishlist"] = new Smarty_variable(true, null, 0); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-grid-list__image"><div class="ty-grid-list__top_info"><?php if ($_smarty_tpl->tpl_vars['product']->value['promo_name'] || $_smarty_tpl->tpl_vars['product']->value['top_title']) { ?> <div class="ty-grid-list__top_info_promo_name"><?php if ($_smarty_tpl->tpl_vars['product']->value['promo_name']) { echo $_smarty_tpl->tpl_vars['product']->value['promo_name']; } elseif ($_smarty_tpl->tpl_vars['product']->value['top_title']) { echo $_smarty_tpl->tpl_vars['product']->value['top_title']; } ?> </div><?php } ?> </div><?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'wishlist' => $_smarty_tpl->tpl_vars['is_wishlist']->value, 'show_gallery' => true, 'ls_is_category_page' => true), 0); $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value]; ?> </div><div class="ty-grid-list__item-name"><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['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"><?php if (strlen($_smarty_tpl->tpl_vars['product']->value['product']) > 24) { echo substr($_smarty_tpl->tpl_vars['product']->value['product'], 0, 24); ?> ...<?php } else { echo $_smarty_tpl->tpl_vars['product']->value['product']; } ?> </a><?php if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") { ?> <span class="item-number"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8'); ?> . </span><?php echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl); } $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); ?> </div><div class="ty-grid-list__item-subtitle"><?php echo $_smarty_tpl->tpl_vars['product']->value['subtitle']; ?> </div><div class="ty-grid-list__price <?php if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) { ?> ty-grid-list__no-price<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value['discount']) { $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) { echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value]; } } else { $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value]; } $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value]; ?> </div><div class="ty-grid-list__control"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } ?> <div class="controller_flip"><a href="" onclick="fn_flip_info('<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> ', 'grid_product_default_tpl', 'grid_product_short_details_tpl');return false;" class="controller_flip_link" >test</a></div><?php if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) { ?> <div class="button-container"><?php $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value]; ?> </div><?php } ?> </div><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div><div class="product_short_details" id="grid_product_short_details_tpl_<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> " style="display:none;"><div class="grid_product_short_details_title"><?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> </div><div class="grid_product_short_details_short_desc"><?php echo $_smarty_tpl->tpl_vars['product']->value['subtitle']; ?> </div><?php $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) { ?> <div class="grid-list__rating"><?php echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]; ?> </div><?php } ?> <div class="grid_product_short_details_price"><?php if ($_smarty_tpl->tpl_vars['product']->value['price_range']) { ?> <span class="ty-price<?php if (!floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) { ?> hidden<?php } ?> " id="line_discounted_price_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); 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' => round($_smarty_tpl->tpl_vars['product']->value['price_range']['min_price']) - $_smarty_tpl->tpl_vars['product']->value['promo_value'] - $_smarty_tpl->tpl_vars['product']->value['price_range']['min_price'] * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100, 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> -<?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => floatval(round($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) - floatval($_smarty_tpl->tpl_vars['product']->value['promo_value']) - floatval(floatval($_smarty_tpl->tpl_vars['product']->value['price_range']['max_price']) * $_smarty_tpl->tpl_vars['product']->value['promo_percentage'] / 100)), 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> </span><?php } else { if (floatval($_smarty_tpl->tpl_vars['product']->value['price']) || $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "P" || $_smarty_tpl->tpl_vars['hide_add_to_cart_button']->value == "Y" && $_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A") { ?> <span class="ty-price<?php if (!floatval($_smarty_tpl->tpl_vars['product']->value['price']) && !$_smarty_tpl->tpl_vars['product']->value['zero_price_action']) { ?> hidden<?php } ?> " id="line_discounted_price_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['details_page']->value) { } 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['price'], 'span_id' => "discounted_price_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, 'class' => "ty-price-num"), 0); ?> </span><?php } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "A" && $_smarty_tpl->tpl_vars['show_add_to_cart']->value) { $_smarty_tpl->tpl_vars["base_currency"] = new Smarty_variable($_smarty_tpl->tpl_vars['currencies']->value[@constant('CART_PRIMARY_CURRENCY')], null, 0); ?> <span class="ty-price-curency"><span class="ty-price-curency__title"><?php echo $_smarty_tpl->__("enter_your_price"); ?> :</span><div class="ty-price-curency-input"><?php if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] != "Y") { echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8'); } ?> <input class="ty-price-curency__input" type="text" size="3" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][price]" value="" /></div><?php if ($_smarty_tpl->tpl_vars['base_currency']->value['after'] == "Y") { echo htmlspecialchars($_smarty_tpl->tpl_vars['base_currency']->value['symbol'], ENT_QUOTES, 'UTF-8'); } ?> </span><?php } elseif ($_smarty_tpl->tpl_vars['product']->value['zero_price_action'] == "R") { ?> <span class="ty-no-price"><?php echo $_smarty_tpl->__("contact_us_for_price"); ?> </span><?php $_smarty_tpl->tpl_vars["show_qty"] = new Smarty_variable(false, null, 0); } } ?> </div><div class="grid_product_short_details_global_options"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <input type="hidden" name="redirect_url" value="index.php?dispatch=wishlist.delete&cart_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /><input type="hidden" name="appearance[show_price_values]" value="1" /><input type="hidden" name="appearance[show_price]" value="1" /><input type="hidden" name="appearance[show_product_options]" value="1" /><input type="hidden" name="appearance[details_page]" value="1" /><input type="hidden" name="appearance[dont_show_points]" value="" /><input type="hidden" name="appearance[show_sku]" value="" /><input type="hidden" name="appearance[show_product_amount]" value="1" /><input type="hidden" name="appearance[show_add_to_cart]" value="1" /><input type="hidden" name="appearance[separate_buttons]" value="1" /><input type="hidden" name="appearance[show_list_buttons]" value="1" /><input type="hidden" name="appearance[but_role]" value="big" /><input type="hidden" name="appearance[quick_view]" value="" /><input type="hidden" name="additional_info[info_type]" value="D" /><input type="hidden" name="additional_info[get_icon]" value="1" /><input type="hidden" name="additional_info[get_detailed]" value="1" /><input type="hidden" name="additional_info[get_additional]" value="" /><input type="hidden" name="additional_info[get_options]" value="1" /><input type="hidden" name="additional_info[get_discounts]" value="1" /><input type="hidden" name="additional_info[get_features]" value="" /><input type="hidden" name="additional_info[get_extra]" value="" /><input type="hidden" name="additional_info[get_taxed_prices]" value="1" /><input type="hidden" name="additional_info[get_for_one_product]" value="1" /><input type="hidden" name="additional_info[detailed_params]" value="1" /><input type="hidden" name="additional_info[features_display_on]" value="C" /><input type="hidden" name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][price_calc][total_price_calc]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8'); ?> " /><?php } if (count($_smarty_tpl->tpl_vars['product']->value['product_options']) > 0) { $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars["product_options"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product_options"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product']->value['product_options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product_options"]->key => $_smarty_tpl->tpl_vars["product_options"]->value) { $_smarty_tpl->tpl_vars["product_options"]->_loop = true; if ($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value < 5) { ?> <div class="grid_product_short_details_global_option"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <label class="ty-control-group__label ty-product-options__item-label cm-required" for="option_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> :</label><label class="ty-control-group__label ty-product-options__item-label label_option_variant_selected"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_name'], ENT_QUOTES, 'UTF-8'); ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['variants'][$_smarty_tpl->tpl_vars['product']->value['selected_options'][$_smarty_tpl->tpl_vars['product_options']->value['option_id']]]['variant_id'], ENT_QUOTES, 'UTF-8'); ?> " name="product_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> ][product_options][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_id'], ENT_QUOTES, 'UTF-8'); ?> ]"></label><?php } else { if (!$_smarty_tpl->tpl_vars['product_options']->value['product_id']) { ?> <span class="grid_product_short_details_global_option_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_options']->value['option_name'], ENT_QUOTES, 'UTF-8'); ?> </span><br/><div class="grid_product_short_details_global_option_variants"><?php if (count($_smarty_tpl->tpl_vars['product_options']->value['variants']) > 0) { $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars["product_option_variant"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_options']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product_option_variant"]->key => $_smarty_tpl->tpl_vars["product_option_variant"]->value) { $_smarty_tpl->tpl_vars["product_option_variant"]->_loop = true; if ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value < 5) { if ($_smarty_tpl->tpl_vars['product_options']->value['option_type'] == 'Y' && count($_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair']) > 0) { echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class' => (string) $_smarty_tpl->tpl_vars['_class']->value . " ty-product-options__image", 'images' => $_smarty_tpl->tpl_vars['product_option_variant']->value['image_pair'], 'obj_id' => "variant_image_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_options']->value['option_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product_option_variant']->value['variant_id']), 0); } else { ?> <span class="grid_product_short_details_global_option_variant_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_option_variant']->value['variant_name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php } } elseif ($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value == 5) { ?> <span class="option_variant_continue"> ..... </span><?php } $_smarty_tpl->tpl_vars["product_option__variants_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option__variants_iterat_nr']->value + 1, null, 0); } } ?> </div><?php } } ?> </div><?php } $_smarty_tpl->tpl_vars["product_option_iterat_nr"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_option_iterat_nr']->value + 1, null, 0); } } if ($_REQUEST['dispatch'] == 'wishlist.view') { ?> <input type="hidden" name="ls_calculate_estimate" value="true" /><input type="hidden" name="full_render" value="Y" /><input type="hidden" name="dispatch[checkout.add..<?php ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); $_tmp2 = ob_get_clean(); echo htmlspecialchars($_tmp2, ENT_QUOTES, 'UTF-8'); ?> ]" value="" /><?php } ?> </div><div class="grid_product_short_details_view_product"><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['wishlist_id']->value . "`"), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title-button">VEZI PRODUSUL</a></div><div class="ty-grid-list__control grid_product_short_details_control_buttons"><?php if ($_REQUEST['dispatch'] == 'wishlist.view') { echo $_smarty_tpl->getSubTemplate("views/products/components/move_to_cart_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } elseif ($_REQUEST['dispatch'] != 'wishlist.view' && $_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') { echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wishlist' => $_smarty_tpl->tpl_vars['wishlist_id']->value, 'item_id' => $_smarty_tpl->tpl_vars['product']->value['cart_id'], 'quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0); } ?> <div class="controller_flip"><a href="" onclick="fn_flip_info('<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['wishlist_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); } ?> ', 'grid_product_short_details_tpl', 'grid_product_default_tpl');return false;" class="controller_flip_link" >test</a></div></div></div><?php $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0); echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value]; } ?> </div><?php } if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) { $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0); $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8'); 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(); } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:products_multicolumns_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:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0); if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) { echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]); } $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows"; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; ?> <div class="ty-column<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="ty-product-empty"><span class="ty-product-empty__text"><?php echo $_smarty_tpl->__("empty"); ?> </span></div></div><?php } } } } } ?> </div> <?php echo $_smarty_tpl->getSubTemplate("common/ls_next_page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['no_pagination']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); 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(); } } }
function content_55dc759df31203_27161610($_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_set_id')) { include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('items', 'for', 'cart_is_empty', 'cart_is_empty', 'view_cart', 'checkout', 'items', 'for', 'cart_is_empty', 'cart_is_empty', 'view_cart', 'checkout')); 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->tpl_vars["dropdown_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['block']->value['snapping_id'], null, 0); $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:cart_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:cart_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-dropdown-box" id="cart_status_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="sw_dropdown_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-dropdown-box__title cm-combination"> <a href="<?php echo htmlspecialchars(fn_url("checkout.cart"), ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:dropdown_title")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:dropdown_title"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_SESSION['cart']['amount']) { ?> <i class="ty-minicart__icon ty-icon-basket filled"></i> <span class="ty-minicart-title ty-hand"><?php echo htmlspecialchars($_SESSION['cart']['amount'], ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("items"); ?> <?php echo $_smarty_tpl->__("for"); ?> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_SESSION['cart']['display_subtotal']), 0); ?> </span> <i class="ty-icon-down-micro"></i> <?php } else { ?> <i class="ty-minicart__icon ty-icon-basket empty"></i> <span class="ty-minicart-title empty-cart ty-hand"><?php echo $_smarty_tpl->__("cart_is_empty"); ?> </span> <i class="ty-icon-down-micro"></i> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:dropdown_title"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </a> </div> <div id="dropdown_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-popup-box ty-dropdown-box__content hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="cm-cart-content <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['products_links_type'] == "thumb") { ?> cm-cart-content-thumb<?php } ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_delete_icons'] == "Y") { ?> cm-cart-content-delete<?php } ?> "> <div class="ty-cart-items"> <?php if ($_SESSION['cart']['amount']) { ?> <ul class="ty-cart-items__list"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:cart_status")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:cart_status"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_cart_products"] = new Smarty_variable(array_reverse($_SESSION['cart']['products'], true), null, 0); ?> <?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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart_product")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart_product"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['product']->value['extra']['parent']) { ?> <li class="ty-cart-items__list-item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart_product_info")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart_product_info"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['products_links_type'] == "thumb") { ?> <div class="ty-cart-items__list-item-image"> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => "40", 'image_height' => "40", 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'no_ids' => true), 0); ?> </div> <?php } ?> <div class="ty-cart-items__list-item-desc"> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']); ?> </a> <p> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> </span><span> x </span><?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' => "price_" . (string) $_smarty_tpl->tpl_vars['key']->value . "_" . (string) $_smarty_tpl->tpl_vars['dropdown_id']->value, 'class' => "none"), 0); ?> </p> </div> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_delete_icons'] == "Y") { ?> <div class="ty-cart-items__list-item-tools cm-cart-item-delete"> <?php if ((!$_smarty_tpl->tpl_vars['runtime']->value['checkout'] || $_smarty_tpl->tpl_vars['force_items_deletion']->value) && !$_smarty_tpl->tpl_vars['product']->value['extra']['exclude_from_calculate']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "checkout.delete.from_status?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'but_meta' => "cm-ajax cm-ajax-full-render", 'but_target_id' => "cart_status*", 'but_role' => "delete", 'but_name' => "delete_cart_item"), 0); ?> <?php } ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart_product_info"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart_product"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:cart_status"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } else { ?> <div class="ty-cart-items__empty ty-center"><?php echo $_smarty_tpl->__("cart_is_empty"); ?> </div> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_bottom_buttons'] == "Y") { ?> <div class="cm-cart-buttons ty-cart-content__buttons buttons-container<?php if ($_SESSION['cart']['amount']) { ?> full-cart<?php } else { ?> hidden<?php } ?> "> <div class="ty-float-left"> <a href="<?php echo htmlspecialchars(fn_url("checkout.cart"), ENT_QUOTES, 'UTF-8'); ?> " rel="nofollow" class="ty-btn ty-btn__secondary"><?php echo $_smarty_tpl->__("view_cart"); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['checkout_redirect'] != "Y") { ?> <div class="ty-float-right"> <a href="<?php echo htmlspecialchars(fn_url("checkout.checkout"), ENT_QUOTES, 'UTF-8'); ?> " rel="nofollow" class="ty-btn ty-btn__primary"><?php echo $_smarty_tpl->__("checkout"); ?> </a> </div> <?php } ?> </div> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <!--cart_status_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:cart_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(); } 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="blocks/cart_content.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/cart_content.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->tpl_vars["dropdown_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['block']->value['snapping_id'], null, 0); $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:cart_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:cart_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-dropdown-box" id="cart_status_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div id="sw_dropdown_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-dropdown-box__title cm-combination"> <a href="<?php echo htmlspecialchars(fn_url("checkout.cart"), ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:dropdown_title")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:dropdown_title"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_SESSION['cart']['amount']) { ?> <i class="ty-minicart__icon ty-icon-basket filled"></i> <span class="ty-minicart-title ty-hand"><?php echo htmlspecialchars($_SESSION['cart']['amount'], ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("items"); ?> <?php echo $_smarty_tpl->__("for"); ?> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_SESSION['cart']['display_subtotal']), 0); ?> </span> <i class="ty-icon-down-micro"></i> <?php } else { ?> <i class="ty-minicart__icon ty-icon-basket empty"></i> <span class="ty-minicart-title empty-cart ty-hand"><?php echo $_smarty_tpl->__("cart_is_empty"); ?> </span> <i class="ty-icon-down-micro"></i> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:dropdown_title"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </a> </div> <div id="dropdown_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-popup-box ty-dropdown-box__content hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="cm-cart-content <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['products_links_type'] == "thumb") { ?> cm-cart-content-thumb<?php } ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_delete_icons'] == "Y") { ?> cm-cart-content-delete<?php } ?> "> <div class="ty-cart-items"> <?php if ($_SESSION['cart']['amount']) { ?> <ul class="ty-cart-items__list"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:cart_status")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:cart_status"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_cart_products"] = new Smarty_variable(array_reverse($_SESSION['cart']['products'], true), null, 0); ?> <?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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart_product")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart_product"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['product']->value['extra']['parent']) { ?> <li class="ty-cart-items__list-item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart_product_info")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:minicart_product_info"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['products_links_type'] == "thumb") { ?> <div class="ty-cart-items__list-item-image"> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_width' => "40", 'image_height' => "40", 'images' => $_smarty_tpl->tpl_vars['product']->value['main_pair'], 'no_ids' => true), 0); ?> </div> <?php } ?> <div class="ty-cart-items__list-item-desc"> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']); ?> </a> <p> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> </span><span> x </span><?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' => "price_" . (string) $_smarty_tpl->tpl_vars['key']->value . "_" . (string) $_smarty_tpl->tpl_vars['dropdown_id']->value, 'class' => "none"), 0); ?> </p> </div> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_delete_icons'] == "Y") { ?> <div class="ty-cart-items__list-item-tools cm-cart-item-delete"> <?php if ((!$_smarty_tpl->tpl_vars['runtime']->value['checkout'] || $_smarty_tpl->tpl_vars['force_items_deletion']->value) && !$_smarty_tpl->tpl_vars['product']->value['extra']['exclude_from_calculate']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "checkout.delete.from_status?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['r_url']->value, 'but_meta' => "cm-ajax cm-ajax-full-render", 'but_target_id' => "cart_status*", 'but_role' => "delete", 'but_name' => "delete_cart_item"), 0); ?> <?php } ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart_product_info"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart_product"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:cart_status"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } else { ?> <div class="ty-cart-items__empty ty-center"><?php echo $_smarty_tpl->__("cart_is_empty"); ?> </div> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['display_bottom_buttons'] == "Y") { ?> <div class="cm-cart-buttons ty-cart-content__buttons buttons-container<?php if ($_SESSION['cart']['amount']) { ?> full-cart<?php } else { ?> hidden<?php } ?> "> <div class="ty-float-left"> <a href="<?php echo htmlspecialchars(fn_url("checkout.cart"), ENT_QUOTES, 'UTF-8'); ?> " rel="nofollow" class="ty-btn ty-btn__secondary"><?php echo $_smarty_tpl->__("view_cart"); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['checkout_redirect'] != "Y") { ?> <div class="ty-float-right"> <a href="<?php echo htmlspecialchars(fn_url("checkout.checkout"), ENT_QUOTES, 'UTF-8'); ?> " rel="nofollow" class="ty-btn ty-btn__primary"><?php echo $_smarty_tpl->__("checkout"); ?> </a> </div> <?php } ?> </div> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:minicart"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <!--cart_status_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:cart_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } }
function content_55d31250106d44_89089488($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.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('edit', 'gift_certificate', 'remove', 'gift_certificate', 'gift_cert_to', 'gift_cert_from', 'amount', 'send_via', 'email', 'postal_mail', 'free_products', 'remove', 'price', 'qty', 'discount', 'tax', 'subtotal', 'price_summary', 'free', 'free', 'free', 'edit', 'gift_certificate', 'remove', 'gift_certificate', 'gift_cert_to', 'gift_cert_from', 'amount', 'send_via', 'email', 'postal_mail', 'free_products', 'remove', 'price', 'qty', 'discount', 'tax', 'subtotal', 'price_summary', 'free', 'free', 'free')); 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['cart']->value['gift_certificates']) { ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["gift"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["gift"]->_loop = false; $_smarty_tpl->tpl_vars["gift_key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['gift_certificates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["gift"]->key => $_smarty_tpl->tpl_vars["gift"]->value) { $_smarty_tpl->tpl_vars["gift"]->_loop = true; $_smarty_tpl->tpl_vars["gift_key"]->value = $_smarty_tpl->tpl_vars["gift"]->key; $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['gift']->value['object_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['gift_key']->value : $tmp, null, 0); if (!Smarty::$_smarty_vars['capture']['prods']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("prods", null, null); ob_start(); ?> Y<?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(); } } ?> <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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a href="<?php echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <div class="ty-mtb-xs ty-center"><?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value, 'but_role' => "text"), 0); ?> </div> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> <?php } ?> <!--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%;"> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a href="<?php echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"> <?php echo $_smarty_tpl->__("gift_certificate"); ?> </a> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-delete-big" href="<?php echo htmlspecialchars(fn_url("gift_certificates.delete?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), 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 } ?> <?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 } ?> <?php } else { ?> <strong><?php echo $_smarty_tpl->__("gift_certificate"); ?> </strong> <?php } ?> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("gift_cert_to"); ?> :</label><span class="ty-control-group__item"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift']->value['recipient'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("gift_cert_from"); ?> :</label><span class="ty-control-group__item"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift']->value['sender'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("amount"); ?> :</label><span class="ty-control-group__item"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['amount']), 0); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("send_via"); ?> :</label><span class="ty-control-group__item"><?php if ($_smarty_tpl->tpl_vars['gift']->value['send_via'] == "E") { echo $_smarty_tpl->__("email"); } else { echo $_smarty_tpl->__("postal_mail"); } ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['gift']->value['products'] && $_smarty_tpl->tpl_vars['addons']->value['gift_certificates']['free_products_allow'] == "Y" && !$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a id="sw_gift_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination ty-cart-content__detailed-link"><?php echo $_smarty_tpl->__("free_products"); ?> </a> <div id="gift_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="hidden"> <div class="ty-cart-content-products"> <div class="ty-caret-info"><span class="ty-caret-outer"></span> <span class="ty-caret-inner"></span></div> <?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['products'][$_smarty_tpl->tpl_vars['key']->value]['extra']['parent']['certificate'] == $_smarty_tpl->tpl_vars['gift_key']->value) { ?> <div class="ty-cart-content-products__item"> <div> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> "><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product']->value['product']), 70, "...", true); ?> </a> <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value == true) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-delete-big" href="<?php echo htmlspecialchars(fn_url("checkout.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="cart_items,checkout_totals,cart_status*,checkout_steps" title="<?php echo $_smarty_tpl->__("remove"); ?> "><i class="ty-delete-big__icon ty-icon-cancel-circle"></i></a> <?php echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => fn_get_selected_product_options_info($_smarty_tpl->tpl_vars['cart']->value['products'][$_smarty_tpl->tpl_vars['key']->value]['product_options']), 'fields_prefix' => "cart_products[" . (string) $_smarty_tpl->tpl_vars['key']->value . "][product_options]"), 0); ?> <?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(); $_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); ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][parent][certificate]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("price"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("qty"); ?> </strong> <input type="text" size="3" 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-input-text-short" <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y") { ?> readonly="readonly"<?php } ?> /> <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'); ?> " /> </div> <?php if ($_smarty_tpl->tpl_vars['cart']->value['use_discount']) { ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("discount"); ?> </strong> <span class="ty-control-group__item"> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { 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']), 0); } else { ?> -<?php } ?> </span> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("tax"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> <?php } ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("subtotal"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> </div> <?php } ?> <?php } ?> </div> <div class="ty-control-group ty-float-right"> <strong><?php echo $_smarty_tpl->__("price_summary"); ?> : </strong> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "ty-price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> </div> <div class="clearfix"></div> </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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "ty-sub-price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> <!--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"> </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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> <!--price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> </tr> <?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(); } 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="addons/gift_certificates/hooks/checkout/extra_list.post.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/gift_certificates/hooks/checkout/extra_list.post.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['cart']->value['gift_certificates']) { ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["gift"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["gift"]->_loop = false; $_smarty_tpl->tpl_vars["gift_key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['cart']->value['gift_certificates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["gift"]->key => $_smarty_tpl->tpl_vars["gift"]->value) { $_smarty_tpl->tpl_vars["gift"]->_loop = true; $_smarty_tpl->tpl_vars["gift_key"]->value = $_smarty_tpl->tpl_vars["gift"]->key; $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['gift']->value['object_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['gift_key']->value : $tmp, null, 0); if (!Smarty::$_smarty_vars['capture']['prods']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("prods", null, null); ob_start(); ?> Y<?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(); } } ?> <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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a href="<?php echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> </a> <div class="ty-mtb-xs ty-center"><?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value, 'but_role' => "text"), 0); ?> </div> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0); ?> <?php } ?> <!--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%;"> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a href="<?php echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value), ENT_QUOTES, 'UTF-8'); ?> " class="ty-cart-content__product-title"> <?php echo $_smarty_tpl->__("gift_certificate"); ?> </a> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-delete-big" href="<?php echo htmlspecialchars(fn_url("gift_certificates.delete?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), 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 } ?> <?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 } ?> <?php } else { ?> <strong><?php echo $_smarty_tpl->__("gift_certificate"); ?> </strong> <?php } ?> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("gift_cert_to"); ?> :</label><span class="ty-control-group__item"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift']->value['recipient'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("gift_cert_from"); ?> :</label><span class="ty-control-group__item"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift']->value['sender'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("amount"); ?> :</label><span class="ty-control-group__item"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['amount']), 0); ?> </span> </div> <div class="ty-control-group"> <label class="ty-control-group__label"><?php echo $_smarty_tpl->__("send_via"); ?> :</label><span class="ty-control-group__item"><?php if ($_smarty_tpl->tpl_vars['gift']->value['send_via'] == "E") { echo $_smarty_tpl->__("email"); } else { echo $_smarty_tpl->__("postal_mail"); } ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['gift']->value['products'] && $_smarty_tpl->tpl_vars['addons']->value['gift_certificates']['free_products_allow'] == "Y" && !$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { ?> <a id="sw_gift_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination ty-cart-content__detailed-link"><?php echo $_smarty_tpl->__("free_products"); ?> </a> <div id="gift_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " class="hidden"> <div class="ty-cart-content-products"> <div class="ty-caret-info"><span class="ty-caret-outer"></span> <span class="ty-caret-inner"></span></div> <?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['products'][$_smarty_tpl->tpl_vars['key']->value]['extra']['parent']['certificate'] == $_smarty_tpl->tpl_vars['gift_key']->value) { ?> <div class="ty-cart-content-products__item"> <div> <a href="<?php echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> "><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product']->value['product']), 70, "...", true); ?> </a> <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value == true) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> ty-delete-big" href="<?php echo htmlspecialchars(fn_url("checkout.delete?cart_id=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="cart_items,checkout_totals,cart_status*,checkout_steps" title="<?php echo $_smarty_tpl->__("remove"); ?> "><i class="ty-delete-big__icon ty-icon-cancel-circle"></i></a> <?php echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => fn_get_selected_product_options_info($_smarty_tpl->tpl_vars['cart']->value['products'][$_smarty_tpl->tpl_vars['key']->value]['product_options']), 'fields_prefix' => "cart_products[" . (string) $_smarty_tpl->tpl_vars['key']->value . "][product_options]"), 0); ?> <?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(); $_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); ?> <input type="hidden" name="cart_products[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][extra][parent][certificate]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gift_key']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("price"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("qty"); ?> </strong> <input type="text" size="3" 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-input-text-short" <?php if ($_smarty_tpl->tpl_vars['product']->value['is_edp'] == "Y") { ?> readonly="readonly"<?php } ?> /> <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'); ?> " /> </div> <?php if ($_smarty_tpl->tpl_vars['cart']->value['use_discount']) { ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("discount"); ?> </strong> <span class="ty-control-group__item"> <?php if (floatval($_smarty_tpl->tpl_vars['product']->value['discount'])) { 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']), 0); } else { ?> -<?php } ?> </span> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['taxes'] && $_smarty_tpl->tpl_vars['settings']->value['General']['tax_calculation'] != "subtotal") { ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("tax"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> <?php } ?> <div class="ty-control-group"> <strong class="ty-control-group__label"><?php echo $_smarty_tpl->__("subtotal"); ?> </strong> <span class="ty-control-group__item"> <?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']), 0); ?> </span> </div> </div> <?php } ?> <?php } ?> </div> <div class="ty-control-group ty-float-right"> <strong><?php echo $_smarty_tpl->__("price_summary"); ?> : </strong> <?php if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "ty-price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> </div> <div class="clearfix"></div> </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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "ty-sub-price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> <!--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"> </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 if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['gift']->value['display_subtotal'], 'class' => "price"), 0); } else { ?> <span class="ty-price"><?php echo $_smarty_tpl->__("free"); ?> </span><?php } ?> <!--price_subtotal_update_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></td> </tr> <?php } ?> <?php } } }
function content_55db8c5b6b8106_59561402($_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_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('file_is_too_large', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'text_select_file', 'upload_another_file', 'local', 'server', 'url', 'text_allowed_to_upload_file_extension')); $_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(ini_get("post_max_size"), null, 0); $_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['post_max_size']->value) === null || $tmp === '' ? ini_get("hhvm.server.max_post_size") : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(ini_get("upload_max_filesize"), null, 0); $_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['upload_max_filesize']->value) === null || $tmp === '' ? ini_get("hhvm.server.upload.upload_max_file_size") : $tmp, null, 0); ?> <?php $_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(_, $) { $.extend(_, { post_max_size_bytes: '<?php echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['post_max_size']->value), ENT_QUOTES, 'UTF-8'); ?> ', files_upload_max_size_bytes: '<?php echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['upload_max_filesize']->value), ENT_QUOTES, 'UTF-8'); ?> ', post_max_size_mbytes: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post_max_size']->value, ENT_QUOTES, 'UTF-8'); ?> ', files_upload_max_size_mbytes: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['upload_max_filesize']->value, ENT_QUOTES, 'UTF-8'); ?> ', allowed_file_path: '<?php echo htmlspecialchars(fn_get_http_files_dir_path(), ENT_QUOTES, 'UTF-8'); ?> ' }); _.tr({ file_is_too_large: '<?php echo strtr($_smarty_tpl->__("file_is_too_large"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }); }(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 echo smarty_function_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl); ?> <?php ob_start(); echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['var_name']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["id_var_name"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . $_tmp1, null, 0); ?> <div class="fileuploader cm-field-container"> <input type="hidden" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['images']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); } ?> " /> <?php $_smarty_tpl->tpl_vars["image"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["image"]->_loop = false; $_smarty_tpl->tpl_vars["image_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["image"]->key => $_smarty_tpl->tpl_vars["image"]->value) { $_smarty_tpl->tpl_vars["image"]->_loop = true; $_smarty_tpl->tpl_vars["image_id"]->value = $_smarty_tpl->tpl_vars["image"]->key; ?> <div class="upload-file-section cm-uploaded-image" id="message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8'); ?> " title=""> <p class="cm-fu-file"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['image']->value['location'] == "cart") { ?> <?php $_smarty_tpl->tpl_vars["delete_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".delete_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "&redirect_mode=cart", null, 0); ?> <?php $_smarty_tpl->tpl_vars["download_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".get_custom_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value, null, 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['image']->value['is_image']) { ?> <a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['detailed']), ENT_QUOTES, 'UTF-8'); ?> "><img src="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['thumbnail']), ENT_QUOTES, 'UTF-8'); ?> " border="0" /></a><br /> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:uploaded_files")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['delete_link']->value) { ?> <a class="cm-ajax cm-post" href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['delete_link']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php } if (!($_smarty_tpl->tpl_vars['po']->value['required'] == "Y" && count($_smarty_tpl->tpl_vars['images']->value) == 1)) { ?> <i id="clean_selection_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " onclick="Tygh.fileuploader.clean_selection(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> Tygh.fileuploader.toggle_links('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', 'show');<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="icon-remove-sign cm-tooltip hand"></i> <?php } if ($_smarty_tpl->tpl_vars['delete_link']->value) { ?> </a><?php } ?> <span><?php if ($_smarty_tpl->tpl_vars['download_link']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['download_link']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['name'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['download_link']->value) { ?> </a><?php } ?> </span> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </p> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:uploader")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:uploader"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div id="file_uploader_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="upload-file-section" id="message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " title=""> <p class="cm-fu-file hidden"><i id="clean_selection_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " onclick="Tygh.fileuploader.clean_selection(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> Tygh.fileuploader.toggle_links(this.id, 'show');<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="icon-remove-sign cm-tooltip hand"></i> <span></span></p> <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> <p class="cm-fu-no-file <?php if ($_smarty_tpl->tpl_vars['images']->value) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("text_select_file"); ?> </p><?php } ?> </div> <input type="hidden" name="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['image_name']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['image_name']->value, ENT_QUOTES, 'UTF-8'); } ?> " id="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> class="cm-image-field"<?php } ?> /><input type="hidden" name="type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['image_name']->value) { ?> local<?php } ?> " id="type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> class="cm-image-field"<?php } ?> /><div class="btn-group <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y" && $_smarty_tpl->tpl_vars['images']->value) { ?> hidden<?php } ?> " id="link_container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="upload-file-local"><a class="btn"><span data-ca-multi="Y" <?php if (!$_smarty_tpl->tpl_vars['images']->value) { ?> class="hidden"<?php } ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_another_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_another_file") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span><span data-ca-multi="N" <?php if ($_smarty_tpl->tpl_vars['images']->value) { ?> class="hidden"<?php } ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("local") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span></a><div class="image-selector"><label for=""><input type="file" name="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " id="local_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " onchange="Tygh.fileuploader.show_loader(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") { ?> Tygh.fileuploader.check_image(this.id);<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="file<?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> cm-image-field<?php } ?> " data-ca-empty-file="" onclick="Tygh.$(this).removeAttr('data-ca-empty-file');"></label></div></div><?php if (!($_smarty_tpl->tpl_vars['hide_server']->value || defined("RESTRICTED_ADMIN"))) { ?> <a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="server_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("server"); ?> </a><?php } ?> <a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="url_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("url"); ?> </a><?php if ($_smarty_tpl->tpl_vars['hidden_name']->value) { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_value']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> </div><?php if ($_smarty_tpl->tpl_vars['allowed_ext']->value) { ?> <p class="mute micro-note"><?php echo $_smarty_tpl->__("text_allowed_to_upload_file_extension", array("[ext]" => $_smarty_tpl->tpl_vars['allowed_ext']->value)); ?> </p><?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:uploader"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div><!--fileuploader--><?php }
function content_55db8f5815d397_15312311($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('saved_search', 'all', 'more', 'more', 'delete', 'new_saved_search')); $_smarty_tpl->tpl_vars["views"] = new Smarty_variable(fn_get_views($_smarty_tpl->tpl_vars['view_type']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["max_items"] = new Smarty_variable("4", null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "advanced_search:views")); $_block_repeat = true; echo smarty_block_hook(array('name' => "advanced_search:views"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['views']->value) { ?> <div class="sidebar-row" id="views"> <h6><?php echo $_smarty_tpl->__("saved_search"); ?> </h6> <ul class="nav nav-list saved-search"> <?php if ($_smarty_tpl->tpl_vars['views']->value) { ?> <li <?php if (!$_smarty_tpl->tpl_vars['search']->value['view_id']) { ?> class="active"<?php } ?> > <a href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . ".reset_view?" . (string) $_smarty_tpl->tpl_vars['view_suffix']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("all"); ?> </a> </li> <?php $_smarty_tpl->tpl_vars['view'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['view']->_loop = false; $_from = $_smarty_tpl->tpl_vars['views']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['view']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['total'] = $_smarty_tpl->tpl_vars['view']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['view']->key => $_smarty_tpl->tpl_vars['view']->value) { $_smarty_tpl->tpl_vars['view']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['index']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['views']['index'] == $_smarty_tpl->tpl_vars['max_items']->value) { ?> <?php $_smarty_tpl->tpl_vars['s_id'] = new Smarty_variable(sprintf("saved_searches_%s", fn_crc32($_smarty_tpl->tpl_vars['dispatch']->value)), null, 0); ?> <li> <span class="more hand"> <a id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="collapsed cm-combination cm-save-state <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("more"); ?> <i class="exicon-collapse"></i></a> <a id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination cm-save-state <?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("more"); ?> <i class="exicon-collapse"></i></a> </span> </li> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "> <ul class="nav nav-list"> <?php } ?> <li <?php if ($_smarty_tpl->tpl_vars['view']->value['view_id'] == $_smarty_tpl->tpl_vars['search']->value['view_id']) { ?> class="active"<?php } ?> > <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "view_id", "new_view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["redirect_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <a href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . ".delete_view?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['redirect_current_url']->value), ENT_QUOTES, 'UTF-8'); ?> " class="cm-confirm cm-tooltip icon-trash" title="<?php echo $_smarty_tpl->__("delete"); ?> "></a> <a class="cm-view-name" data-ca-view-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['view_id'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . "?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&" . (string) $_smarty_tpl->tpl_vars['view_suffix']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['views']['total'] > $_smarty_tpl->tpl_vars['max_items']->value) { ?> </ul> </li> <?php } ?> <?php } ?> <li class="last"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("new_saved_search"), 'but_role' => "text", 'but_meta' => "text-button cm-dialog-opener", 'but_target_id' => "adv_search"), 0); ?> </li> </ul> </div> <hr> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "advanced_search:views"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); }
function content_55d2eb1609cba6_06057959($_smarty_tpl) { 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', 'user', 'type', 'action', 'all', 'all')); ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="logs_form" method="get"> <input type="hidden" name="object" value="<?php echo htmlspecialchars($_REQUEST['object'], ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/period_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('period' => $_smarty_tpl->tpl_vars['search']->value['period'], 'extra' => '', 'display' => "form", 'button' => "false"), 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->_capture_stack[0][] = array("advanced_search", null, null); ob_start(); ?> <div class="group form-horizontal"> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("user"); ?> :</label> <div class="controls"> <input type="text" name="q_user" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q_user'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("type"); ?> /<?php echo $_smarty_tpl->__("action"); ?> :</label> <div class="controls"> <select id="q_type" name="q_type" onchange="fn_logs_build_options();"> <option value=""<?php if (!$_smarty_tpl->tpl_vars['search']->value['q_type']) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("all"); ?> </option> <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['log_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['search']->value['q_type'] == $_smarty_tpl->tpl_vars['o']->value['type']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <select id="q_action" class="hidden" name="q_action"> </select> </div> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "logs:search_form")); $_block_repeat = true; echo smarty_block_hook(array('name' => "logs:search_form"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "logs:search_form"), $_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/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('advanced_search' => Smarty::$_smarty_vars['capture']['advanced_search'], 'simple_search' => Smarty::$_smarty_vars['capture']['simple_search'], 'dispatch' => "logs.manage", 'view_type' => "logs"), 0); ?> <script type="text/javascript"> var types = new Array(); <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['log_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; ?> types['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> '] = new Array(); <?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['o']->value['actions']; 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; ?> types['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> ']['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> '] = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> '; <?php } ?> <?php } ?> Tygh.tr('all', '<?php echo strtr($_smarty_tpl->__("all"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); function fn_logs_build_options(current_action) { var elm_t = Tygh.$('#q_type'); var elm_a = Tygh.$('#q_action'); elm_a.html('<option value="">' + Tygh.tr('all') + '</option>'); for (var action in types[elm_t.val()]) { elm_a.append('<option value="' + action + '"' + (current_action && current_action == action ? ' selected="selected"' : '') + '>' + types[elm_t.val()][action] + '</option>'); } Tygh.$('#q_action').toggleBy((Tygh.$('option', elm_a).length == 1)); } Tygh.$(document).ready(function() <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> fn_logs_build_options('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q_action'], ENT_QUOTES, 'UTF-8'); ?> '); <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); </script> </form> </div><?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_55ccec9bb30187_53027225($_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_function_render_location')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.render_location.php'; } fn_preload_lang_vars(array('on_site_template_editing', 'on_site_text_editing')); ?> <!DOCTYPE html> <html lang="<?php echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> "> <head> <?php $_smarty_tpl->_capture_stack[0][] = array("title", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:title")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:title"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_title']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_title']->value, ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->_loop = false; $_from = $_smarty_tpl->tpl_vars['breadcrumbs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['i']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['i']->iteration = 0; $_smarty_tpl->tpl_vars['i']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value) { $_smarty_tpl->tpl_vars['i']->_loop = true; $_smarty_tpl->tpl_vars['i']->iteration++; $_smarty_tpl->tpl_vars['i']->index++; $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->index === 0; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['first'] = $_smarty_tpl->tpl_vars['i']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['last'] = $_smarty_tpl->tpl_vars['i']->last; ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['first']) { echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['i']->value['title']), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['last']) { ?> :: <?php } } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_page_title']->value && $_smarty_tpl->tpl_vars['location_data']->value['title']) { if (count($_smarty_tpl->tpl_vars['breadcrumbs']->value) > 1) { ?> - <?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['location_data']->value['title'], ENT_QUOTES, 'UTF-8'); } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:title"), $_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(); } ?> <title><?php echo trim(preg_replace('!\\s+!u', ' ', Smarty::$_smarty_vars['capture']['title'])); ?> </title> <?php echo $_smarty_tpl->getSubTemplate("meta.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['favicon']['image']['image_path'], ENT_QUOTES, 'UTF-8'); ?> " rel="shortcut icon" /> <?php echo $_smarty_tpl->getSubTemplate("common/styles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('include_dropdown' => true), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <link rel="stylesheet" href="/../../../../js/lib/malihu-custom-scrollbar-plugin-3.0.8/jquery.mCustomScrollbar.min.css" /> </head> <body> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_template_editing"), 'href' => "customization.disable_mode?type=design"), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_text_editing"), 'href' => "customization.disable_mode?type=translation"), 0); ?> <?php } ?> <?php if (defined("THEMES_PANEL")) { ?> <?php echo $_smarty_tpl->getSubTemplate("demo_theme_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <div class="ty-tygh <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> te-mode<?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> ty-top-panel-padding<?php } ?> " id="tygh_container"> <?php echo $_smarty_tpl->getSubTemplate("common/loading_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/notification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="ty-helper-container" id="tygh_main_container"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_render_location(array(), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_main_container--></div> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/translate_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/template_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/theme_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:footer")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:footer"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:footer"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_container--></div> <script type="text/javascript"> window.$zopim || (function(d, s) { var z = $zopim = function(c) { z._.push(c) }, $ = z.s = d.createElement(s), e = d.getElementsByTagName(s)[0]; z.set = function(o) { z.set. _.push(o) }; z._ = []; z.set._ = []; $.async = !0; $.setAttribute('charset', 'utf-8'); $.src = '//cdn.zopim.com/?N6m1TZ5Vu8PPo8Ed3HHKF4EkxhxKBHtF'; z.t = +new Date; $. type = 'text/javascript'; e.parentNode.insertBefore($, e) })(document, 'script'); </script> <script type='text/javascript'> $(document).ready(function() { console.log('limba selectata'+$('#ls_frontend_language').text()) if (!$("#sw_dropdown_269").length) { var ls_recently_name_url=fn_url('index.ls_recently_viewed_name'); console.log('ls_recently_name_url='+ls_recently_name_url); var request0 = $.ajax({ url: ls_recently_name_url, dataType: 'json', type: 'POST' }); request0.done(function (msg) { // msg = jQuery.parseJSON(msg); // only works with msg.text! msg.text=msg.text.replace('Array',''); msg = jQuery.parseJSON(msg.text); // console.log('the recently viewed block name is ',msg.ro); // }); if($('#ls_frontend_language').text()=='ro') { $(".span2.demo-store-grid").append('<div class="ty-dropdown-box footer_window recently_seen ty-float-left"><div id="sw_dropdown_269" class="ty-dropdown-box__title cm-combination closed"> \ <a>'+msg.ro+'</a> \ </div> \ <div id="dropdown_269" class="cm-popup-box ty-dropdown-box__content" style="display: none" > \ <div class="botmenu_wrapper ls_menu_resize"> \ <div class="ls_upper_recent"> \ <div id="ls_total_bijuterie" class="ls_total_bijuterie"></div> \ <div class="ls_recent_title">RECENT VIZIONATE</div> \ <div class="ls_close_window"> \ <a href="#"><span class="ls_footer_close_text">ÎNCHIDE</span></a> \ </div> \ </div> \ <div class="ls_recent_carousel"> \ <div class="0_recente">Nu ati vizualizat recent produse</div> \ </div> \ </div> \ </div> \ </div></div>'); } else { $(".span2.demo-store-grid").append('<div class="ty-dropdown-box footer_window recently_seen ty-float-left"><div id="sw_dropdown_269" class="ty-dropdown-box__title cm-combination closed"> \ <a>'+msg.en+'</a> \ </div> \ <div id="dropdown_269" class="cm-popup-box ty-dropdown-box__content" style="display: none" > \ <div class="botmenu_wrapper ls_menu_resize"> \ <div class="ls_upper_recent"> \ <div id="ls_total_bijuterie" class="ls_total_bijuterie"></div> \ <div class="ls_recent_title">RECENTLY VIEWED</div> \ <div class="ls_close_window"> \ <a href="#"><span class="ls_footer_close_text">CLOSE</span></a> \ </div> \ </div> \ <div class="ls_recent_carousel"> \ <div class="0_recente">You have not recently viewed any products.</div> \ </div> \ </div> \ </div> \ </div></div>'); } //display/remove footer link menu's text ls_checkWidth(); }); } //display/remove footer link menu's text ls_checkWidth(); //generate no of favorites span $("#sw_dropdown_279 > a").append("<span id='ls_preferate_no2'>"); //no of recently viewed products var no_li_recent = $('.recently_seen li').length; var items_lang = ""; if(Tygh.cart_language == "ro"){ items_lang = " produse"; }else{ items_lang = " products"; } if (no_li_recent != '1') { $('#ls_total_bijuterie').append('Total: ' + no_li_recent + items_lang); } else { $('#ls_total_bijuterie').append('Total: ' + no_li_recent + items_lang); } if (no_li_recent != '0') { $('#sw_dropdown_269 > a').append(' (' + no_li_recent + ')'); } //display number of favorites products in footer var ls_preferate_no = $('#ls_preferate_no').html(); if (ls_preferate_no != '0') { $('#ls_preferate_no2').append(' (' + ls_preferate_no + ')'); } //hide recent preferate sidebox // $('#sidebox_25').siblings().hide(); // $('#sidebox_25').hide(); } ); </script> <script type='text/javascript'> $(document).ready(function() { function bresize() { var footerDropdownZone = ($(window).width() - 1200) / 2; $('.header_window').children('.ty-dropdown-box__content').css('left', footerDropdownZone); } ; bresize(); $(window).resize(function() { var footerDropdownZone = ($(window).width() - 1200) / 2; $('.header_window').children('.ty-dropdown-box__content').css('left', footerDropdownZone); }); }); </script> <!--script type='text/javascript' src='/../../../../js/carousel/carousel_13.js'></script--> <script type='text/javascript' src='/../../../../js/carousel/SliderOpb.js'></script> <script type='text/javascript' src='/../../../../js/carousel/initSliderOpb.js'></script> <!--script type='text/javascript' src='/../../../../js/carousel/owl.carousel.js'></script--> <script type='text/javascript' src='/../../../../js/carousel/change_fav_footer.js'></script> <script type='text/javascript' src='/../../../../js/ls_js/ls_user_updates.js'></script> <script type='text/javascript' src='/../../../../js/carousel/carousel_cart.js'></script> <script type='text/javascript' src='/../../../../js/jquery.bxslider/jquery.bxslider.min.js'></script> <script type='text/javascript' src='/../../../../js/search_modal/bootstrap.min.js'></script> </body> </html> <?php }
function content_55dc759c7ba823_67022274($_smarty_tpl) { if (!is_callable('smarty_block_styles')) { include '/var/www/html/market/app/functions/smarty_plugins/block.styles.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_style')) { include '/var/www/html/market/app/functions/smarty_plugins/function.style.php'; } if (!is_callable('smarty_function_set_id')) { include '/var/www/html/market/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(); $_smarty_tpl->smarty->_tag_stack[] = array('styles', array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value)); $_block_repeat = true; echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl); ?> <?php echo smarty_function_style(array('src' => "tygh/responsive.less"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo smarty_function_style(array('src' => "tygh/design_mode.less"), $_smarty_tpl); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> <?php echo smarty_function_style(array('src' => "tygh/theme_editor.less"), $_smarty_tpl); ?> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:styles"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); 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/styles.tpl" id="<?php echo smarty_function_set_id(array('name' => "common/styles.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->smarty->_tag_stack[] = array('styles', array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value)); $_block_repeat = true; echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:styles")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:styles"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_style(array('src' => "styles.less"), $_smarty_tpl); ?> <?php echo smarty_function_style(array('src' => "tygh/responsive.less"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo smarty_function_style(array('src' => "tygh/design_mode.less"), $_smarty_tpl); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> <?php echo smarty_function_style(array('src' => "tygh/theme_editor.less"), $_smarty_tpl); ?> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:styles"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_styles(array('use_scheme' => true, 'reflect_less' => $_smarty_tpl->tpl_vars['reflect_less']->value), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); } }
function content_55dc759c6789b0_17472244($_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_set_id')) { include '/var/www/html/market/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(); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:meta")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:meta"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['display_base_href']->value) { ?> <base href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_location'], ENT_QUOTES, 'UTF-8'); ?> /" /> <?php } ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo htmlspecialchars(@constant('CHARSET'), ENT_QUOTES, 'UTF-8'); ?> " data-ca-mode="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_trigger']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:meta_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:meta_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <meta name="description" content="<?php echo htmlspecialchars(($tmp = @html_entity_decode($_smarty_tpl->tpl_vars['meta_description']->value, @constant('ENT_COMPAT'), "UTF-8")) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:meta_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <meta name="keywords" content="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['meta_keywords']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_keywords'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:meta"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->tpl_vars['location_data']->value['custom_html']; ?> <?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="meta.tpl" id="<?php echo smarty_function_set_id(array('name' => "meta.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->smarty->_tag_stack[] = array('hook', array('name' => "index:meta")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:meta"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['display_base_href']->value) { ?> <base href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_location'], ENT_QUOTES, 'UTF-8'); ?> /" /> <?php } ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo htmlspecialchars(@constant('CHARSET'), ENT_QUOTES, 'UTF-8'); ?> " data-ca-mode="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_trigger']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:meta_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:meta_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <meta name="description" content="<?php echo htmlspecialchars(($tmp = @html_entity_decode($_smarty_tpl->tpl_vars['meta_description']->value, @constant('ENT_COMPAT'), "UTF-8")) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_description'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:meta_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <meta name="keywords" content="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['meta_keywords']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_keywords'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:meta"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->tpl_vars['location_data']->value['custom_html']; ?> <?php } }
function content_55d2f42f18b185_25130093($_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_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('type_comments_here', 'type_comments_here')); 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->smarty->_tag_stack[] = array('hook', array('name' => "checkout:notes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:notes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-customer-notes"> <p class="ty-customer-notes__title"><?php echo $_smarty_tpl->__("type_comments_here"); ?> </p> <textarea class="ty-customer-notes__text" name="customer_notes" cols="60" rows="3"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['notes'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:notes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); 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/customer_notes.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/checkout/components/customer_notes.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->smarty->_tag_stack[] = array('hook', array('name' => "checkout:notes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:notes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-customer-notes"> <p class="ty-customer-notes__title"><?php echo $_smarty_tpl->__("type_comments_here"); ?> </p> <textarea class="ty-customer-notes__text" name="customer_notes" cols="60" rows="3"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['notes'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:notes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); } }
function content_55d3125033b7a9_87422872($_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_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('calculate_shipping_cost', 'country', 'select_country', 'state', 'select_state', 'select_state', 'zip_postal_code', 'get_rates', 'select_shipping_method', 'vendor', 'none', 'free_shipping', 'no_shipping_required', 'free_shipping', 'text_no_shipping_methods', 'total', 'select', 'text_no_shipping_methods', 'recalculate_rates', 'select_shipping_method', 'get_rates', 'calculate_shipping_cost', 'country', 'select_country', 'state', 'select_state', 'select_state', 'zip_postal_code', 'get_rates', 'select_shipping_method', 'vendor', 'none', 'free_shipping', 'no_shipping_required', 'free_shipping', 'text_no_shipping_methods', 'total', 'select', 'text_no_shipping_methods', 'recalculate_rates', 'select_shipping_method', 'get_rates')); 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(); ?> <script type="text/javascript"> function fn_calculate_total_shipping() { var $ = Tygh.$; params = []; parents = $('#shipping_estimation'); radio = $('input[type=radio]:checked', parents); $.each(radio, function(id, elm) { params.push({name: elm.name, value: elm.value}); }); params.push({name: $('#elm_zipcode').prop('name'), value: $('#elm_country').val()}); params.push({name: $('#elm_state').prop('name'), value: $('#elm_state').val()}); params.push({name: $('#elm_zipcode').prop('name'), value: $('#elm_zipcode').val()}); url = fn_url('checkout.shipping_estimation'); for (i in params) { url += '&' + params[i]['name'] + '=' + encodeURIComponent(params[i]['value']); } $.ceAjax('request', url, { result_ids: 'shipping_estimation', method: 'post' }); } </script> <?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> <?php $_smarty_tpl->tpl_vars["prefix"] = new Smarty_variable("sidebox_", null, 0); } if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <?php $_smarty_tpl->tpl_vars["buttons_class"] = new Smarty_variable("hidden", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["buttons_class"] = new Smarty_variable("buttons-container", null, 0); } if ($_smarty_tpl->tpl_vars['additional_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["class_suffix"] = new Smarty_variable("-" . (string) $_smarty_tpl->tpl_vars['additional_id']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["id_suffix"] = new Smarty_variable("_" . (string) $_smarty_tpl->tpl_vars['additional_id']->value, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['location']->value != "sidebox" && $_smarty_tpl->tpl_vars['location']->value != "popup") { ?> <div id="est_box<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-estimation-box"> <h3 class="ty-subheader"><?php echo $_smarty_tpl->__("calculate_shipping_cost"); ?> </h3> <?php } ?> <div id="shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['states'] = new Smarty_variable(fn_get_all_states(1), null, 0); ?> <?php if (!Smarty::$_smarty_vars['capture']['states_built']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => $_smarty_tpl->tpl_vars['states']->value), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("states_built", null, null); ob_start(); ?> Y<?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 } ?> <form class="cm-ajax" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> estimation_form<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> <input type="hidden" name="location" value="sidebox" /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['additional_id']->value) { ?> <input type="hidden" name="additional_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['additional_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /><?php } ?> <input type="hidden" name="result_ids" value="shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ,shipping_estimation_buttons" /> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_country<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("country"); ?> </label> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_country<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-country cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ty-input-text-medium" name="customer_location[country]"> <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?php $_smarty_tpl->tpl_vars["countries"] = new Smarty_variable(fn_get_simple_countries(1), 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['cart']->value['user_data']['s_country'] == $_smarty_tpl->tpl_vars['code']->value || !$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country'] && $_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['settings']->value['General']['default_country']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable($_smarty_tpl->tpl_vars['cart']->value['user_data']['s_state'], null, 0); ?> <?php if (fn_is_empty($_smarty_tpl->tpl_vars['_state']->value)) { ?> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['General']['default_state'], null, 0); ?> <?php } ?> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("state"); ?> </label> <select class="cm-state cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> hidden<?php } ?> ty-input-text-medium" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " name="customer_location[state]"> <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['code'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['state']->value['code'] == $_smarty_tpl->tpl_vars['_state']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['state'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } if (!$_smarty_tpl->tpl_vars['state']->_loop) { ?> <option label="" value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php } ?> </select> <input type="text" class="cm-state cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ty-input-text-medium <?php if ($_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> hidden<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _d" name="customer_location[state]" size="20" maxlength="64" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_state']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> disabled="disabled"<?php } ?> /> </div> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_zipcode<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("zip_postal_code"); ?> </label> <input type="text" class="ty-input-text-medium" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_zipcode<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " name="customer_location[zipcode]" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['user_data']['s_zipcode'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['buttons_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("get_rates"), 'but_name' => "dispatch[checkout.shipping_estimation]", 'but_role' => "text", 'but_id' => "but_get_rates"), 0); ?> </div> </form> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "shipping_estimation" || $_REQUEST['show_shippings'] == "Y") { ?> <?php if (!$_smarty_tpl->tpl_vars['cart']->value['shipping_failed'] && !$_smarty_tpl->tpl_vars['cart']->value['company_shipping_failed']) { ?> <?php if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <div class="ty-estimation__title"><?php echo $_smarty_tpl->__("select_shipping_method"); ?> </div> <?php } ?> <form class="cm-ajax" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_shipping_form<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <input type="hidden" name="redirect_mode" value="cart" /> <input type="hidden" name="result_ids" value="checkout_totals" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:shipping_estimation")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:shipping_estimation"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group']->_loop = false; $_smarty_tpl->tpl_vars['group_key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) { $_smarty_tpl->tpl_vars['group']->_loop = true; $_smarty_tpl->tpl_vars['group_key']->value = $_smarty_tpl->tpl_vars['group']->key; ?> <p> <strong><?php echo $_smarty_tpl->__("vendor"); ?> : </strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['group']->value['name']) === null || $tmp === '' ? $_smarty_tpl->__("none") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </p> <?php if (!fn_allowed_for("ULTIMATE") || count($_smarty_tpl->tpl_vars['product_groups']->value) > 1) { ?> <ul> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group']->value['products']; 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; ?> <li> <?php if ($_smarty_tpl->tpl_vars['product']->value['product']) { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> <?php } else { ?> <?php echo htmlspecialchars(fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </li> <?php } ?> </ul> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['group']->value['shippings'] && !$_smarty_tpl->tpl_vars['group']->value['all_edp_free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['all_free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['shipping_no_required']) { ?> <?php $_smarty_tpl->tpl_vars["shipping"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["shipping"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group']->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; ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['chosen_shipping'][$_smarty_tpl->tpl_vars['group_key']->value] == $_smarty_tpl->tpl_vars['shipping']->value['shipping_id']) { ?> <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable("checked=\"checked\"", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['delivery_time']) { ?> <?php $_smarty_tpl->tpl_vars["delivery_time"] = new Smarty_variable("(" . (string) $_smarty_tpl->tpl_vars['shipping']->value['delivery_time'] . ")", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["delivery_time"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:shipping_estimation_method")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:shipping_estimation_method"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "rate", null); ob_start(); echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['shipping']->value['rate']), 0); 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['shipping']->value['inc_tax']) { ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . " (", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['taxed_price'] && $_smarty_tpl->tpl_vars['shipping']->value['taxed_price'] != $_smarty_tpl->tpl_vars['shipping']->value['rate']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "tax", null); ob_start(); echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['shipping']->value['taxed_price'], 'class' => "ty-nowrap"), 0); 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->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . " (" . (string) $_smarty_tpl->tpl_vars['tax']->value . " ", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["inc_tax_lang"] = new Smarty_variable($_smarty_tpl->__('inc_tax'), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . (string) $_smarty_tpl->tpl_vars['inc_tax_lang']->value . ")", null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable($_smarty_tpl->__("free_shipping"), null, 0); ?> <?php } ?> <p> <input type="radio" class="ty-valign" id="sh_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " name="shipping_ids[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " onclick="fn_calculate_total_shipping();" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checked']->value, ENT_QUOTES, 'UTF-8'); ?> /><label for="sh_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-valign"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery_time']->value, ENT_QUOTES, 'UTF-8'); ?> - <?php echo $_smarty_tpl->tpl_vars['rate']->value; ?> </label> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:shipping_estimation_method"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['group']->value['all_edp_free_shipping'] || $_smarty_tpl->tpl_vars['group']->value['shipping_no_required']) { ?> <p><?php echo $_smarty_tpl->__("no_shipping_required"); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['all_free_shipping'] || $_smarty_tpl->tpl_vars['group']->value['free_shipping']) { ?> <p><?php echo $_smarty_tpl->__("free_shipping"); ?> </p> <?php } else { ?> <p><?php echo $_smarty_tpl->__("text_no_shipping_methods"); ?> </p> <?php } ?> <?php } ?> <?php } ?> <p><strong><?php echo $_smarty_tpl->__("total"); ?> :</strong> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['cart']->value['display_shipping_cost'], 'class' => "ty-price"), 0); ?> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:shipping_estimation"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['buttons_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("select"), 'but_role' => "text", 'but_name' => "dispatch[checkout.update_shipping]", 'but_id' => "but_select_shipping", 'but_meta' => "cm-dialog-closer"), 0); ?> </div> </form> <?php } else { ?> <p class="ty-error-text"> <?php echo $_smarty_tpl->__("text_no_shipping_methods"); ?> </p> <?php } ?> <?php } ?> <!--shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php if ($_smarty_tpl->tpl_vars['location']->value != "sidebox" && $_smarty_tpl->tpl_vars['location']->value != "popup") { ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <div class="ty-estimation-buttons buttons-container" id="shipping_estimation_buttons"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "shipping_estimation" || $_REQUEST['show_shippings'] == "Y") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("recalculate_rates"), 'but_external_click_id' => "but_get_rates", 'but_role' => "text", 'but_meta' => "ty-btn__secondary cm-external-click ty-float-right ty-estimation-buttons__rate"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("select_shipping_method"), 'but_external_click_id' => "but_select_shipping", 'but_meta' => "ty-btn__secondary cm-external-click cm-dialog-closer"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("get_rates"), 'but_external_click_id' => "but_get_rates", 'but_meta' => "ty-btn__secondary cm-external-click"), 0); ?> <?php } ?> <!--shipping_estimation_buttons--></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(); } 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/shipping_estimation.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/checkout/components/shipping_estimation.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 { ?> <script type="text/javascript"> function fn_calculate_total_shipping() { var $ = Tygh.$; params = []; parents = $('#shipping_estimation'); radio = $('input[type=radio]:checked', parents); $.each(radio, function(id, elm) { params.push({name: elm.name, value: elm.value}); }); params.push({name: $('#elm_zipcode').prop('name'), value: $('#elm_country').val()}); params.push({name: $('#elm_state').prop('name'), value: $('#elm_state').val()}); params.push({name: $('#elm_zipcode').prop('name'), value: $('#elm_zipcode').val()}); url = fn_url('checkout.shipping_estimation'); for (i in params) { url += '&' + params[i]['name'] + '=' + encodeURIComponent(params[i]['value']); } $.ceAjax('request', url, { result_ids: 'shipping_estimation', method: 'post' }); } </script> <?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> <?php $_smarty_tpl->tpl_vars["prefix"] = new Smarty_variable("sidebox_", null, 0); } if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <?php $_smarty_tpl->tpl_vars["buttons_class"] = new Smarty_variable("hidden", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["buttons_class"] = new Smarty_variable("buttons-container", null, 0); } if ($_smarty_tpl->tpl_vars['additional_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["class_suffix"] = new Smarty_variable("-" . (string) $_smarty_tpl->tpl_vars['additional_id']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["id_suffix"] = new Smarty_variable("_" . (string) $_smarty_tpl->tpl_vars['additional_id']->value, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['location']->value != "sidebox" && $_smarty_tpl->tpl_vars['location']->value != "popup") { ?> <div id="est_box<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-estimation-box"> <h3 class="ty-subheader"><?php echo $_smarty_tpl->__("calculate_shipping_cost"); ?> </h3> <?php } ?> <div id="shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['states'] = new Smarty_variable(fn_get_all_states(1), null, 0); ?> <?php if (!Smarty::$_smarty_vars['capture']['states_built']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => $_smarty_tpl->tpl_vars['states']->value), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("states_built", null, null); ob_start(); ?> Y<?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 } ?> <form class="cm-ajax" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> estimation_form<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> <input type="hidden" name="location" value="sidebox" /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['additional_id']->value) { ?> <input type="hidden" name="additional_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['additional_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /><?php } ?> <input type="hidden" name="result_ids" value="shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ,shipping_estimation_buttons" /> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_country<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("country"); ?> </label> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_country<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-country cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ty-input-text-medium" name="customer_location[country]"> <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?php $_smarty_tpl->tpl_vars["countries"] = new Smarty_variable(fn_get_simple_countries(1), 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['cart']->value['user_data']['s_country'] == $_smarty_tpl->tpl_vars['code']->value || !$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country'] && $_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['settings']->value['General']['default_country']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable($_smarty_tpl->tpl_vars['cart']->value['user_data']['s_state'], null, 0); ?> <?php if (fn_is_empty($_smarty_tpl->tpl_vars['_state']->value)) { ?> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['General']['default_state'], null, 0); ?> <?php } ?> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("state"); ?> </label> <select class="cm-state cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> hidden<?php } ?> ty-input-text-medium" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " name="customer_location[state]"> <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['code'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['state']->value['code'] == $_smarty_tpl->tpl_vars['_state']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['state'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } if (!$_smarty_tpl->tpl_vars['state']->_loop) { ?> <option label="" value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php } ?> </select> <input type="text" class="cm-state cm-location-estimation<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> ty-input-text-medium <?php if ($_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> hidden<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_state<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _d" name="customer_location[state]" size="20" maxlength="64" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_state']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['cart']->value['user_data']['s_country']]) { ?> disabled="disabled"<?php } ?> /> </div> <div class="ty-control-group"> <label class="ty-control-group__label" for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_zipcode<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("zip_postal_code"); ?> </label> <input type="text" class="ty-input-text-medium" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_zipcode<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " name="customer_location[zipcode]" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['user_data']['s_zipcode'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['buttons_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("get_rates"), 'but_name' => "dispatch[checkout.shipping_estimation]", 'but_role' => "text", 'but_id' => "but_get_rates"), 0); ?> </div> </form> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "shipping_estimation" || $_REQUEST['show_shippings'] == "Y") { ?> <?php if (!$_smarty_tpl->tpl_vars['cart']->value['shipping_failed'] && !$_smarty_tpl->tpl_vars['cart']->value['company_shipping_failed']) { ?> <?php if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <div class="ty-estimation__title"><?php echo $_smarty_tpl->__("select_shipping_method"); ?> </div> <?php } ?> <form class="cm-ajax" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> select_shipping_form<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <input type="hidden" name="redirect_mode" value="cart" /> <input type="hidden" name="result_ids" value="checkout_totals" /> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:shipping_estimation")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:shipping_estimation"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group']->_loop = false; $_smarty_tpl->tpl_vars['group_key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) { $_smarty_tpl->tpl_vars['group']->_loop = true; $_smarty_tpl->tpl_vars['group_key']->value = $_smarty_tpl->tpl_vars['group']->key; ?> <p> <strong><?php echo $_smarty_tpl->__("vendor"); ?> : </strong><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['group']->value['name']) === null || $tmp === '' ? $_smarty_tpl->__("none") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </p> <?php if (!fn_allowed_for("ULTIMATE") || count($_smarty_tpl->tpl_vars['product_groups']->value) > 1) { ?> <ul> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group']->value['products']; 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; ?> <li> <?php if ($_smarty_tpl->tpl_vars['product']->value['product']) { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> <?php } else { ?> <?php echo htmlspecialchars(fn_get_product_name($_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </li> <?php } ?> </ul> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['group']->value['shippings'] && !$_smarty_tpl->tpl_vars['group']->value['all_edp_free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['all_free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['free_shipping'] && !$_smarty_tpl->tpl_vars['group']->value['shipping_no_required']) { ?> <?php $_smarty_tpl->tpl_vars["shipping"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["shipping"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['group']->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; ?> <?php if ($_smarty_tpl->tpl_vars['cart']->value['chosen_shipping'][$_smarty_tpl->tpl_vars['group_key']->value] == $_smarty_tpl->tpl_vars['shipping']->value['shipping_id']) { ?> <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable("checked=\"checked\"", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["checked"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['delivery_time']) { ?> <?php $_smarty_tpl->tpl_vars["delivery_time"] = new Smarty_variable("(" . (string) $_smarty_tpl->tpl_vars['shipping']->value['delivery_time'] . ")", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["delivery_time"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:shipping_estimation_method")); $_block_repeat = true; echo smarty_block_hook(array('name' => "checkout:shipping_estimation_method"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "rate", null); ob_start(); echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['shipping']->value['rate']), 0); 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['shipping']->value['inc_tax']) { ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . " (", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['shipping']->value['taxed_price'] && $_smarty_tpl->tpl_vars['shipping']->value['taxed_price'] != $_smarty_tpl->tpl_vars['shipping']->value['rate']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "tax", null); ob_start(); echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['shipping']->value['taxed_price'], 'class' => "ty-nowrap"), 0); 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->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . " (" . (string) $_smarty_tpl->tpl_vars['tax']->value . " ", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["inc_tax_lang"] = new Smarty_variable($_smarty_tpl->__('inc_tax'), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['rate']->value . (string) $_smarty_tpl->tpl_vars['inc_tax_lang']->value . ")", null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["rate"] = new Smarty_variable($_smarty_tpl->__("free_shipping"), null, 0); ?> <?php } ?> <p> <input type="radio" class="ty-valign" id="sh_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " name="shipping_ids[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " onclick="fn_calculate_total_shipping();" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checked']->value, ENT_QUOTES, 'UTF-8'); ?> /><label for="sh_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_key']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-valign"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delivery_time']->value, ENT_QUOTES, 'UTF-8'); ?> - <?php echo $_smarty_tpl->tpl_vars['rate']->value; ?> </label> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:shipping_estimation_method"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['group']->value['all_edp_free_shipping'] || $_smarty_tpl->tpl_vars['group']->value['shipping_no_required']) { ?> <p><?php echo $_smarty_tpl->__("no_shipping_required"); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['all_free_shipping'] || $_smarty_tpl->tpl_vars['group']->value['free_shipping']) { ?> <p><?php echo $_smarty_tpl->__("free_shipping"); ?> </p> <?php } else { ?> <p><?php echo $_smarty_tpl->__("text_no_shipping_methods"); ?> </p> <?php } ?> <?php } ?> <?php } ?> <p><strong><?php echo $_smarty_tpl->__("total"); ?> :</strong> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['cart']->value['display_shipping_cost'], 'class' => "ty-price"), 0); ?> </p> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "checkout:shipping_estimation"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['buttons_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("select"), 'but_role' => "text", 'but_name' => "dispatch[checkout.update_shipping]", 'but_id' => "but_select_shipping", 'but_meta' => "cm-dialog-closer"), 0); ?> </div> </form> <?php } else { ?> <p class="ty-error-text"> <?php echo $_smarty_tpl->__("text_no_shipping_methods"); ?> </p> <?php } ?> <?php } ?> <!--shipping_estimation<?php if ($_smarty_tpl->tpl_vars['location']->value == "sidebox") { ?> _sidebox<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php if ($_smarty_tpl->tpl_vars['location']->value != "sidebox" && $_smarty_tpl->tpl_vars['location']->value != "popup") { ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['location']->value == "popup") { ?> <div class="ty-estimation-buttons buttons-container" id="shipping_estimation_buttons"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "shipping_estimation" || $_REQUEST['show_shippings'] == "Y") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("recalculate_rates"), 'but_external_click_id' => "but_get_rates", 'but_role' => "text", 'but_meta' => "ty-btn__secondary cm-external-click ty-float-right ty-estimation-buttons__rate"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("select_shipping_method"), 'but_external_click_id' => "but_select_shipping", 'but_meta' => "ty-btn__secondary cm-external-click cm-dialog-closer"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("get_rates"), 'but_external_click_id' => "but_get_rates", 'but_meta' => "ty-btn__secondary cm-external-click"), 0); ?> <?php } ?> <!--shipping_estimation_buttons--></div> <?php } } }
function content_55db8f57a02b71_27074353($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } fn_preload_lang_vars(array('position_short', 'image', 'name', 'sku', 'price', 'list_price', 'purchased_qty', 'subtotal_sum', 'quantity', 'status', 'sku', 'edit', 'edit', 'delete', 'no_data', 'text_select_fields2edit_note', 'modify_selected', 'global_update', 'bulk_product_addition', 'product_subscriptions', 'edit_selected', 'clone_selected', 'export_selected', 'add_product', 'select_fields_to_edit', 'products')); $_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="manage_products_form" id="manage_products_form"> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['cid'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_statuses' => fn_get_default_status_filters('', true)), 0); ?> </th> <?php if ($_smarty_tpl->tpl_vars['search']->value['cid'] && $_smarty_tpl->tpl_vars['search']->value['subcats'] != "Y") { ?> <th class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=position&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("position_short"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "position") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="5%"><span><?php echo $_smarty_tpl->__("image"); ?> </span></th> <th width="45%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=product&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "product") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a> / <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=code&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("sku"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "code") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=price&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "price") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=list_price&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("list_price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "list_price") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if ($_smarty_tpl->tpl_vars['search']->value['order_ids']) { ?> <th width="5%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=p_qty&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("purchased_qty"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "p_qty") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="5%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=p_subtotal&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("subtotal_sum"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "p_subtotal") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="5%" class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=amount&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("quantity"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "amount") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_head")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_head"), 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:manage_head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </th> <th width="5%"> </th> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['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; ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product']->value['is_shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["hide_inputs_if_shared_product"] = new Smarty_variable("cm-hide-inputs", null, 0); ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["hide_inputs_if_shared_product"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product']->value['is_shared_product'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(false, null, 0); ?> <?php } } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['product']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hide_inputs_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td class="left"> <input type="checkbox" name="product_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['product']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /></td> <?php if ($_smarty_tpl->tpl_vars['search']->value['cid'] && $_smarty_tpl->tpl_vars['search']->value['subcats'] != "Y") { ?> <td class="<?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); } ?> "> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro" /></td> <?php } ?> <td> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image' => ($tmp = @$_smarty_tpl->tpl_vars['product']->value['main_pair']['icon']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed'] : $tmp, 'image_id' => $_smarty_tpl->tpl_vars['product']->value['main_pair']['image_id'], 'image_width' => 50, 'href' => fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'])), 0); ?> </td> <td> <input type="hidden" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> /> <a class="row-status" href="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['product'], 40); ?> </a> <div class="product-code"> <span class="product-code-label row-status"><?php echo $_smarty_tpl->__("sku"); ?> </span> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product_code]" size="15" maxlength="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-hidden span2" /> </div> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['product']->value), 0); ?> </td> <td class="<?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, 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' => "price_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], 'name' => "update_all_vendors[price][" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "]"), 0); ?> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][price]" size="6" value="<?php echo htmlspecialchars(fn_format_price($_smarty_tpl->tpl_vars['product']->value['price'], $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden"/> </td> <td> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][list_price]" size="6" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['list_price'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /></td> <?php if ($_smarty_tpl->tpl_vars['search']->value['order_ids']) { ?> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['purchased_qty'], ENT_QUOTES, 'UTF-8'); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['purchased_subtotal'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php } ?> <td> <?php if ($_smarty_tpl->tpl_vars['product']->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['product']->value['product_id'], 'but_role' => "edit"), 0); ?> <?php } else { ?> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][amount]" size="6" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /> <?php } ?> </td> <td><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_body")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_body"), 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:manage_body"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="nowrap"> <div class="hidden-tools"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'])); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs_if_shared_product']->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['product']->value['product_id'])); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:list_extra_links"), $_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'])); ?> </div> </td> <td class="right nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('popup_additional_class' => "dropleft", 'id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'status' => $_smarty_tpl->tpl_vars['product']->value['status'], 'hidden' => true, 'object_id_name' => "product_id", 'table' => "products"), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("select_fields_to_edit", null, null); ob_start(); ?> <p><?php echo $_smarty_tpl->__("text_select_fields2edit_note"); ?> </p> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_select_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <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_text' => __("modify_selected"), 'but_name' => "dispatch[products.store_selection]", 'cancel_action' => "close"), 0); ?> </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("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:action_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:action_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("global_update"), 'href' => "products.global_update")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("bulk_product_addition"), 'href' => "products.m_add")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("product_subscriptions"), 'href' => "products.p_subscr")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'class' => "cm-process-items", 'text' => __("edit_selected"), 'target_id' => "content_select_fields_to_edit", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone_selected"), 'dispatch' => "dispatch[products.m_clone]", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("export_selected"), 'dispatch' => "dispatch[products.export_range]", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[products.m_delete]", 'form' => "manage_products_form")); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:action_buttons"), $_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 if ($_smarty_tpl->tpl_vars['products']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[products.m_update]", 'but_role' => "submit-button", 'but_target_form' => "manage_products_form"), 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->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "products.add", 'prefix' => "top", 'title' => __("add_product"), 'hide_tools' => true, 'icon' => "icon-plus"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:manage_tools"), $_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/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "select_fields_to_edit", 'text' => __("select_fields_to_edit"), 'content' => Smarty::$_smarty_vars['capture']['select_fields_to_edit']), 0); ?> <div class="clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> </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 $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "products.manage", 'view_type' => "products"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "products.manage"), 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 echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("products"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'title_extra' => Smarty::$_smarty_vars['capture']['title_extra'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'content_id' => "manage_products"), 0); }
function content_55d4e48ebce831_75952453($_smarty_tpl) { 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', 'name', 'email', 'address', 'city', 'country', 'select_country', 'state', 'select_state', 'status', 'active', 'pending', 'new', 'disabled', 'zip_postal_code', 'phone', 'url', 'fax')); if ($_smarty_tpl->tpl_vars['in_popup']->value) { ?> <div class="adv-search"> <div class="group"> <?php } else { ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <?php } ?> <form name="companies_search_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="get" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['form_meta']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?> <?php if ($_REQUEST['redirect_url']) { ?> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_REQUEST['redirect_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['selected_section']->value != '') { ?> <input type="hidden" id="selected_section" name="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['user_type']) { ?> <input type="hidden" name="user_type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['company_id']->value) { ?> <input type="hidden" name="company_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['put_request_vars']->value) { ?> <?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 = $_REQUEST; 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; ?> <?php if ($_smarty_tpl->tpl_vars['v']->value && $_smarty_tpl->tpl_vars['k']->value != "callback") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php } } ?> <?php echo $_smarty_tpl->tpl_vars['extra']->value; ?> <div class="sidebar-field"> <label for="elm_name"><?php echo $_smarty_tpl->__("name"); ?> </label> <input type="text" name="company" id="elm_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['company'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="sidebar-field"> <label for="elm_email"><?php echo $_smarty_tpl->__("email"); ?> </label> <input type="text" name="email" id="elm_email" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['email'], ENT_QUOTES, 'UTF-8'); ?> " /> </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="row-fluid"> <div class="group span6 form-horizontal"> <div class="control-group"> <label for="elm_address" class='control-label'><?php echo $_smarty_tpl->__("address"); ?> </label> <div class="controls"> <input type="text" name="address" id="elm_address" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['address'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_city"><?php echo $_smarty_tpl->__("city"); ?> </label> <div class="controls"> <input type="text" name="city" id="elm_city" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['city'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label for="srch_country" class="control-label"><?php echo $_smarty_tpl->__("country"); ?> </label> <div class="controls"> <select id="srch_country" name="country" class="cm-country cm-location-search"> <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?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['search']->value['country'] == $_smarty_tpl->tpl_vars['code']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label for="srch_state" class="control-label"><?php echo $_smarty_tpl->__("state"); ?> </label> <div class="controls"> <select id="srch_state" class="cm-state cm-location-search hidden" name="state"> <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> </select> <input class="cm-state cm-location-search" type="text" id="srch_state_d" name="state" maxlength="64" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['state'], ENT_QUOTES, 'UTF-8'); ?> " disabled="disabled"/> </div> </div> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <div class="control-group"> <label class="control-label" for="status"><?php echo $_smarty_tpl->__("status"); ?> </label> <div class="controls"> <select name="status" id="status"> <option value="">--</option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['status'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("active"); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['search']->value['status'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("pending"); ?> </option> <option value="N" <?php if ($_smarty_tpl->tpl_vars['search']->value['status'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("new"); ?> </option> <option value="D" <?php if ($_smarty_tpl->tpl_vars['search']->value['status'] == "D") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("disabled"); ?> </option> </select> </div> </div> <?php } ?> </div> <div class="group span6 form-horizontal"> <div class="control-group"> <label class="control-label" for="elm_zipcode"><?php echo $_smarty_tpl->__("zip_postal_code"); ?> </label> <div class="controls"> <input type="text" name="zipcode" id="elm_zipcode" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['zipcode'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_phone"><?php echo $_smarty_tpl->__("phone"); ?> </label> <div class="controls"> <input type="text" name="phone" id="elm_phone" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['phone'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_url"><?php echo $_smarty_tpl->__("url"); ?> </label> <div class="controls"> <input type="text" name="url" id="elm_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['url'], ENT_QUOTES, 'UTF-8'); ?> "/> </div> </div> <div class="control-group"> <label class="control-label" for="elm_fax"><?php echo $_smarty_tpl->__("fax"); ?> </label> <div class="controls"> <input type="text" name="fax" id="elm_fax" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['fax'], ENT_QUOTES, 'UTF-8'); ?> " /></div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:search_form")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies: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' => "companies:search_form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> </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' => "companies", 'in_popup' => $_smarty_tpl->tpl_vars['in_popup']->value), 0); ?> </form> <?php if ($_smarty_tpl->tpl_vars['in_popup']->value) { ?> </div></div> <?php } else { ?> </div><hr> <?php } }
function content_55e61dcc9a2ac0_81934437($_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_cycle')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.cycle.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!is_callable('smarty_function_set_id')) { include '/var/www/html/market/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(); ?> <?php $_smarty_tpl->tpl_vars["discussion"] = new Smarty_variable(fn_get_discussion(0, "E", true, $_smarty_tpl->tpl_vars['block']->value['properties']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['type'] != "D" && $_smarty_tpl->tpl_vars['discussion']->value['posts']) { ?> <?php $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['outside_navigation'] == "Y") { ?> <div class="owl-theme ty-owl-controls"> <div class="owl-controls clickable owl-controls-outside" id="owl_outside_nav_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="owl-buttons"> <div id="owl_prev_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="owl-prev"><i class="ty-icon-left-open-thin"></i></div> <div id="owl_next_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="owl-next"><i class="ty-icon-right-open-thin"></i></div> </div> </div> </div> <?php } ?> <div class="ty-mb-l"> <div class="ty-scroller-discussion-list"> <div id="scroll_list_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> " class="owl-carousel ty-scroller-list"> <?php $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['post']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discussion']->value['posts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) { $_smarty_tpl->tpl_vars['post']->_loop = true; ?> <div class="ty-discussion-post__content ty-scroller-discussion-list__item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "discussion:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("discussion.view?thread_id=" . (string) $_smarty_tpl->tpl_vars['discussion']->value['thread_id'] . "&post_id=" . (string) $_smarty_tpl->tpl_vars['post']->value['post_id']), ENT_QUOTES, 'UTF-8'); ?> #post_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-discussion-post <?php echo smarty_function_cycle(array('values' => ", ty-discussion-post_even"), $_smarty_tpl); ?> " id="post_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['type'] == "C" || $_smarty_tpl->tpl_vars['discussion']->value['type'] == "B") { ?> <div class="ty-discussion-post__message"><?php echo nl2br(smarty_modifier_truncate($_smarty_tpl->tpl_vars['post']->value['message'], 100)); ?> </div> <?php } ?> <span class="ty-caret-bottom"><span class="ty-caret-outer"></span><span class="ty-caret-inner"></span></span> </div> </a> <span class="ty-discussion-post__author"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> <span class="ty-discussion-post__date"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['post']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8'); ?> </span> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['type'] == "R" || $_smarty_tpl->tpl_vars['discussion']->value['type'] == "B" && $_smarty_tpl->tpl_vars['post']->value['rating_value'] > 0) { ?> <div class="clearfix ty-discussion-post__rating"> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion/components/stars.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('stars' => fn_get_discussion_rating($_smarty_tpl->tpl_vars['post']->value['rating_value'])), 0); ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "discussion:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </div> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/scroller_init_with_quantity.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prev_selector' => "#owl_prev_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value, 'next_selector' => "#owl_next_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->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(); } 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="addons/discussion/blocks/testimonials.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/discussion/blocks/testimonials.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 { ?> <?php $_smarty_tpl->tpl_vars["discussion"] = new Smarty_variable(fn_get_discussion(0, "E", true, $_smarty_tpl->tpl_vars['block']->value['properties']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['type'] != "D" && $_smarty_tpl->tpl_vars['discussion']->value['posts']) { ?> <?php $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "000", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['properties']['outside_navigation'] == "Y") { ?> <div class="owl-theme ty-owl-controls"> <div class="owl-controls clickable owl-controls-outside" id="owl_outside_nav_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="owl-buttons"> <div id="owl_prev_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="owl-prev"><i class="ty-icon-left-open-thin"></i></div> <div id="owl_next_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="owl-next"><i class="ty-icon-right-open-thin"></i></div> </div> </div> </div> <?php } ?> <div class="ty-mb-l"> <div class="ty-scroller-discussion-list"> <div id="scroll_list_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> " class="owl-carousel ty-scroller-list"> <?php $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['post']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discussion']->value['posts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) { $_smarty_tpl->tpl_vars['post']->_loop = true; ?> <div class="ty-discussion-post__content ty-scroller-discussion-list__item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "discussion:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a href="<?php echo htmlspecialchars(fn_url("discussion.view?thread_id=" . (string) $_smarty_tpl->tpl_vars['discussion']->value['thread_id'] . "&post_id=" . (string) $_smarty_tpl->tpl_vars['post']->value['post_id']), ENT_QUOTES, 'UTF-8'); ?> #post_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-discussion-post <?php echo smarty_function_cycle(array('values' => ", ty-discussion-post_even"), $_smarty_tpl); ?> " id="post_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['type'] == "C" || $_smarty_tpl->tpl_vars['discussion']->value['type'] == "B") { ?> <div class="ty-discussion-post__message"><?php echo nl2br(smarty_modifier_truncate($_smarty_tpl->tpl_vars['post']->value['message'], 100)); ?> </div> <?php } ?> <span class="ty-caret-bottom"><span class="ty-caret-outer"></span><span class="ty-caret-inner"></span></span> </div> </a> <span class="ty-discussion-post__author"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> <span class="ty-discussion-post__date"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['post']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8'); ?> </span> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['type'] == "R" || $_smarty_tpl->tpl_vars['discussion']->value['type'] == "B" && $_smarty_tpl->tpl_vars['post']->value['rating_value'] > 0) { ?> <div class="clearfix ty-discussion-post__rating"> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion/components/stars.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('stars' => fn_get_discussion_rating($_smarty_tpl->tpl_vars['post']->value['rating_value'])), 0); ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "discussion:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </div> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/scroller_init_with_quantity.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prev_selector' => "#owl_prev_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value, 'next_selector' => "#owl_next_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value), 0); ?> <?php } } }
function content_55d5c52c0f4b99_17469338($_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_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('text_admin_new_orders', 'incompleted_orders', 'orders', 'id', 'status', 'date', 'customer', 'phone', 'total', 'order', 'invoice', 'credit_memo', 'view', 'edit', 'delete', 'no_data', 'for_this_page_orders', 'gross_total', 'totally_paid', 'for_all_found_orders', 'gross_total', 'totally_paid', 'add_order', 'bulk_print_invoice', 'bulk_print_pdf', 'bulk_print_packing_slip', 'view_purchased_products', 'export_selected', 'view_all_orders', 'incompleted_orders')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "new") { ?> <p><?php echo $_smarty_tpl->__("text_admin_new_orders"); ?> </p> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "orders.manage", 'view_type' => "orders"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/orders/components/orders_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "orders.manage"), 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 action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" target="_self" name="orders_list_form"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <?php $_smarty_tpl->tpl_vars["page_title"] = new Smarty_variable($_smarty_tpl->__("incompleted_orders"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["get_additional_statuses"] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["page_title"] = new Smarty_variable($_smarty_tpl->__("orders"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["get_additional_statuses"] = new Smarty_variable(false, null, 0); } $_smarty_tpl->tpl_vars["order_status_descr"] = new Smarty_variable(fn_get_simple_statuses(@constant('STATUSES_ORDER'), $_smarty_tpl->tpl_vars['get_additional_statuses']->value, true), null, 0); $_smarty_tpl->tpl_vars["extra_status"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); $_smarty_tpl->tpl_vars['statuses'] = new Smarty_variable(array(), null, 0); $_smarty_tpl->tpl_vars["order_statuses"] = new Smarty_variable(fn_get_statuses(@constant('STATUSES_ORDER'), $_smarty_tpl->tpl_vars['statuses']->value, $_smarty_tpl->tpl_vars['get_additional_statuses']->value, true), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_statuses' => $_smarty_tpl->tpl_vars['order_status_descr']->value), 0); ?> </th> <th width="17%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=order_id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "order_id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="17%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("date"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=customer&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("customer"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "customer") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=phone&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("phone"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "phone") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } ?> </a></th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <th> </th> <th width="14%" class="right"><a class="cm-ajax<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "total") { ?> sort-link-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'], ENT_QUOTES, 'UTF-8'); } ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=total&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("total"); ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:order_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:order_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <tr> <td class="left"> <input type="checkbox" name="order_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['order_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['o']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /></td> <td> <a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id']), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php echo $_smarty_tpl->__("order"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['order_id'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['order_statuses_data']->value[$_smarty_tpl->tpl_vars['o']->value['status']]['params']['appearance_type'] == "I" && $_smarty_tpl->tpl_vars['o']->value['invoice_id']) { ?> <p class="small-note"><?php echo $_smarty_tpl->__("invoice"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['invoice_id'], ENT_QUOTES, 'UTF-8'); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['order_statuses_data']->value[$_smarty_tpl->tpl_vars['o']->value['status']]['params']['appearance_type'] == "C" && $_smarty_tpl->tpl_vars['o']->value['credit_memo_id']) { ?> <p class="small-note"><?php echo $_smarty_tpl->__("credit_memo"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['credit_memo_id'], ENT_QUOTES, 'UTF-8'); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['o']->value), 0); ?> </td> <td> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["notify_vendor"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["notify_vendor"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('suffix' => "o", 'order_info' => $_smarty_tpl->tpl_vars['o']->value, 'id' => $_smarty_tpl->tpl_vars['o']->value['order_id'], 'status' => $_smarty_tpl->tpl_vars['o']->value['status'], 'items_status' => $_smarty_tpl->tpl_vars['order_status_descr']->value, 'update_controller' => "orders", 'notify' => true, 'notify_department' => true, 'notify_vendor' => $_smarty_tpl->tpl_vars['notify_vendor']->value, 'status_target_id' => "orders_total," . (string) $_smarty_tpl->tpl_vars['rev']->value, 'extra' => "&return_url=" . (string) $_smarty_tpl->tpl_vars['extra_status']->value, 'statuses' => $_smarty_tpl->tpl_vars['order_statuses']->value, 'btn_meta' => mb_strtolower("btn btn-info o-status-" . (string) $_smarty_tpl->tpl_vars['o']->value['status'] . " btn-small", 'UTF-8')), 0); ?> </td> <td><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['o']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['o']->value['email']) { ?> <a href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['o']->value['email']), ENT_QUOTES, 'UTF-8'); ?> ">@</a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['o']->value['user_id']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['firstname'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['o']->value['user_id']) { ?> </a><?php } ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['phone'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td width="5%" class="center"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <li><?php ob_start(); echo $_smarty_tpl->__("view"); $_tmp1 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'], 'text' => $_tmp1)); ?> </li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php ob_start(); echo $_smarty_tpl->__("edit"); $_tmp2 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "order_management.edit?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'], 'text' => $_tmp2)); ?> </li> <?php $_smarty_tpl->tpl_vars["current_redirect_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <li><?php ob_start(); echo $_smarty_tpl->__("delete"); $_tmp3 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.delete?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['current_redirect_url']->value, 'class' => "cm-confirm", 'text' => $_tmp3)); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:list_extra_links"), $_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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_items'])); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['o']->value['total']), 0); ?> </td> </tr> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:order_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <div class="statistic clearfix" id="orders_total"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:statistic_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:statistic_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <table class="pull-right "> <?php if ($_smarty_tpl->tpl_vars['total_pages']->value > 1 && $_smarty_tpl->tpl_vars['search']->value['page'] != "full_list") { ?> <tr> <td> </td> <td width="100px"><?php echo $_smarty_tpl->__("for_this_page_orders"); ?> :</td> </tr> <tr> <td><?php echo $_smarty_tpl->__("gross_total"); ?> :</td> <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['display_totals']->value['gross_total']), 0); ?> </td> </tr> <?php if (!$_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <tr> <td><?php echo $_smarty_tpl->__("totally_paid"); ?> :</td> <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['display_totals']->value['totally_paid']), 0); ?> </td> </tr> <?php } ?> <hr /> <tr> <td><?php echo $_smarty_tpl->__("for_all_found_orders"); ?> :</td> </tr> <?php } ?> <tr> <td><?php echo $_smarty_tpl->__("gross_total"); ?> :</td> <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['totals']->value['gross_total']), 0); ?> </td> </tr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:totals_stats")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:totals_stats"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <tr> <td><h4><?php echo $_smarty_tpl->__("totally_paid"); ?> :</h4></td> <td class="price"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['totals']->value['totally_paid']), 0); ?> </td> </tr> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:totals_stats"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </table> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:statistic_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--orders_total--></div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "order_management.new", 'prefix' => "bottom", 'hide_tools' => "true", 'title' => __("add_order"), 'icon' => "icon-plus"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_tools"), $_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(); } ?> </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 $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_invoice"); $_tmp4 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp4, 'dispatch' => "dispatch[orders.bulk_print]", 'form' => "orders_list_form", 'class' => "cm-new-window")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_pdf"); $_tmp5 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp5, 'dispatch' => "dispatch[orders.bulk_print..pdf]", 'form' => "orders_list_form")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_packing_slip"); $_tmp6 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp6, 'dispatch' => "dispatch[orders.packing_slip]", 'form' => "orders_list_form", 'class' => "cm-new-window")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("view_purchased_products"); $_tmp7 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp7, 'dispatch' => "dispatch[orders.products_range]", 'form' => "orders_list_form")); ?> </li> <li class="divider"></li> <li><?php ob_start(); echo $_smarty_tpl->__("export_selected"); $_tmp8 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp8, 'dispatch' => "dispatch[orders.export_range]", 'form' => "orders_list_form")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <li><?php ob_start(); echo $_smarty_tpl->__("view_all_orders"); $_tmp9 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage", 'text' => $_tmp9)); ?> </li> <?php } else { ?> <li><?php ob_start(); echo $_smarty_tpl->__("incompleted_orders"); $_tmp10 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage?skip_view=Y&status=" . (string) @constant('STATUS_INCOMPLETED_ORDER'), 'text' => $_tmp10, 'form' => "orders_list_form")); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[orders.m_delete]", 'form' => "orders_list_form")); ?> </li> <?php } ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_tools"), 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' => "orders:list_tools"), $_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 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.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['page_title']->value, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'content_id' => "manage_orders"), 0); ?> <?php }
function content_55d5c758d53717_16255221($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('carrier_', 'carrier_')); if ($_smarty_tpl->tpl_vars['capture']->value) { $_smarty_tpl->_capture_stack[0][] = array("carrier_field", null, null); ob_start(); } ?> <select <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['meta']->value) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['meta']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <option value="">--</option> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "carriers:list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "carriers:list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["code"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["code"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['carriers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["code"]->key => $_smarty_tpl->tpl_vars["code"]->value) { $_smarty_tpl->tpl_vars["code"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['carrier']->value == (string) $_smarty_tpl->tpl_vars['code']->value) { $_smarty_tpl->tpl_vars['carrier_name'] = new Smarty_variable($_smarty_tpl->__("carrier_" . (string) $_smarty_tpl->tpl_vars['code']->value), null, 0); ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("carrier_" . (string) $_smarty_tpl->tpl_vars['code']->value); ?> </option> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "carriers:list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> <?php if ($_smarty_tpl->tpl_vars['capture']->value) { 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("carrier_name", null, null); ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['carrier_name']->value, 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(); } } }
function content_55d2f3635af955_63215592($_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_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('email', 'ls_profile_image_label', 'select_state', 'select_country', 'address_residential', 'address_commercial', 'ls_search_adress', 'shipping_same_as_billing', 'text_billing_same_with_shipping', 'yes', 'no', 'revert', 'email', 'ls_profile_image_label', 'select_state', 'select_country', 'address_residential', 'address_commercial', 'ls_search_adress', 'shipping_same_as_billing', 'text_billing_same_with_shipping', 'yes', 'no', 'revert')); 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(); ?> <?php $_smarty_tpl->tpl_vars["ship_to_another"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['show_email']->value) { ?> <div class="ty-control-group"> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_email" class="cm-required cm-email"><?php echo $_smarty_tpl->__("email"); ?> <i>*</i></label> <input type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_email" name="user_data[email]" size="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-input-text <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['disabled_param']->value, ENT_QUOTES, 'UTF-8'); ?> /> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['section']->value]) { ?> <?php if ($_smarty_tpl->tpl_vars['address_flag']->value && !$_smarty_tpl->tpl_vars['ship_to_another']->value && ($_smarty_tpl->tpl_vars['section']->value == "S" || $_smarty_tpl->tpl_vars['section']->value == "B") || $_smarty_tpl->tpl_vars['disabled_by_default']->value) { ?> <?php $_smarty_tpl->tpl_vars["disabled_param"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php $_smarty_tpl->tpl_vars["_class"] = new Smarty_variable("disabled", null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_fields"] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["disabled_param"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["_class"] = new Smarty_variable('', null, 0); } ?> <div class="clearfix profiles-profile_fields <?php if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> ls_profile_left_container <?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['body_id']->value || $_smarty_tpl->tpl_vars['grid_wrap']->value) { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['hide_fields']->value) { ?> hidden<?php } ?> "> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['grid_wrap']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php } if (!$_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { if (!$_smarty_tpl->tpl_vars['nothing_extra']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['title']->value), 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars['ls_user_image'] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> <div class="ls_profile_page_image_container"> <div class="ls_user_image_container <?php if (!$_smarty_tpl->tpl_vars['ls_user_profile_image']->value) { ?> no-image<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['ls_user_profile_image']->value) { ?> <img id="ls_uploadPreview" src="/images/user_profile/<?php echo htmlspecialchars($_SESSION['auth']['user_id'], ENT_QUOTES, 'UTF-8'); ?> .jpg" /> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '1') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_mr.jpg" /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '2') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_mrs.jpg" /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '3') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_miss.jpg" /> <?php } ?> <?php } ?> <label class="ls_upload_label"><?php echo $_smarty_tpl->__("ls_profile_image_label"); ?> </label> <input id="ls_uploadImage" type="file" name="p1" /> </div> </div> <div class="ls_profile_contact_details_container"> <?php } ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['section']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; if ($_smarty_tpl->tpl_vars['field']->value['field_name']) { ?> <?php $_smarty_tpl->tpl_vars["data_name"] = new Smarty_variable("user_data", null, 0); ?> <?php $_smarty_tpl->tpl_vars["data_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['field_name'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["value"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value[$_smarty_tpl->tpl_vars['data_id']->value], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["data_name"] = new Smarty_variable("user_data[fields]", null, 0); ?> <?php $_smarty_tpl->tpl_vars["data_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['field_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["value"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['fields'][$_smarty_tpl->tpl_vars['data_id']->value], null, 0); } ?> <?php $_smarty_tpl->tpl_vars["skip_field"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['section']->value == "S" || $_smarty_tpl->tpl_vars['section']->value == "B") { ?> <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> <?php $_smarty_tpl->tpl_vars["_to"] = new Smarty_variable("B", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_to"] = new Smarty_variable("S", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['_to']->value][$_smarty_tpl->tpl_vars['field']->value['matching_id']]) { ?> <?php $_smarty_tpl->tpl_vars["skip_field"] = new Smarty_variable(true, null, 0); ?> <?php } } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:profile_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:profile_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-control-group ty-profile-field__item ty-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['class'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if (($_smarty_tpl->tpl_vars['pref_field_name']->value != $_smarty_tpl->tpl_vars['field']->value['description'] || $_smarty_tpl->tpl_vars['field']->value['required'] == "Y") && (!$_smarty_tpl->tpl_vars['register']->value || $_smarty_tpl->tpl_vars['register']->value && $_smarty_tpl->tpl_vars['data_id']->value != "phone")) { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-control-group__title cm-profile-field <?php if ($_smarty_tpl->tpl_vars['field']->value['required'] == "Y") { ?> cm-required<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "P") { ?> cm-phone<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { ?> cm-zipcode<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "E") { ?> cm-email<?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } } ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "A") { ?> <?php $_smarty_tpl->tpl_vars['_country'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['General']['default_country'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['settings']->value['General']['default_state'] : $tmp, null, 0); ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select-state cm-state <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php if ($_smarty_tpl->tpl_vars['states']->value && $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['_country']->value]) { ?> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['_country']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <option <?php if ($_smarty_tpl->tpl_vars['_state']->value == $_smarty_tpl->tpl_vars['state']->value['code']) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['code'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['state'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </select><input <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> type="text" id="elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _d" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" size="32" maxlength="64" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_state']->value, ENT_QUOTES, 'UTF-8'); ?> " disabled="disabled" class="cm-state <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> ty-input-text hidden <?php if ($_smarty_tpl->tpl_vars['_class']->value) { ?> disabled<?php } ?> "/> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "O") { ?> <?php $_smarty_tpl->tpl_vars["_country"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['settings']->value['General']['default_country'] : $tmp, null, 0); ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select-country cm-country <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:country_selectbox_items")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:country_selectbox_items"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?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 <?php if ($_smarty_tpl->tpl_vars['_country']->value == $_smarty_tpl->tpl_vars['code']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:country_selectbox_items"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "C") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="N" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <input type="checkbox" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" <?php if ($_smarty_tpl->tpl_vars['value']->value == "Y") { ?> checked="checked"<?php } ?> class="checkbox <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "T") { ?> <textarea <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-input-textarea <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" cols="32" rows="3" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "D") { ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { ?> <?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['id_prefix']->value . "elm_" . (string) $_smarty_tpl->tpl_vars['field']->value['field_id'], 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['data_id']->value . "]", 'date_val' => $_smarty_tpl->tpl_vars['value']->value, 'start_year' => "1902", 'end_year' => "0", 'extra' => $_smarty_tpl->tpl_vars['disabled_param']->value), 0); ?> <?php } else { ?> <?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['id_prefix']->value . "elm_" . (string) $_smarty_tpl->tpl_vars['field']->value['field_id'], 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['data_id']->value . "]", 'date_val' => $_smarty_tpl->tpl_vars['value']->value, 'start_year' => "1902", 'end_year' => "0"), 0); ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "S") { ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <?php if ($_smarty_tpl->tpl_vars['field']->value['required'] != "Y") { ?> <option value="">--</option> <?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['field']->value['values']; 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 <?php if ($_smarty_tpl->tpl_vars['value']->value == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "R") { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], 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['field']->value['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['v']->index = -1; 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; $_smarty_tpl->tpl_vars['v']->index++; $_smarty_tpl->tpl_vars['v']->first = $_smarty_tpl->tpl_vars['v']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rfe"]['first'] = $_smarty_tpl->tpl_vars['v']->first; ?> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], 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['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->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['value']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['rfe']['first'] || $_smarty_tpl->tpl_vars['value']->value == $_smarty_tpl->tpl_vars['k']->value) { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "N") { ?> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _residential" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="residential" <?php if (!$_smarty_tpl->tpl_vars['value']->value || $_smarty_tpl->tpl_vars['value']->value == "residential") { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo $_smarty_tpl->__("address_residential"); ?> </span> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _commercial" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="commercial" <?php if ($_smarty_tpl->tpl_vars['value']->value == "commercial") { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo $_smarty_tpl->__("address_commercial"); ?> </span> <?php } elseif (!$_smarty_tpl->tpl_vars['register']->value || $_smarty_tpl->tpl_vars['register']->value && $_smarty_tpl->tpl_vars['data_id']->value != "phone") { ?> <input <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" size="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-input-text <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <?php } ?> <?php $_smarty_tpl->tpl_vars["pref_field_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['description'], null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { ?> <button type="button" class="ls_search_adress_button<?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> 2<?php } ?> ty-btn__secondary ty-btn" style="display: none"><?php echo $_smarty_tpl->__("ls_search_adress"); ?> </button> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:profile_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['section']->value == "B") { ?> <?php $_smarty_tpl->tpl_vars["address_flag"] = new Smarty_variable(true, null, 0); if ($_smarty_tpl->tpl_vars['address_flag']->value) { ?> <div class="ty-profile-field__switch ty-address-switch clearfix"> <div class="ty-profile-field__switch-label"><?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { echo $_smarty_tpl->__("shipping_same_as_billing"); } else { echo $_smarty_tpl->__("text_billing_same_with_shipping"); } ?> </div> <div class="ty-profile-field__switch-actions"> <input class="radio cm-switch-availability cm-switch-inverse cm-switch-visibility" type="radio" name="ship_to_another" value="0" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_yes" <?php if (!$_smarty_tpl->tpl_vars['ship_to_another']->value) { ?> checked="checked"<?php } ?> /><label for="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> <input class="radio cm-switch-availability cm-switch-visibility" type="radio" name="ship_to_another" value="1" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_no" <?php if ($_smarty_tpl->tpl_vars['ship_to_another']->value) { ?> checked="checked"<?php } ?> /><label for="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> </div> <?php } else { ?> <input type="hidden" name="ship_to_another" value="1" /> <?php } } if ($_smarty_tpl->tpl_vars['body_id']->value || $_smarty_tpl->tpl_vars['grid_wrap']->value) { ?> </div> </div> <?php } if (!($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "add") && $_smarty_tpl->tpl_vars['section']->value != "S" && $_smarty_tpl->tpl_vars['section']->value != "B") { ?> <div class="ty-profile-field__buttons buttons-container ls_save_profile_button_top"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[profiles.update]", 'but_meta' => "ty-btn__secondary", 'but_id' => "save_profile_but"), 0); ?> <input class="ty-profile-field__reset ty-btn ty-btn__tertiary" type="reset" name="reset" value="<?php echo $_smarty_tpl->__("revert"); ?> " id="shipping_address_reset"/> </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(); } 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/profiles/components/profile_fields.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/profiles/components/profile_fields.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 { ?> <?php $_smarty_tpl->tpl_vars["ship_to_another"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['show_email']->value) { ?> <div class="ty-control-group"> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_email" class="cm-required cm-email"><?php echo $_smarty_tpl->__("email"); ?> <i>*</i></label> <input type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_email" name="user_data[email]" size="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-input-text <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['disabled_param']->value, ENT_QUOTES, 'UTF-8'); ?> /> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['section']->value]) { ?> <?php if ($_smarty_tpl->tpl_vars['address_flag']->value && !$_smarty_tpl->tpl_vars['ship_to_another']->value && ($_smarty_tpl->tpl_vars['section']->value == "S" || $_smarty_tpl->tpl_vars['section']->value == "B") || $_smarty_tpl->tpl_vars['disabled_by_default']->value) { ?> <?php $_smarty_tpl->tpl_vars["disabled_param"] = new Smarty_variable("disabled=\"disabled\"", null, 0); ?> <?php $_smarty_tpl->tpl_vars["_class"] = new Smarty_variable("disabled", null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_fields"] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["disabled_param"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["_class"] = new Smarty_variable('', null, 0); } ?> <div class="clearfix profiles-profile_fields <?php if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> ls_profile_left_container <?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['body_id']->value || $_smarty_tpl->tpl_vars['grid_wrap']->value) { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['hide_fields']->value) { ?> hidden<?php } ?> "> <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['grid_wrap']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php } if (!$_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { if (!$_smarty_tpl->tpl_vars['nothing_extra']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['title']->value), 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars['ls_user_image'] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> <div class="ls_profile_page_image_container"> <div class="ls_user_image_container <?php if (!$_smarty_tpl->tpl_vars['ls_user_profile_image']->value) { ?> no-image<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['ls_user_profile_image']->value) { ?> <img id="ls_uploadPreview" src="/images/user_profile/<?php echo htmlspecialchars($_SESSION['auth']['user_id'], ENT_QUOTES, 'UTF-8'); ?> .jpg" /> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '1') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_mr.jpg" /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '2') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_mrs.jpg" /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['fields'][36] == '3') { ?> <img id="ls_uploadPreview" src="/images/user_profile/silhouette_miss.jpg" /> <?php } ?> <?php } ?> <label class="ls_upload_label"><?php echo $_smarty_tpl->__("ls_profile_image_label"); ?> </label> <input id="ls_uploadImage" type="file" name="p1" /> </div> </div> <div class="ls_profile_contact_details_container"> <?php } ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['section']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; if ($_smarty_tpl->tpl_vars['field']->value['field_name']) { ?> <?php $_smarty_tpl->tpl_vars["data_name"] = new Smarty_variable("user_data", null, 0); ?> <?php $_smarty_tpl->tpl_vars["data_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['field_name'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["value"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value[$_smarty_tpl->tpl_vars['data_id']->value], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["data_name"] = new Smarty_variable("user_data[fields]", null, 0); ?> <?php $_smarty_tpl->tpl_vars["data_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['field_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["value"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['fields'][$_smarty_tpl->tpl_vars['data_id']->value], null, 0); } ?> <?php $_smarty_tpl->tpl_vars["skip_field"] = new Smarty_variable(false, null, 0); if ($_smarty_tpl->tpl_vars['section']->value == "S" || $_smarty_tpl->tpl_vars['section']->value == "B") { ?> <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> <?php $_smarty_tpl->tpl_vars["_to"] = new Smarty_variable("B", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_to"] = new Smarty_variable("S", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['profile_fields']->value[$_smarty_tpl->tpl_vars['_to']->value][$_smarty_tpl->tpl_vars['field']->value['matching_id']]) { ?> <?php $_smarty_tpl->tpl_vars["skip_field"] = new Smarty_variable(true, null, 0); ?> <?php } } $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:profile_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:profile_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="ty-control-group ty-profile-field__item ty-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['class'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if (($_smarty_tpl->tpl_vars['pref_field_name']->value != $_smarty_tpl->tpl_vars['field']->value['description'] || $_smarty_tpl->tpl_vars['field']->value['required'] == "Y") && (!$_smarty_tpl->tpl_vars['register']->value || $_smarty_tpl->tpl_vars['register']->value && $_smarty_tpl->tpl_vars['data_id']->value != "phone")) { ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-control-group__title cm-profile-field <?php if ($_smarty_tpl->tpl_vars['field']->value['required'] == "Y") { ?> cm-required<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "P") { ?> cm-phone<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { ?> cm-zipcode<?php } if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "E") { ?> cm-email<?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } } ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "A") { ?> <?php $_smarty_tpl->tpl_vars['_country'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['General']['default_country'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['_state'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['settings']->value['General']['default_state'] : $tmp, null, 0); ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select-state cm-state <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> <?php if ($_smarty_tpl->tpl_vars['states']->value && $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['_country']->value]) { ?> <?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['state']->_loop = false; $_from = $_smarty_tpl->tpl_vars['states']->value[$_smarty_tpl->tpl_vars['_country']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) { $_smarty_tpl->tpl_vars['state']->_loop = true; ?> <option <?php if ($_smarty_tpl->tpl_vars['_state']->value == $_smarty_tpl->tpl_vars['state']->value['code']) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['code'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['state'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php } ?> </select><input <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> type="text" id="elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _d" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" size="32" maxlength="64" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_state']->value, ENT_QUOTES, 'UTF-8'); ?> " disabled="disabled" class="cm-state <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> ty-input-text hidden <?php if ($_smarty_tpl->tpl_vars['_class']->value) { ?> disabled<?php } ?> "/> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "O") { ?> <?php $_smarty_tpl->tpl_vars["_country"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['settings']->value['General']['default_country'] : $tmp, null, 0); ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select-country cm-country <?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> cm-location-shipping<?php } else { ?> cm-location-billing<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:country_selectbox_items")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:country_selectbox_items"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?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 <?php if ($_smarty_tpl->tpl_vars['_country']->value == $_smarty_tpl->tpl_vars['code']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:country_selectbox_items"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "C") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="N" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <input type="checkbox" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="Y" <?php if ($_smarty_tpl->tpl_vars['value']->value == "Y") { ?> checked="checked"<?php } ?> class="checkbox <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "T") { ?> <textarea <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-input-textarea <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" cols="32" rows="3" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "D") { ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { ?> <?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['id_prefix']->value . "elm_" . (string) $_smarty_tpl->tpl_vars['field']->value['field_id'], 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['data_id']->value . "]", 'date_val' => $_smarty_tpl->tpl_vars['value']->value, 'start_year' => "1902", 'end_year' => "0", 'extra' => $_smarty_tpl->tpl_vars['disabled_param']->value), 0); ?> <?php } else { ?> <?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['id_prefix']->value . "elm_" . (string) $_smarty_tpl->tpl_vars['field']->value['field_id'], 'date_name' => (string) $_smarty_tpl->tpl_vars['data_name']->value . "[" . (string) $_smarty_tpl->tpl_vars['data_id']->value . "]", 'date_val' => $_smarty_tpl->tpl_vars['value']->value, 'start_year' => "1902", 'end_year' => "0"), 0); ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "S") { ?> <select <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " class="ty-profile-field__select <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> > <?php if ($_smarty_tpl->tpl_vars['field']->value['required'] != "Y") { ?> <option value="">--</option> <?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['field']->value['values']; 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 <?php if ($_smarty_tpl->tpl_vars['value']->value == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "R") { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], 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['field']->value['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['v']->index = -1; 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; $_smarty_tpl->tpl_vars['v']->index++; $_smarty_tpl->tpl_vars['v']->first = $_smarty_tpl->tpl_vars['v']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["rfe"]['first'] = $_smarty_tpl->tpl_vars['v']->first; ?> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], 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['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->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['value']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['rfe']['first'] || $_smarty_tpl->tpl_vars['value']->value == $_smarty_tpl->tpl_vars['k']->value) { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "N") { ?> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _residential" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="residential" <?php if (!$_smarty_tpl->tpl_vars['value']->value || $_smarty_tpl->tpl_vars['value']->value == "residential") { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo $_smarty_tpl->__("address_residential"); ?> </span> <input class="radio <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " type="radio" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> _commercial" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="commercial" <?php if ($_smarty_tpl->tpl_vars['value']->value == "commercial") { ?> checked="checked"<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /><span class="radio"><?php echo $_smarty_tpl->__("address_commercial"); ?> </span> <?php } elseif (!$_smarty_tpl->tpl_vars['register']->value || $_smarty_tpl->tpl_vars['register']->value && $_smarty_tpl->tpl_vars['data_id']->value != "phone") { ?> <input <?php if ($_smarty_tpl->tpl_vars['field']->value['autocomplete_type']) { ?> x-autocompletetype="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['autocomplete_type'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> elm_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['field_id'], ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" size="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-input-text <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['_class']->value, ENT_QUOTES, 'UTF-8'); } else { ?> cm-skip-avail-switch<?php } ?> " <?php if (!$_smarty_tpl->tpl_vars['skip_field']->value) { echo $_smarty_tpl->tpl_vars['disabled_param']->value; } ?> /> <?php } ?> <?php $_smarty_tpl->tpl_vars["pref_field_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['field']->value['description'], null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['field_type'] == "Z") { ?> <button type="button" class="ls_search_adress_button<?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { ?> 2<?php } ?> ty-btn__secondary ty-btn" style="display: none"><?php echo $_smarty_tpl->__("ls_search_adress"); ?> </button> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:profile_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } if ($_smarty_tpl->tpl_vars['ls_upload_img_container']->value) { ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['section']->value == "B") { ?> <?php $_smarty_tpl->tpl_vars["address_flag"] = new Smarty_variable(true, null, 0); if ($_smarty_tpl->tpl_vars['address_flag']->value) { ?> <div class="ty-profile-field__switch ty-address-switch clearfix"> <div class="ty-profile-field__switch-label"><?php if ($_smarty_tpl->tpl_vars['section']->value == "S") { echo $_smarty_tpl->__("shipping_same_as_billing"); } else { echo $_smarty_tpl->__("text_billing_same_with_shipping"); } ?> </div> <div class="ty-profile-field__switch-actions"> <input class="radio cm-switch-availability cm-switch-inverse cm-switch-visibility" type="radio" name="ship_to_another" value="0" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_yes" <?php if (!$_smarty_tpl->tpl_vars['ship_to_another']->value) { ?> checked="checked"<?php } ?> /><label for="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_yes"><?php echo $_smarty_tpl->__("yes"); ?> </label> <input class="radio cm-switch-availability cm-switch-visibility" type="radio" name="ship_to_another" value="1" id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_no" <?php if ($_smarty_tpl->tpl_vars['ship_to_another']->value) { ?> checked="checked"<?php } ?> /><label for="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['body_id']->value, ENT_QUOTES, 'UTF-8'); ?> _suffix_no"><?php echo $_smarty_tpl->__("no"); ?> </label> </div> </div> <?php } else { ?> <input type="hidden" name="ship_to_another" value="1" /> <?php } } if ($_smarty_tpl->tpl_vars['body_id']->value || $_smarty_tpl->tpl_vars['grid_wrap']->value) { ?> </div> </div> <?php } if (!($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "add") && $_smarty_tpl->tpl_vars['section']->value != "S" && $_smarty_tpl->tpl_vars['section']->value != "B") { ?> <div class="ty-profile-field__buttons buttons-container ls_save_profile_button_top"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[profiles.update]", 'but_meta' => "ty-btn__secondary", 'but_id' => "save_profile_but"), 0); ?> <input class="ty-profile-field__reset ty-btn ty-btn__tertiary" type="reset" name="reset" value="<?php echo $_smarty_tpl->__("revert"); ?> " id="shipping_address_reset"/> </div> <?php } ?> </div> <?php } } } }
function content_55db8bdb361cd8_44258580($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('all_vendors', 'view_storefront', 'storefront_url_not_defined', 'manage_stores', 'vendor', 'manage_stores', 'view_storefront', 'vendor', 'manage_vendors', 'signed_in_as', 'edit_profile', 'sign_out', 'feedback_values', 'send_feedback', 'search_tooltip', 'go')); if (defined("THEMES_PANEL")) { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(5, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(36, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(41, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(0, null, 0); } ?> <?php if (!function_exists('smarty_template_function_menu_attrs')) { function smarty_template_function_menu_attrs($_smarty_tpl, $params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($_smarty_tpl->smarty->template_functions['menu_attrs']['parameter'] as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['attr'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['attrs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['attr']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attr']->value, ENT_QUOTES, 'UTF-8'); ?> ="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } $_smarty_tpl->tpl_vars = $saved_tpl_vars; foreach (Smarty::$global_tpl_vars as $key => $value) { if (!isset($_smarty_tpl->tpl_vars[$key])) { $_smarty_tpl->tpl_vars[$key] = $value; } } } } ?> <div class="navbar-admin-top"> <!--Navbar--> <div class="navbar navbar-inverse" id="header_navbar"> <div class="navbar-inner"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_variable($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <div class="nav-ult"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "menu:storefront_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "menu:storefront_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_data']['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable($_smarty_tpl->__("all_vendors"), null, 0); ?> <?php } ?> <li class="nav-company"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_data']['storefront']) { ?> <a href="<?php echo htmlspecialchars(fn_url("?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_data']['company_id'], "C"), ENT_QUOTES, 'UTF-8'); ?> " target="_blank" class="brand" title="<?php echo $_smarty_tpl->__("view_storefront"); ?> "> <i class="icon-shopping-cart icon-white"></i> </a> <?php } else { ?> <a class="brand" title="<?php echo $_smarty_tpl->__("storefront_url_not_defined"); ?> "><i class="icon-shopping-cart icon-white cm-tooltip"></i></a> <?php } ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "menu:storefront_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['companies_available_count'] > 1) { ?> <ul class="nav"> <?php $_smarty_tpl->_capture_stack[0][] = array("extra_content", null, null); ob_start(); ?> <?php if (fn_check_view_permissions("companies.manage", "GET")) { ?> <li class="divider"></li> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_stores"); ?> ...</a></li> <?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/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "companies.get_companies_list?show_all=Y&action=href", 'text' => $_smarty_tpl->tpl_vars['name']->value, 'id' => "top_company_id", 'type' => "list", 'extra_content' => Smarty::$_smarty_vars['capture']['extra_content']), 0); ?> </ul> <?php } else { ?> <ul class="nav"> <?php if ($_smarty_tpl->tpl_vars['auth']->value['company_id']) { ?> <li class="dropdown"> <a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("vendor"); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } else { ?> <?php if (fn_check_view_permissions("companies.manage", "GET")) { ?> <li class="dropdown vendor-submenu"> <a class=" dropdown-toggle" data-toggle="dropdown"> <span><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value, 60, "...", true), ENT_QUOTES, 'UTF-8'); ?> </span><b class="caret"></b> </a> <ul class="dropdown-menu" id="top_company_id_ajax_select_object"> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_stores"); ?> ...</a></li> </ul> </li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR") && !$_smarty_tpl->tpl_vars['runtime']->value['simple_ultimate']) { ?> <ul class="nav"> <li class="nav-company"> <a href="<?php echo htmlspecialchars(htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['http_location']), ENT_QUOTES, 'UTF-8', true), ENT_QUOTES, 'UTF-8'); ?> " target="_blank" class="brand" title="<?php echo $_smarty_tpl->__("view_storefront"); ?> "> <i class="icon-shopping-cart icon-white"></i> </a> <a href="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " class="brand"><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], 60, "...", true), ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor']) { ?> <?php $_smarty_tpl->tpl_vars["company_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["company_name"] = new Smarty_variable(smarty_modifier_truncate($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], 43, "...", true), null, 0); ?> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['auth']->value['company_id']) { ?> <li class="dropdown"> <a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("vendor"); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } else { ?> <?php if (fn_check_view_permissions("companies.get_companies_list", "GET")) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("extra_content", null, null); ob_start(); ?> <li class="divider"></li> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_vendors"); ?> ...</a></li> <?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/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "companies.get_companies_list?show_all=Y&action=href", 'text' => $_smarty_tpl->tpl_vars['company_name']->value, 'id' => "top_company_id", 'type' => "list", 'extra_content' => Smarty::$_smarty_vars['capture']['extra_content']), 0); ?> <?php } else { ?> <li class="dropdown"> <a class="unedited-element"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_name']->value, ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> </ul> <?php } ?> <ul class="nav hover-show navbar-right"> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['navigation']->value['static']) { ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['first_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['static']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars['first_level_title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li class="dropdown dropdown-top-menu-item<?php if ($_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> "> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " href="#" class="dropdown-toggle <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " data-toggle="dropdown"> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['first_level_title']->value); ?> <b class="caret"></b> </a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars["second_level"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["second_level"]->_loop = false; $_smarty_tpl->tpl_vars['second_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['m']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["second_level"]->key => $_smarty_tpl->tpl_vars["second_level"]->value) { $_smarty_tpl->tpl_vars["second_level"]->_loop = true; $_smarty_tpl->tpl_vars['second_level_title']->value = $_smarty_tpl->tpl_vars["second_level"]->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> dropdown-submenu<?php } if ($_smarty_tpl->tpl_vars['second_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['subsection']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['main'])); ?> > <?php if ($_smarty_tpl->tpl_vars['second_level']->value['type'] == "title") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href']) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['second_level']->value['title']) === null || $tmp === '' ? $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value) : $tmp, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } elseif ($_smarty_tpl->tpl_vars['second_level']->value['type'] != "divider") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href']) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['second_level']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['second_level']->value['title']) === null || $tmp === '' ? $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value) : $tmp, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['sm'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sm']->_loop = false; $_smarty_tpl->tpl_vars['subitem_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['second_level']->value['subitems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sm']->key => $_smarty_tpl->tpl_vars['sm']->value) { $_smarty_tpl->tpl_vars['sm']->_loop = true; $_smarty_tpl->tpl_vars['subitem_title']->value = $_smarty_tpl->tpl_vars['sm']->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['sm']->value['active']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['sm']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['main'])); ?> > <?php if ($_smarty_tpl->tpl_vars['sm']->value['type'] == "title") { ?> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> <?php } elseif ($_smarty_tpl->tpl_vars['sm']->value['type'] != "divider") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subitem_title']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['sm']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['href'])); ?> ><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> </a> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['sm']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } ?> <?php } ?> </ul> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } ?> <?php } ?> </ul> </li> <?php } ?> <?php } ?> <!-- end navbar--> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1 || sizeof($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <li class="divider-vertical"></li> <?php } ?> <!--language--> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "dropdown", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('CART_LANGUAGE'), 'display_icons' => true, 'key_name' => "name", 'key_selected' => "lang_code", 'class' => "languages"), 0); ?> <?php } ?> <?php } ?> <!--end language--> <!--Curriencies--> <?php if (sizeof($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "dropdown", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "currency="), 'items' => $_smarty_tpl->tpl_vars['currencies']->value, 'selected_id' => $_smarty_tpl->tpl_vars['secondary_currency']->value, 'display_icons' => false, 'key_name' => "description", 'key_selected' => "currency_code"), 0); ?> <?php } ?> <!--end curriencies--> <li class="divider-vertical"></li> <!-- user menu --> <li class="dropdown dropdown-top-menu-item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:top_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:top_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-white icon-user"></i> <b class="caret"></b> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:top_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <ul class="dropdown-menu pull-right"> <li class="disabled"> <a><strong><?php echo $_smarty_tpl->__("signed_in_as"); ?> </strong><br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_info']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <li class="divider"></li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "menu:profile")); $_block_repeat = true; echo smarty_block_hook(array('name' => "menu:profile"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['auth']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("edit_profile"); ?> </a></li> <li><a href="<?php echo htmlspecialchars(fn_url("auth.logout"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("sign_out"); ?> </a></li> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <li class="divider"></li> <li> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "group" . (string) $_smarty_tpl->tpl_vars['id_prefix']->value . "feedback", 'edit_onclick' => $_smarty_tpl->tpl_vars['onclick']->value, 'text' => __("feedback_values"), 'act' => "link", 'picker_meta' => "cm-clear-content", 'link_text' => __("send_feedback", array("[product]" => @constant('PRODUCT_NAME'))), 'content' => Smarty::$_smarty_vars['capture']['update_block'], 'href' => "feedback.prepare", 'no_icon_link' => true, 'but_name' => "dispatch[feedback.send]", 'opener_ajax_class' => "cm-ajax"), 0); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "menu:profile"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </li> <!--end user menu --> <?php } ?> </ul> </div> <!--header_navbar--></div> <!--Subnav--> <div class="subnav cm-sticky-scroll" data-ce-top="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_scroll']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ce-padding="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_padding']->value, ENT_QUOTES, 'UTF-8'); ?> " id="header_subnav"> <!--quick search--> <div class="search pull-right"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:global_search")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:global_search"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <form id="global_search" method="get" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="dispatch" value="search.results" /> <input type="hidden" name="compact" value="Y" /> <button class="icon-search cm-tooltip " type="submit" title="<?php echo $_smarty_tpl->__("search_tooltip"); ?> " id="search_button"><?php echo $_smarty_tpl->__("go"); ?> </button> <label for="gs_text"><input type="text" class="cm-autocomplete-off" id="gs_text" name="q" value="<?php echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8'); ?> " /></label> </form> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:global_search"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <!--end quick search--> <!-- quick menu --> <?php echo $_smarty_tpl->getSubTemplate("common/quick_menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <!-- end quick menu --> <ul class="nav hover-show nav-pills"> <li><a href="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " class="home"><i class="icon-home"></i></a></li> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['navigation']->value['static']) { ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['first_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['static']['central']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars['first_level_title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li class="dropdown <?php if ($_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> "> <a href="#" class="dropdown-toggle" data-toggle="dropdown" > <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['first_level_title']->value); ?> <b class="caret"></b> </a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars["second_level"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["second_level"]->_loop = false; $_smarty_tpl->tpl_vars['second_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['m']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["second_level"]->key => $_smarty_tpl->tpl_vars["second_level"]->value) { $_smarty_tpl->tpl_vars["second_level"]->_loop = true; $_smarty_tpl->tpl_vars['second_level_title']->value = $_smarty_tpl->tpl_vars["second_level"]->key; ?> <li class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> dropdown-submenu<?php } if ($_smarty_tpl->tpl_vars['second_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['subsection'] && $_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['main'])); ?> ><a class="<?php if ($_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (!$_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['second_level']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> > <span><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value); if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'] == 'is-addon') { ?> <i class="icon-is-addon"></i><?php } ?> </span> <?php if ($_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level']->value['description']) != "_" . (string) $_smarty_tpl->tpl_vars['second_level_title']->value . "_menu_description") { if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['show_menu_descriptions'] == "Y") { ?> <span class="hint"><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level']->value['description']); ?> </span><?php } } ?> </a> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['sm'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sm']->_loop = false; $_smarty_tpl->tpl_vars['subitem_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['second_level']->value['subitems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sm']->key => $_smarty_tpl->tpl_vars['sm']->value) { $_smarty_tpl->tpl_vars['sm']->_loop = true; $_smarty_tpl->tpl_vars['subitem_title']->value = $_smarty_tpl->tpl_vars['sm']->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['sm']->value['active']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['sm']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['main'])); ?> ><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['sm']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['href'])); ?> ><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> </a></li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> </ul> </li> <?php } ?> <?php } ?> </ul> <!--header_subnav--></div> </div> <?php $_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(_, $) { $('.navbar-right li').hover(function() { var pagePosition = $(".admin-content").offset(); var adminContentWidth = 1240; if($(this).hasClass('dropdown-submenu')) { var elmPosition = $(this).find('.dropdown-menu').offset().left + $(this).find('.dropdown-menu').width(); if((elmPosition - pagePosition.left) > adminContentWidth) { $(this).find('.dropdown-menu').addClass('dropdown-menu-to-right'); } } }, function() { $(this).find('.dropdown-menu').removeClass('dropdown-menu-to-right'); }); }(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 }