public function authPage($page) { $access_id = self::getAccessID('A'); $data = array('page' => $page, 'ttl' => self::TWIGMO_SERVER_TTL, 'customer_access_id' => self::getAccessID('C'), 'access_id' => $access_id); $meta = array('access_id' => $access_id); $response = $this->send('auth.token', $data, $meta); if (!$this->responseIsOk($response)) { die(str_replace(array('[linkOpen]', '[linkClose]'), array('<a href="' . fn_url('addons.update&addon=twigmo') . '">', '</a>'), $this->_getLangVar('twgadmin_no_token_recieved'))); } $url = fn_link_attach($response['data']['url'], 'sl=' . strtolower(CART_LANGUAGE)); fn_redirect($url, true); }
/** * Smarty plugin * @package Smarty * @subpackage plugins */ function smarty_function_script($params, &$smarty) { static $scripts = array(); if (!isset($scripts[$params['src']])) { if (strpos($params['src'], '//') === false) { $src = Registry::get('config.current_location') . '/' . fn_link_attach($params['src'], 'ver=' . PRODUCT_VERSION); } else { $src = $params['src']; } $scripts[$params['src']] = '<script type="text/javascript"' . (!empty($params['class']) ? ' class="' . $params['class'] . '" ' : '') . ' src="' . $src . '" ' . (isset($params['charset']) ? 'charset="' . $params['charset'] . '"' : '') . (isset($params['escape']) ? '><\\/script>' : '></script>'); if (defined('AJAX_REQUEST') || Registry::get('runtime.inside_scripts')) { return $scripts[$params['src']]; } else { if (isset($params['no-defer']) && $params['no-defer']) { return $scripts[$params['src']]; } else { $cache_name = $smarty->getTemplateVars('block_cache_name'); if (!empty($cache_name)) { $cached_content = Registry::get($cache_name); if (!isset($cached_content['javascript'])) { $cached_content['javascript'] = ''; } $cached_content['javascript'] .= $scripts[$params['src']]; Registry::set($cache_name, $cached_content, true); } $repeat = false; $smarty->loadPlugin('smarty_block_inline_script'); smarty_block_inline_script(array(), $scripts[$params['src']], $smarty, $repeat); return '<!-- Inline script moved to the bottom of the page -->'; } } } }
function content_55dc7cc64036d7_14162086($_smarty_tpl) { fn_preload_lang_vars(array('switch_layout')); ?> <div id="content_blocks"> <?php if (count($_smarty_tpl->tpl_vars['layouts']->value) > 1) { ?> <div class="form-horizontal form-edit"> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("switch_layout"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "s_layout="), 'items' => $_smarty_tpl->tpl_vars['layouts']->value, 'selected_id' => $_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id'], 'key_name' => "name", 'display_icons' => false, 'target_id' => "content_blocks"), 0); ?> </div> </div> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/block_manager/manage.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div><?php }
function fn_rewrite_links($body_html, $newsletter_id, $campaign_id) { $regex = "/href=('|\")((?:http|ftp|https):\\/\\/[\\w-\\.]+[?]?[-\\w:\\+?\\/?\\.\\=%&;~\\[\\]]+)/i"; $url = fn_url('newsletters.track', 'C', 'http'); $body_html = preg_replace_callback($regex, function ($matches) use($url, $newsletter_id, $campaign_id) { return 'href=' . $matches[1] . fn_link_attach($url, 'link=' . (fn_register_link($matches[2], $newsletter_id, $campaign_id) . "-" . $newsletter_id . "-" . $campaign_id)); }, $body_html); return $body_html; }
/** * Smarty plugin * @package Smarty * @subpackage plugins */ function smarty_function_script($params, &$smarty) { static $scripts = array(); if (!isset($scripts[$params['src']])) { $src = (strpos($params['src'], '//') === false ? Registry::get('config.current_location') . '/' : '') . fn_link_attach($params['src'], 'ver=' . PRODUCT_VERSION); $scripts[$params['src']] = '<script type="text/javascript"' . (!empty($params['class']) ? ' class="' . $params['class'] . '" ' : '') . ' src="' . $src . '" ' . (isset($params['charset']) ? 'charset="' . $params['charset'] . '"' : '') . '></script>'; return $scripts[$params['src']]; } }
function content_55e61f9bdb93e2_96432545($_smarty_tpl) { 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('close')); echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <div class="clear" id="ds_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="section-border"> <?php echo $_smarty_tpl->tpl_vars['section_content']->value; ?> <?php if ($_smarty_tpl->tpl_vars['section_state']->value) { ?> <p align="right"> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php echo $_smarty_tpl->__("close"); ?> </a> </p> <?php } ?> </div> </div><?php }
function content_55ccecdca7e3d0_14419675($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('close')); echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <div class="clear" id="ds_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="section-border"> <?php echo $_smarty_tpl->tpl_vars['section_content']->value; ?> <?php if ($_smarty_tpl->tpl_vars['section_state']->value) { ?> <p align="right"> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php echo $_smarty_tpl->__("close"); ?> </a> </p> <?php } ?> </div> </div><?php }
if (empty($items_schema['func'])) { $c_elm = ''; } else { $c_elm = $items_schema['func']; foreach ($c_elm as $k => $v) { if (strpos($v, '@') !== false) { $ind = str_replace('@', '', $v); if (!empty($auth[$ind]) || !empty($_REQUEST[$ind])) { $c_elm[$k] = $ind == 'user_id' && empty($_REQUEST[$ind]) ? $auth[$ind] : $_REQUEST[$ind]; } } } } $url = Registry::get('config.current_url'); if (fn_allowed_for('ULTIMATE') && !Registry::get('runtime.simple_ultimate')) { $url = fn_link_attach($url, 'switch_company_id=' . Registry::ifGet('runtime.company_id', 'all')); $url = str_replace('&', '&', $url); // FIXME: workaround for fn_link_attach return result } $last_item = array('func' => $c_elm, 'url' => $url, 'icon' => empty($items_schema['icon']) ? '' : $items_schema['icon'], 'text' => empty($items_schema['text']) ? '' : $items_schema['text']); $current_hash = fn_crc32(!empty($c_elm) ? implode('', $c_elm) : $items_schema['text']); // remove element if it already exists and add it to the end of history unset($last_edited_items[$current_hash]); $last_edited_items[$current_hash] = $last_item; if (count($last_edited_items) > $last_items_cnt) { foreach ($last_edited_items as $k => $v) { unset($last_edited_items[$k]); if (count($last_edited_items) == $last_items_cnt) { break; } }
/** * Sets view tools * * @param int $current_pos Current position * @param int $next_id Next element id * @param int $prev_id Previous element id * @param int $total_items Total items * @return boolean Always true */ protected function _setViewTools($current_pos, $next_id, $prev_id, $total_items) { $view_tools = array('prev_id' => $prev_id, 'next_id' => $next_id, 'total' => $total_items, 'current' => $current_pos, 'prev_url' => fn_link_attach(Registry::get('config.current_url'), $this->_schema['item_id'] . '=' . $prev_id), 'next_url' => fn_link_attach(Registry::get('config.current_url'), $this->_schema['item_id'] . '=' . $next_id)); if (!empty($this->_schema['show_item_id'])) { $view_tools['show_item_id'] = $this->_schema['show_item_id']; } if (!empty($this->_schema['links_label'])) { $view_tools['links_label'] = __($this->_schema['links_label']); } \Tygh::$app['view']->assign('view_tools', $view_tools); return true; }
/** * Dispathes the execution control to correct controller * * @return nothing */ function fn_dispatch($controller = '', $mode = '', $action = '', $dispatch_extra = '', $area = AREA) { Debugger::checkpoint('After init'); $auth = $_SESSION['auth']; $controller = empty($controller) ? Registry::get('runtime.controller') : $controller; $mode = empty($mode) ? Registry::get('runtime.mode') : $mode; $action = empty($action) ? Registry::get('runtime.action') : $action; $dispatch_extra = empty($dispatch_extra) ? Registry::get('runtime.dispatch_extra') : $dispatch_extra; fn_set_hook('before_dispatch', $controller, $mode, $action, $dispatch_extra, $area); $view = Registry::get('view'); $run_controllers = true; $external = false; $status = CONTROLLER_STATUS_NO_PAGE; // CSRF protection if (fn_is_csrf_protection_enabled($auth) && !fn_csrf_validate_request(array('server' => $_SERVER, 'request' => $_REQUEST, 'session' => $_SESSION, 'controller' => $controller, 'mode' => $mode, 'action' => $action, 'dispatch_extra' => $dispatch_extra, 'area' => $area, 'auth' => $auth))) { fn_set_notification('E', __('error'), __('text_csrf_attack')); fn_redirect(fn_url()); } // If $config['http_host'] was different from the domain name, there was redirection to $config['http_host'] value. if (strtolower(Registry::get('config.current_host')) != strtolower(REAL_HOST) && $_SERVER['REQUEST_METHOD'] == 'GET' && !defined('CONSOLE')) { if (!empty($_SERVER['REDIRECT_URL'])) { $qstring = $_SERVER['REDIRECT_URL']; } else { if (!empty($_SERVER['REQUEST_URI'])) { $qstring = $_SERVER['REQUEST_URI']; } else { $qstring = Registry::get('config.current_url'); } } $curent_path = Registry::get('config.current_path'); if (!empty($curent_path) && strpos($qstring, $curent_path) === 0) { $qstring = substr_replace($qstring, '', 0, fn_strlen($curent_path)); } fn_redirect(Registry::get('config.current_location') . $qstring, false, true); } $upload_max_filesize = Bootstrap::getIniParam('upload_max_filesize'); $post_max_size = Bootstrap::getIniParam('post_max_size'); if (!defined('AJAX_REQUEST') && isset($_SERVER['CONTENT_LENGTH']) && ($_SERVER['CONTENT_LENGTH'] > fn_return_bytes($upload_max_filesize) || $_SERVER['CONTENT_LENGTH'] > fn_return_bytes($post_max_size))) { $max_size = fn_return_bytes($upload_max_filesize) < fn_return_bytes($post_max_size) ? $upload_max_filesize : $post_max_size; fn_set_notification('E', __('error'), __('text_forbidden_uploaded_file_size', array('[size]' => $max_size))); fn_redirect($_SERVER['HTTP_REFERER']); } // If URL contains session ID, remove it if (!defined('AJAX_REQUEST') && !empty($_REQUEST[Session::getName()]) && $_SERVER['REQUEST_METHOD'] == 'GET') { fn_redirect(fn_query_remove(Registry::get('config.current_url'), Session::getName())); } // If demo mode is enabled, check permissions FIX ME - why did we need one more user login check? if ($area == 'A') { if (Registry::get('config.demo_mode') == true) { $run_controllers = fn_check_permissions($controller, $mode, 'demo'); if ($run_controllers == false) { fn_set_notification('W', __('demo_mode'), __('demo_mode_content_text'), 'K', 'demo_mode'); if (defined('AJAX_REQUEST')) { exit; } fn_delete_notification('changes_saved'); $status = CONTROLLER_STATUS_REDIRECT; $_REQUEST['redirect_url'] = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : fn_url(''); } } else { $run_controllers = fn_check_permissions($controller, $mode, 'admin', '', $_REQUEST); if ($run_controllers == false) { if (defined('AJAX_REQUEST')) { $_info = Debugger::isActive() || fn_is_development() ? ' ' . $controller . '.' . $mode : ''; fn_set_notification('W', __('warning'), __('access_denied') . $_info); exit; } $status = CONTROLLER_STATUS_DENIED; } } } if ($_SERVER['REQUEST_METHOD'] != 'POST' && !defined('AJAX_REQUEST')) { if ($area == 'A' && empty($_REQUEST['keep_location']) && !defined('CONSOLE')) { if (!defined('HTTPS') && Registry::get('settings.Security.secure_admin') == 'Y') { fn_redirect(Registry::get('config.https_location') . '/' . Registry::get('config.current_url')); } elseif (defined('HTTPS') && Registry::get('settings.Security.secure_admin') != 'Y') { fn_redirect(Registry::get('config.http_location') . '/' . Registry::get('config.current_url')); } } elseif ($area == 'C') { $secure_controllers = fn_get_secure_controllers(); // if we are not on https but controller is secure, redirect to https if (!defined('HTTPS') && (Registry::get('settings.Security.secure_storefront') == 'full' || isset($secure_controllers[$controller]) && $secure_controllers[$controller] == 'active')) { fn_redirect(Registry::get('config.https_location') . '/' . Registry::get('config.current_url'), false, true); } // if we are on https and the controller is insecure, redirect to http if (defined('HTTPS') && Registry::get('settings.Security.secure_storefront') != 'full' && !isset($secure_controllers[$controller]) && Registry::get('settings.Security.keep_https') != 'Y') { fn_redirect(Registry::get('config.http_location') . '/' . Registry::get('config.current_url'), false, true); } } } LastView::instance()->prepare($_REQUEST); $controllers_cascade = array(); $controllers_list = array('init'); if ($run_controllers == true) { $controllers_list[] = $controller; $controllers_list = array_unique($controllers_list); } foreach ($controllers_list as $ctrl) { $core_controllers = fn_init_core_controllers($ctrl); list($addon_controllers) = fn_init_addon_controllers($ctrl); if (empty($core_controllers) && empty($addon_controllers)) { //$controllers_cascade = array(); // FIXME: controllers_cascade contains INIT. We should not clear initiation code. $status = CONTROLLER_STATUS_NO_PAGE; $run_controllers = false; break; } if (count($core_controllers) + count($addon_controllers) > 1) { throw new DeveloperException('Duplicate controller ' . $controller . var_export(array_merge($core_controllers, $addon_controllers), true)); } $core_pre_controllers = fn_init_core_controllers($ctrl, GET_PRE_CONTROLLERS); $core_post_controllers = fn_init_core_controllers($ctrl, GET_POST_CONTROLLERS); list($addon_pre_controllers) = fn_init_addon_controllers($ctrl, GET_PRE_CONTROLLERS); list($addon_post_controllers, $addons) = fn_init_addon_controllers($ctrl, GET_POST_CONTROLLERS); // we put addon post-controller to the top of post-controller cascade if current addon serves this request if (count($addon_controllers)) { $addon_post_controllers = fn_reorder_post_controllers($addon_post_controllers, $addon_controllers[0]); } $controllers_cascade = array_merge($controllers_cascade, $addon_pre_controllers, $core_pre_controllers, $core_controllers, $addon_controllers, $core_post_controllers, $addon_post_controllers); if (empty($controllers_cascade)) { throw new DeveloperException("No controllers for: {$ctrl}"); } } if ($mode == 'add') { $tpl = 'update.tpl'; } elseif (strpos($mode, 'add_') === 0) { $tpl = str_replace('add_', 'update_', $mode) . '.tpl'; } else { $tpl = $mode . '.tpl'; } $view = Registry::get('view'); if ($view->templateExists('views/' . $controller . '/' . $tpl)) { // try to find template in base views $view->assign('content_tpl', 'views/' . $controller . '/' . $tpl); } elseif (defined('LOADED_ADDON_PATH') && $view->templateExists('addons/' . LOADED_ADDON_PATH . '/views/' . $controller . '/' . $tpl)) { // try to find template in addon views $view->assign('content_tpl', 'addons/' . LOADED_ADDON_PATH . '/views/' . $controller . '/' . $tpl); } elseif (!empty($addons)) { // try to find template in addon views that extend base views foreach ($addons as $addon => $_v) { if ($view->templateExists('addons/' . $addon . '/views/' . $controller . '/' . $tpl)) { $view->assign('content_tpl', 'addons/' . $addon . '/views/' . $controller . '/' . $tpl); break; } } } /** * Performs actions after template assignment and before controller run * * @param string $controller controller name * @param string $mode controller mode name * @param string $area current working area * @param array $controllers_cascade list of controllers to run */ fn_set_hook('dispatch_assign_template', $controller, $mode, $area, $controllers_cascade); foreach ($controllers_cascade as $item) { $_res = fn_run_controller($item, $controller, $mode, $action, $dispatch_extra); // 0 - status, 1 - url $url = !empty($_res[1]) ? $_res[1] : ''; $external = !empty($_res[2]) ? $_res[2] : false; $permanent = !empty($_res[3]) ? $_res[3] : false; // Status could be changed only if we allow to run controllers despite of init controller if ($run_controllers == true) { $status = !empty($_res[0]) ? $_res[0] : CONTROLLER_STATUS_OK; } if ($status == CONTROLLER_STATUS_OK && !empty($url)) { $redirect_url = $url; } elseif ($status == CONTROLLER_STATUS_REDIRECT && !empty($url)) { $redirect_url = $url; break; } elseif ($status == CONTROLLER_STATUS_DENIED || $status == CONTROLLER_STATUS_NO_PAGE) { break; } } LastView::instance()->init($_REQUEST); // In console mode, just stop here if (defined('CONSOLE')) { $notifications = fn_get_notifications(); $exit_code = 0; foreach ($notifications as $n) { fn_echo('[' . $n['title'] . '] ' . $n['message'] . "\n"); if ($n['type'] == 'E') { $exit_code = 1; } } exit($exit_code); } if (!empty($auth['this_login']) && Registry::ifGet($auth['this_login'], 'N') === 'Y') { fn_set_notification('E', __('error'), __(ACCOUNT_TYPE . LOGIN_STATUS_USER_DISABLED)); $status = CONTROLLER_STATUS_DENIED; } // [Block manager] // block manager is disabled for vendors. if (!(fn_allowed_for('MULTIVENDOR') && Registry::get('runtime.company_id') || fn_allowed_for('ULTIMATE') && !Registry::get('runtime.company_id'))) { if (fn_check_permissions('block_manager', 'manage', 'admin')) { $dynamic_object = SchemesManager::getDynamicObject($_REQUEST['dispatch'], $area, $_REQUEST); if (!empty($dynamic_object)) { if ($area == 'A' && Registry::get('runtime.mode') != 'add' && !empty($_REQUEST[$dynamic_object['key']])) { $object_id = $_REQUEST[$dynamic_object['key']]; $location = Location::instance()->get($dynamic_object['customer_dispatch'], $dynamic_object, CART_LANGUAGE); if (!empty($location) && $location['is_default'] != 1) { $params = array('dynamic_object' => array('object_type' => $dynamic_object['object_type'], 'object_id' => $object_id), $dynamic_object['key'] => $object_id, 'manage_url' => Registry::get('config.current_url')); Registry::set('navigation.tabs.blocks', array('title' => __('layouts'), 'href' => 'block_manager.manage_in_tab?' . http_build_query($params), 'ajax' => true)); } } } } } // [/Block manager] // Redirect if controller returned successful/redirect status only if (in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT)) && !empty($_REQUEST['redirect_url']) && !$external) { $redirect_url = $_REQUEST['redirect_url']; } // If controller returns "Redirect" status, check if redirect url exists if ($status == CONTROLLER_STATUS_REDIRECT && empty($redirect_url)) { $status = CONTROLLER_STATUS_NO_PAGE; } // In backend show "changes saved" notification if ($area == 'A' && $_SERVER['REQUEST_METHOD'] == 'POST' && in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT))) { if (strpos($mode, 'update') !== false && $mode != 'update_status' && $mode != 'update_mode' && !fn_notification_exists('extra', 'demo_mode') && !fn_notification_exists('type', 'E')) { fn_set_notification('N', __('notice'), __('text_changes_saved'), 'I', 'changes_saved'); } } // Attach params and redirect if needed if (in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT)) && !empty($redirect_url)) { if (!isset($_REQUEST['return_to_list'])) { $params = array('page', 'selected_section', 'active_tab'); $url_params = array(); foreach ($params as $param) { if (!empty($_REQUEST[$param])) { $url_params[$param] = $_REQUEST[$param]; } } if (!empty($url_params)) { $redirect_url = fn_link_attach($redirect_url, http_build_query($url_params)); } } if (!isset($external)) { $external = false; } if (!isset($permanent)) { $permanent = false; } fn_redirect($redirect_url, $external, $permanent); } if (!$view->getTemplateVars('content_tpl') && $status == CONTROLLER_STATUS_OK) { // FIXME $status = CONTROLLER_STATUS_NO_PAGE; } if ($status != CONTROLLER_STATUS_OK) { if ($status == CONTROLLER_STATUS_NO_PAGE) { if ($area == 'A' && empty($auth['user_id'])) { // If admin is not logged in redirect to login page from not found page fn_set_notification('W', __('page_not_found'), __('page_not_found_text')); fn_redirect("auth.login_form"); } header(' ', true, 404); } $view->assign('exception_status', $status); if ($area == 'A') { $view->assign('content_tpl', 'exception.tpl'); // for backend only } if ($status == CONTROLLER_STATUS_DENIED) { $view->assign('page_title', __('access_denied')); } elseif ($status == CONTROLLER_STATUS_NO_PAGE) { $view->assign('page_title', __('page_not_found')); } } fn_set_hook('dispatch_before_display'); Debugger::checkpoint('Before TPL'); // Pass current URL to ajax response only if we render whole page if (defined('AJAX_REQUEST') && Registry::get('runtime.root_template') == 'index.tpl') { Registry::get('ajax')->assign('current_url', fn_url(Registry::get('config.current_url'), $area, 'current')); } Registry::get('view')->display(Registry::get('runtime.root_template')); Debugger::checkpoint('After TPL'); Debugger::display(); fn_set_hook('complete'); if (defined('AJAX_REQUEST')) { // HHVM workaround. Destroy Ajax object manually if it has been created. $ajax = Registry::get('ajax'); $ajax = null; } exit; // stop execution }
function content_55db8bdb55d9a2_72459790($_smarty_tpl) { 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('editing_quick_menu_section', 'new_section', 'editing_quick_menu_link', 'new_link', 'quick_menu', 'remove_this_item', 'remove_this_item', 'add_link', 'show_menu_on_mouse_over', 'add_section', 'done', 'edit', 'name', 'link', 'position', 'use_current_link')); if (fn_check_view_permissions("tools.show_quick_menu")) { ?> <?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"> Tygh.tr('editing_quick_menu_section', '<?php echo strtr($_smarty_tpl->__("editing_quick_menu_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('new_section', '<?php echo strtr($_smarty_tpl->__("new_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('editing_quick_menu_link', '<?php echo strtr($_smarty_tpl->__("editing_quick_menu_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('new_link', '<?php echo strtr($_smarty_tpl->__("new_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); <?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 class="quick-menu-container" id="quick_menu"> <div class="quick-menu <?php if ($_smarty_tpl->tpl_vars['settings']->value['show_menu_mouseover'] == "Y") { ?> quick-menu-show-on-hover<?php } ?> "> <a id="sw_quick_menu_content" class="quick-menu-link <?php if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value || $_smarty_tpl->tpl_vars['expand_quick_menu']->value) { ?> open<?php } ?> cm-combination"><?php echo $_smarty_tpl->__("quick_menu"); ?> </a> <div id="quick_menu_content" class="quick-menu-content cm-popup-box<?php if (!$_smarty_tpl->tpl_vars['edit_quick_menu']->value && !$_smarty_tpl->tpl_vars['expand_quick_menu']->value) { ?> hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value) { ?> <div class="menu-container"> <table width="100%"> <?php $_smarty_tpl->tpl_vars['sect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sect']->_loop = false; $_smarty_tpl->tpl_vars['sect_id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['quick_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sect']->key => $_smarty_tpl->tpl_vars['sect']->value) { $_smarty_tpl->tpl_vars['sect']->_loop = true; $_smarty_tpl->tpl_vars['sect_id']->value = $_smarty_tpl->tpl_vars['sect']->key; ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect_id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="0" data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td class="nowrap section-header"> <strong class="cm-qm-name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['name'], ENT_QUOTES, 'UTF-8'); ?> </strong> </td> <td class="hidden-tools nowrap right"> <i title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " class="icon-trash hand valign cm-delete-section"></i> <i class="icon-edit hand cm-update-item"></i> </td> </tr> <?php $_smarty_tpl->tpl_vars['subsect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subsect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sect']->value['subsection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subsect']->key => $_smarty_tpl->tpl_vars['subsect']->value) { $_smarty_tpl->tpl_vars['subsect']->_loop = true; ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['menu_id'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['parent_id'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td class="nowrap"> <a class="cm-qm-name" href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['subsect']->value['url']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> </td> <td class="hidden-tools nowrap right"> <i title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " class="icon-trash hand valign cm-delete-section"></i> <i class="icon-edit hand cm-update-item"></i> </td> </tr> <?php } ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect_id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="0" data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td colspan="2" class="cm-add-link"><a class="edit cm-add-link"><?php echo $_smarty_tpl->__("add_link"); ?> </a></td> </tr> <?php } ?> </table> </div> <table width="100%" class="quick-menu-edit"> <tr colspan="2"> <td> <label class="checkbox" for="show_menu_mouseover"> <input class="cm-qm-show-hide" id="show_menu_mouseover" type="checkbox" name="show_menu_mouseover" value="Y" <?php if ($_smarty_tpl->tpl_vars['settings']->value['show_menu_mouseover'] == "Y") { ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("show_menu_on_mouse_over"); ?> </label> </td> </tr> <tr> <td class="nowrap top"> <a class="edit cm-add-section"><?php echo $_smarty_tpl->__("add_section"); ?> </a> <a class="pull-right edit cm-ajax" data-ca-target-id="quick_menu" href="<?php echo htmlspecialchars(fn_url("tools.show_quick_menu"), ENT_QUOTES, 'UTF-8'); ?> " data-ca-event="ce.quick_menu_content_switch_callback"><?php echo $_smarty_tpl->__("done"); ?> </a> </td> </tr> </table> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['quick_menu']->value) { ?> <div class="menu-container"> <ul class="unstyled"> <?php $_smarty_tpl->tpl_vars['sect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['quick_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sect']->key => $_smarty_tpl->tpl_vars['sect']->value) { $_smarty_tpl->tpl_vars['sect']->_loop = true; ?> <li><span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['name'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <?php $_smarty_tpl->tpl_vars['subsect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subsect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sect']->value['subsection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subsect']->key => $_smarty_tpl->tpl_vars['subsect']->value) { $_smarty_tpl->tpl_vars['subsect']->_loop = true; ?> <li><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['subsect']->value['url']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <div class="quick-menu-actions right"> <a class="edit cm-ajax" href="<?php echo htmlspecialchars(fn_url("tools.show_quick_menu.edit"), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="quick_menu" data-ca-event="ce.quick_menu_content_switch_callback" title="<?php echo $_smarty_tpl->__("edit"); ?> "><i class="icon-edit hand"></i></a> </div> <?php } ?> </div> </div> <?php if ($_smarty_tpl->tpl_vars['show_quick_popup']->value) { ?> <div id="quick_box" class="hidden quick-menu-popup"> <div id="quick_menu_language_selector"> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'link_tpl' => fn_link_attach("tools.get_quick_menu_variant", "descr_sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('DESCR_SL'), 'key_name' => "name", 'suffix' => "quick_menu", 'display_icons' => true, 'select_container_id' => "quick_menu_language_selector"), 0); ?> <?php } ?> </div> <form class="cm-ajax form-horizontal form-edit" name="quick_menu_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <input id="qm_item_id" type="hidden" name="item[id]" value=""/> <input id="qm_item_parent" type="hidden" name="item[parent_id]" value="0"/> <input id="qm_descr_sl" type="hidden" name="descr_sl" value=""/> <input type="hidden" name="result_ids" value="quick_menu"/> <div class="control-group"> <label class="cm-required control-label" for="qm_item_name"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="qm_item_name" name="item[name]" type="text" value="" size="40"/> </div> </div> <div class="control-group"> <label class="cm-required control-label" for="qm_item_link"><?php echo $_smarty_tpl->__("link"); ?> :</label> <div class="controls"> <input id="qm_item_link" name="item[url]" class="input-text-large" type="text" value="" size="40"/> </div> </div> <div class="control-group"> <label class="control-label" for="qm_item_position"><?php echo $_smarty_tpl->__("position"); ?> :</label> <div class="controls"> <input id="qm_item_position" name="item[position]" type="text" value="" size="6"/> </div> </div> <div class="control-group"> <div class="controls"> <a id="qm_current_link"><?php echo $_smarty_tpl->__("use_current_link"); ?> </a> </div> </div> <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[tools.update_quick_menu_item.edit]", 'cancel_action' => "close"), 0); ?> </div> </form> </div> <?php } ?> <!--quick_menu--></div> <?php } }
function content_55d5c4e6cd53a0_66941118($_smarty_tpl) { 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('select_profile', 'select_profile', 'or', 'create_profile', 'create_profile', 'profile_name', 'new', 'main', 'main', 'select_profile', 'select_profile', 'or', 'create_profile', 'create_profile', 'profile_name', 'new', 'main', 'main')); 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['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if ($_smarty_tpl->tpl_vars['show_title']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("select_profile")), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_select']->value) { ?> <div class="ty-control-group select-profile"> <!--label><?php echo $_smarty_tpl->__("select_profile"); ?> :</label--> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['profile_id']->value) { ?> <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </strong> <?php } else { ?> <a <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> class="cm-ajax"<?php } ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile", "selected_section"), "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P" && !$_smarty_tpl->tpl_vars['hide_profile_delete']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_target_id' => "checkout_steps,cart_items,checkout_totals", 'but_role' => "delete", 'but_text' => " ", 'but_href' => "profiles.delete_profile?profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id']), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> <span> | </span><?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <span> <?php echo $_smarty_tpl->__("or"); ?> </span><?php if ($_REQUEST['profile'] == "new") { ?> <strong><?php echo $_smarty_tpl->__("create_profile"); ?> </strong><?php } else { ?> <a class="<?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-ajax<?php } ?> ls_create_new_profle" href="<?php if ($_smarty_tpl->tpl_vars['create_href']->value) { echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['create_href']->value), ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id", "selected_section"), "profile=new")), ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo $_smarty_tpl->__("create_profile"); ?> </a><?php } ?> <?php } ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_name']->value) { ?> <div class="ty-control-group"> <label for="elm_profile_id" class="cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> :</label> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['action'] == "add_profile" || $_smarty_tpl->tpl_vars['no_edit']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['profile_id']->value) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" class="ty-input-text" id="elm_profile_id" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } ?> <?php } else { ?> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="views/profiles/components/multiple_profiles.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/profiles/components/multiple_profiles.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['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if ($_smarty_tpl->tpl_vars['show_title']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("select_profile")), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_select']->value) { ?> <div class="ty-control-group select-profile"> <!--label><?php echo $_smarty_tpl->__("select_profile"); ?> :</label--> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['profile_id']->value) { ?> <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </strong> <?php } else { ?> <a <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> class="cm-ajax"<?php } ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile", "selected_section"), "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P" && !$_smarty_tpl->tpl_vars['hide_profile_delete']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_target_id' => "checkout_steps,cart_items,checkout_totals", 'but_role' => "delete", 'but_text' => " ", 'but_href' => "profiles.delete_profile?profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id']), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> <span> | </span><?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <span> <?php echo $_smarty_tpl->__("or"); ?> </span><?php if ($_REQUEST['profile'] == "new") { ?> <strong><?php echo $_smarty_tpl->__("create_profile"); ?> </strong><?php } else { ?> <a class="<?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-ajax<?php } ?> ls_create_new_profle" href="<?php if ($_smarty_tpl->tpl_vars['create_href']->value) { echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['create_href']->value), ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id", "selected_section"), "profile=new")), ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo $_smarty_tpl->__("create_profile"); ?> </a><?php } ?> <?php } ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_name']->value) { ?> <div class="ty-control-group"> <label for="elm_profile_id" class="cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> :</label> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['action'] == "add_profile" || $_smarty_tpl->tpl_vars['no_edit']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['profile_id']->value) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" class="ty-input-text" id="elm_profile_id" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } ?> <?php } else { ?> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } }
function content_55ccf2ea62cd14_13039228($_smarty_tpl) { 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('advanced_filter', 'advanced', 'reset', 'reset', 'advanced_filter', 'advanced', 'reset', 'reset')); 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 id="product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-product-filters__wrapper testoriginal"> <?php if ($_smarty_tpl->tpl_vars['items']->value && !$_REQUEST['advanced_filter']) { ?> <?php if (strpos($_SERVER['QUERY_STRING'], "dispatch=") !== false) { ?> <?php $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable($_smarty_tpl->tpl_vars['config']->value['current_url'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "result_ids", "full_render", "filter_id", "view_all", "req_range_id", "advanced_filter", "features_hash", "subcats", "page"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php if ($_REQUEST['category_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['show_products_from_subcategories'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "subcats=Y"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['reset_qstring']->value, "subcats=Y"), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["allow_ajax"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["ajax_div_ids"] = new Smarty_variable("product_filters_*,products_search_*,category_products_*,product_features_*,breadcrumbs_*,currencies_*,languages_*", null, 0); ?> <?php $_smarty_tpl->tpl_vars["has_selected"] = new Smarty_variable(false, null, 0); ?> <ul class="cm-responsive-menu"> <li class="ty-menu__item ty-menu__menu-btn visible-phone"> <a class="ty-menu__item-link"> <i class="ty-icon-short-list"></i> <span>Filters</span> </a> </li> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) { $_smarty_tpl->tpl_vars["filter"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] || $_smarty_tpl->tpl_vars['filter']->value['ranges']) { ?> <?php $_smarty_tpl->tpl_vars["filter_uid"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["cookie_name_show_filter"] = new Smarty_variable("content_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == "N") { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div id="sw_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-filters__switch cm-combination-filter_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span class="ty-product-filters__title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter'], ENT_QUOTES, 'UTF-8'); ?> </span> <i class="ty-product-filters__switch-down ty-icon-down-open"></i> <i class="ty-product-filters__switch-right ty-icon-up-open"></i> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_slider.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'id' => "slider_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'dynamic' => true, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_variants.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'collapse' => $_smarty_tpl->tpl_vars['collapse']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } ?> </li> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div class="ty-product-filters__tools clearfix"> <a <?php if (defined("FILTER_CUSTOM_ADVANCED")) { ?> href="<?php echo htmlspecialchars(fn_url("products.search?advanced_filter=Y"), ENT_QUOTES, 'UTF-8'); ?> "<?php } else { ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "advanced_filter=Y")), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> rel="nofollow" class="ty-product-filters__advanced-button" title="<?php echo $_smarty_tpl->__("advanced_filter"); ?> "><?php echo $_smarty_tpl->__("advanced"); ?> </a> <?php if (Smarty::$_smarty_vars['capture']['has_selected']) { ?> <a href="<?php if ($_REQUEST['category_id']) { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(true, null, 0); echo htmlspecialchars(fn_url("categories.view?category_id=" . (string) $_REQUEST['category_id']), ENT_QUOTES, 'UTF-8'); } else { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0); echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); } ?> " rel="nofollow" class="ty-product-filters__reset-button<?php if ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); } ?> " title="<?php echo $_smarty_tpl->__("reset"); ?> "><i class="ty-product-filters__reset-icon ty-icon-cw"></i> <span><?php echo $_smarty_tpl->__("reset"); ?> </span></a> <?php } ?> </div> </li> </ul> <?php } ?> </div> <!--product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], 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(); } 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/product_filters/orizontal.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/product_filters/orizontal.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 id="product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-product-filters__wrapper testoriginal"> <?php if ($_smarty_tpl->tpl_vars['items']->value && !$_REQUEST['advanced_filter']) { ?> <?php if (strpos($_SERVER['QUERY_STRING'], "dispatch=") !== false) { ?> <?php $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable($_smarty_tpl->tpl_vars['config']->value['current_url'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "result_ids", "full_render", "filter_id", "view_all", "req_range_id", "advanced_filter", "features_hash", "subcats", "page"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php if ($_REQUEST['category_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['show_products_from_subcategories'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "subcats=Y"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['reset_qstring']->value, "subcats=Y"), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["allow_ajax"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["ajax_div_ids"] = new Smarty_variable("product_filters_*,products_search_*,category_products_*,product_features_*,breadcrumbs_*,currencies_*,languages_*", null, 0); ?> <?php $_smarty_tpl->tpl_vars["has_selected"] = new Smarty_variable(false, null, 0); ?> <ul class="cm-responsive-menu"> <li class="ty-menu__item ty-menu__menu-btn visible-phone"> <a class="ty-menu__item-link"> <i class="ty-icon-short-list"></i> <span>Filters</span> </a> </li> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) { $_smarty_tpl->tpl_vars["filter"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] || $_smarty_tpl->tpl_vars['filter']->value['ranges']) { ?> <?php $_smarty_tpl->tpl_vars["filter_uid"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["cookie_name_show_filter"] = new Smarty_variable("content_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == "N") { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div id="sw_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-filters__switch cm-combination-filter_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span class="ty-product-filters__title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter'], ENT_QUOTES, 'UTF-8'); ?> </span> <i class="ty-product-filters__switch-down ty-icon-down-open"></i> <i class="ty-product-filters__switch-right ty-icon-up-open"></i> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_slider.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'id' => "slider_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'dynamic' => true, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_variants.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'collapse' => $_smarty_tpl->tpl_vars['collapse']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } ?> </li> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div class="ty-product-filters__tools clearfix"> <a <?php if (defined("FILTER_CUSTOM_ADVANCED")) { ?> href="<?php echo htmlspecialchars(fn_url("products.search?advanced_filter=Y"), ENT_QUOTES, 'UTF-8'); ?> "<?php } else { ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "advanced_filter=Y")), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> rel="nofollow" class="ty-product-filters__advanced-button" title="<?php echo $_smarty_tpl->__("advanced_filter"); ?> "><?php echo $_smarty_tpl->__("advanced"); ?> </a> <?php if (Smarty::$_smarty_vars['capture']['has_selected']) { ?> <a href="<?php if ($_REQUEST['category_id']) { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(true, null, 0); echo htmlspecialchars(fn_url("categories.view?category_id=" . (string) $_REQUEST['category_id']), ENT_QUOTES, 'UTF-8'); } else { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0); echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); } ?> " rel="nofollow" class="ty-product-filters__reset-button<?php if ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); } ?> " title="<?php echo $_smarty_tpl->__("reset"); ?> "><i class="ty-product-filters__reset-icon ty-icon-cw"></i> <span><?php echo $_smarty_tpl->__("reset"); ?> </span></a> <?php } ?> </div> </li> </ul> <?php } ?> </div> <!--product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }
/** * Gets uri for administrator's preview from common uri * * @param string $uri Common url * @param array $object_data Preview object data * @param array $user_id User identifier * @return string Preview uri */ function fn_get_preview_url($uri, $object_data, $user_id) { if (fn_allowed_for('ULTIMATE')) { $company_id = Registry::get('runtime.company_id') ? Registry::get('runtime.company_id') : $object_data['company_id']; $uri = fn_link_attach($uri, 'company_id=' . $company_id); } if ($object_data['status'] != 'A' || fn_allowed_for('MULTIVENDOR') || !empty($object_data['usergroup_ids'])) { $_uri = fn_link_attach($uri, 'action=preview'); $_uri = urlencode($_uri); $preview_url = fn_url("profiles.view_product_as_user?user_id={$user_id}&area=C&redirect_url={$_uri}", 'A'); } else { $preview_url = fn_url($uri, 'C', 'http', DESCR_SL); } fn_set_hook('get_preview_url_post', $uri, $object_data, $user_id, $preview_url); return $preview_url; }
function content_55e35bb6391872_20665064($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['wishlist']->value) { ?> <?php $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable("&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['item_id']->value, null, 0); ?> <?php } ?> <div class="ls-move-to-cart-button"> <?php $_smarty_tpl->tpl_vars['current_url'] = new Smarty_variable(urlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable("products.quick_view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&prev_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['type'] && $_smarty_tpl->tpl_vars['block']->value['type'] != 'main') { ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_plain=Y"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['quick_nav_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(implode(",", $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_items=" . (string) $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php } ?> <span class="ls_move_to_cart">move to cart</span> </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/products/components/move_to_cart_button.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/products/components/move_to_cart_button.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["wishlist_id"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['wishlist']->value) { ?> <?php $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable("&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['item_id']->value, null, 0); ?> <?php } ?> <div class="ls-move-to-cart-button"> <?php $_smarty_tpl->tpl_vars['current_url'] = new Smarty_variable(urlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable("products.quick_view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&prev_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['type'] && $_smarty_tpl->tpl_vars['block']->value['type'] != 'main') { ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_plain=Y"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['quick_nav_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(implode(",", $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_items=" . (string) $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php } ?> <span class="ls_move_to_cart">move to cart</span> </div><?php } }
/** * Generates URL according to schema definition * @param array $redirect_data redirect data * @param boolean $full generated full URL if true and URI part if false * @return string URL */ function fn_generate_seo_url_from_schema($redirect_data, $full = true) { $seo_vars = fn_get_seo_vars(); if ($redirect_data['type'] == 's') { $http_path = Registry::get('config.http_path'); if (fn_allowed_for('ULTIMATE')) { $urls = fn_get_storefront_urls(Registry::get('runtime.company_id')); if (!empty($urls)) { $http_path = $urls['http_path']; } } $url = $http_path . $redirect_data['dest']; } else { $url = $seo_vars[$redirect_data['type']]['dispatch'] . '?' . $seo_vars[$redirect_data['type']]['item'] . '=' . $redirect_data['object_id']; } // do not add company_id to static routes if (fn_allowed_for('ULTIMATE') && $redirect_data['type'] != 's') { $url = fn_link_attach($url, 'company_id=' . Registry::get('runtime.company_id')); } $lang_code = !empty($redirect_data['lang_code']) ? $redirect_data['lang_code'] : Registry::get('settings.Appearance.frontend_default_language'); if ($full) { $url = fn_url($url, 'C', 'http', $lang_code); } else { $url = fn_get_seo_request_uri(fn_url($url, 'C', 'rel', $lang_code)); } return $url; }
if (!defined('BOOTSTRAP')) { die('Access denied'); } $post_url = fn_payment_url('current', 'chronopay_form.php'); $return_url = fn_url("payment_notification.notify?payment=chronopay_form&order_id={$order_id}", AREA, 'current'); $country = db_get_field("SELECT code_A3 FROM ?:countries WHERE code = ?s", $order_info['b_country']); $product_name = ""; // Products if (!empty($order_info['products'])) { foreach ($order_info['products'] as $v) { $product_name = $product_name . str_replace(', ', ' ', $v['product']) . ",<br>\n "; } } // Certificates if (!empty($order_info['gift_certificates'])) { foreach ($order_info['gift_certificates'] as $v) { $product_name = $product_name . str_replace(', ', ' ', $v['gift_cert_code']) . ",<br>\n "; } } // Shippings if (floatval($order_info['shipping_cost'])) { foreach ($order_info['shipping'] as $v) { $product_name .= str_replace(', ', ' ', $v['shipping']) . ",<br>\n "; } } $sign = md5($processor_data['processor_params']['product_id'] . '-' . $order_info['total'] . '-' . $processor_data['processor_params']['sharedsec']); fn_update_order_payment_info($order_id, array('awaiting_callback' => true)); $post_data = array('product_id' => $processor_data['processor_params']['product_id'], 'product_name' => $product_name, 'product_price' => $order_info['total'], 'order_id' => $order_id, 'cs1' => $order_id, 'language' => CART_LANGUAGE, 'f_name' => $order_info['b_firstname'], 's_name' => $order_info['b_lastname'], 'street' => $order_info['b_address'], 'city' => $order_info['b_city'], 'state' => $order_info['b_state'], 'zip' => $order_info['b_zipcode'], 'country' => $country, 'phone' => $order_info['phone'], 'email' => $order_info['email'], 'cb_url' => $post_url, 'cb_type' => 'P', 'success_url' => fn_link_attach($return_url, "sign={$sign}"), 'decline_url' => $return_url, 'sign' => $sign); fn_create_payment_form('https://payments.chronopay.com', $post_data, 'ChronoPay'); } exit;
function content_55ccf2eaefd8d3_86013080($_smarty_tpl) { 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('quick_view', 'quick_product_viewer', 'quick_view', 'quick_view', 'quick_product_viewer', 'quick_view')); 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["wishlist_id"] = new Smarty_variable('', null, 0); if ($_smarty_tpl->tpl_vars['wishlist']->value) { ?> <?php $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable("&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['item_id']->value, null, 0); } ?> <div class="ty-quick-view-button" title="<?php echo $_smarty_tpl->__("quick_view"); ?> "> <?php $_smarty_tpl->tpl_vars['current_url'] = new Smarty_variable(urlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable("products.quick_view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&prev_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['type'] && $_smarty_tpl->tpl_vars['block']->value['type'] != 'main') { ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_plain=Y"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['quick_nav_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(implode(",", $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_items=" . (string) $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php } ?> <a class="ty-btn ty-btn__secondary ty-btn__big" data-ca-view-id="<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['item_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="product_quick_view" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['quick_view_url']->value . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="<?php echo $_smarty_tpl->__("quick_product_viewer"); ?> " onclick="quick_view_dialog_test('<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['quick_view_url']->value . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value), ENT_QUOTES, 'UTF-8'); ?> ');return false;"><?php echo $_smarty_tpl->__("quick_view"); ?> </a> </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/products/components/quick_view_link.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/products/components/quick_view_link.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["wishlist_id"] = new Smarty_variable('', null, 0); if ($_smarty_tpl->tpl_vars['wishlist']->value) { ?> <?php $_smarty_tpl->tpl_vars["wishlist_id"] = new Smarty_variable("&wishlist_id=" . (string) $_smarty_tpl->tpl_vars['item_id']->value, null, 0); } ?> <div class="ty-quick-view-button" title="<?php echo $_smarty_tpl->__("quick_view"); ?> "> <?php $_smarty_tpl->tpl_vars['current_url'] = new Smarty_variable(urlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable("products.quick_view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&prev_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['block']->value['type'] && $_smarty_tpl->tpl_vars['block']->value['type'] != 'main') { ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_plain=Y"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['quick_nav_ids']->value) { ?> <?php $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(implode(",", $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['quick_view_url'] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['quick_view_url']->value, "n_items=" . (string) $_smarty_tpl->tpl_vars['quick_nav_ids']->value), null, 0); ?> <?php } ?> <a class="ty-btn ty-btn__secondary ty-btn__big" data-ca-view-id="<?php if ($_smarty_tpl->tpl_vars['wishlist_id']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['item_id']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="product_quick_view" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['quick_view_url']->value . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="<?php echo $_smarty_tpl->__("quick_product_viewer"); ?> " onclick="quick_view_dialog_test('<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['quick_view_url']->value . (string) $_smarty_tpl->tpl_vars['wishlist_id']->value), ENT_QUOTES, 'UTF-8'); ?> ');return false;"><?php echo $_smarty_tpl->__("quick_view"); ?> </a> </div><?php } }
function content_55d2f3b5c6e1e5_67613974($_smarty_tpl) { fn_preload_lang_vars(array('select_profile', 'or', 'create_profile', 'profile_name', 'new', 'main', 'main')); if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y") { ?> <div class="control-group" id="profiles_list"> <label class="control-label"><?php echo $_smarty_tpl->__("select_profile"); ?> </label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['user_data']->value['profile_id']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php } else { ?> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> #profiles_list"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_text' => " ", 'but_href' => "profiles.delete_profile?user_id=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['user_id'] . "&profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'], 'but_role' => "delete_item"), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> | <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="lowercase" href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id"), "profile=new")), ENT_QUOTES, 'UTF-8'); ?> #profiles_list"><?php echo $_smarty_tpl->__("create_profile"); ?> </a> <?php } ?> </div> </div> <div class="control-group"> <label for="profile_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> </label> <div class="controls"> <?php if ($_REQUEST['profile'] == "new") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" id="profile_id" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_id']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" id="profile_name" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-text" /> </div> </div> <?php } else { ?> <div> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } }
$cart =& $_SESSION['cart']; $_SESSION['customer_auth'] = isset($_SESSION['customer_auth']) ? $_SESSION['customer_auth'] : array(); $customer_auth =& $_SESSION['customer_auth']; $_SESSION['shipping_rates'] = isset($_SESSION['shipping_rates']) ? $_SESSION['shipping_rates'] : array(); $shipping_rates =& $_SESSION['shipping_rates']; if (empty($customer_auth)) { $customer_auth = fn_fill_auth(array(), array(), false, 'C'); } $_suffix = !empty($cart['order_id']) ? 'update' : 'add'; if (fn_allowed_for('ULTIMATE') && $mode != 'edit' && $mode != 'new') { if (Registry::get('runtime.company_id') && !empty($cart['order_company_id']) && Registry::get('runtime.company_id') != $cart['order_company_id'] || !Registry::get('runtime.company_id') && !empty($cart['order_company_id'])) { if (Registry::get('runtime.company_id')) { fn_set_notification('W', __('warning'), __('orders_not_allow_to_change_company')); } if (fn_get_available_company_ids($cart['order_company_id'])) { return array(CONTROLLER_STATUS_REDIRECT, fn_link_attach(Registry::get('config.current_url'), 'switch_company_id=' . $cart['order_company_id'])); } else { return array(CONTROLLER_STATUS_DENIED); } } elseif (empty($cart['order_company_id']) && Registry::get('runtime.company_id')) { $cart['order_company_id'] = Registry::get('runtime.company_id'); } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Add product to the cart if ($mode == 'add') { // Cart is empty, create it if (empty($cart)) { fn_clear_cart($cart); } // Remove products with empty amount
function content_55dc759d6faad1_96088041($_smarty_tpl) { 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(); ?> <div id="currencies_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['currencies']->value && count($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <?php if ($_smarty_tpl->tpl_vars['dropdown_limit']->value > 0 && count($_smarty_tpl->tpl_vars['currencies']->value) <= $_smarty_tpl->tpl_vars['dropdown_limit']->value) { ?> <div class="ty-currencies hidden-phone hidden-tablet"> <?php if ($_smarty_tpl->tpl_vars['text']->value) { ?> <div class="ty-currencies__txt"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['text']->value, ENT_QUOTES, 'UTF-8'); ?> :</div><?php } ?> <?php $_smarty_tpl->tpl_vars['currency'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['currency']->_loop = false; $_smarty_tpl->tpl_vars['code'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['currency']->key => $_smarty_tpl->tpl_vars['currency']->value) { $_smarty_tpl->tpl_vars['currency']->_loop = true; $_smarty_tpl->tpl_vars['code']->value = $_smarty_tpl->tpl_vars['currency']->key; ?> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "currency=" . (string) $_smarty_tpl->tpl_vars['code']->value)), ENT_QUOTES, 'UTF-8'); ?> " class="ty-currencies__item <?php if ($_smarty_tpl->tpl_vars['secondary_currency']->value == $_smarty_tpl->tpl_vars['code']->value) { ?> ty-currencies__active<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['description'], ENT_QUOTES, 'UTF-8'); ?> (<?php echo $_smarty_tpl->tpl_vars['currency']->value['symbol']; ?> )<?php } else { echo $_smarty_tpl->tpl_vars['currency']->value['symbol']; } ?> </a> <?php } ?> </div> <div class="visible-phone visible-tablet ty-select-wrapper"><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "currency", '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' => $_smarty_tpl->tpl_vars['key_name']->value), 0); ?> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable("description", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable('', null, 0); ?> <?php } ?> <div class="ty-select-wrapper"><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "currency", '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' => $_smarty_tpl->tpl_vars['key_name']->value), 0); ?> </div> <?php } } ?> <!--currencies_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], 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(); } 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/currencies.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/currencies.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 id="currencies_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['currencies']->value && count($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <?php if ($_smarty_tpl->tpl_vars['dropdown_limit']->value > 0 && count($_smarty_tpl->tpl_vars['currencies']->value) <= $_smarty_tpl->tpl_vars['dropdown_limit']->value) { ?> <div class="ty-currencies hidden-phone hidden-tablet"> <?php if ($_smarty_tpl->tpl_vars['text']->value) { ?> <div class="ty-currencies__txt"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['text']->value, ENT_QUOTES, 'UTF-8'); ?> :</div><?php } ?> <?php $_smarty_tpl->tpl_vars['currency'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['currency']->_loop = false; $_smarty_tpl->tpl_vars['code'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['currency']->key => $_smarty_tpl->tpl_vars['currency']->value) { $_smarty_tpl->tpl_vars['currency']->_loop = true; $_smarty_tpl->tpl_vars['code']->value = $_smarty_tpl->tpl_vars['currency']->key; ?> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "currency=" . (string) $_smarty_tpl->tpl_vars['code']->value)), ENT_QUOTES, 'UTF-8'); ?> " class="ty-currencies__item <?php if ($_smarty_tpl->tpl_vars['secondary_currency']->value == $_smarty_tpl->tpl_vars['code']->value) { ?> ty-currencies__active<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value['description'], ENT_QUOTES, 'UTF-8'); ?> (<?php echo $_smarty_tpl->tpl_vars['currency']->value['symbol']; ?> )<?php } else { echo $_smarty_tpl->tpl_vars['currency']->value['symbol']; } ?> </a> <?php } ?> </div> <div class="visible-phone visible-tablet ty-select-wrapper"><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "currency", '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' => $_smarty_tpl->tpl_vars['key_name']->value), 0); ?> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable("description", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable('', null, 0); ?> <?php } ?> <div class="ty-select-wrapper"><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "currency", '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' => $_smarty_tpl->tpl_vars['key_name']->value), 0); ?> </div> <?php } } ?> <!--currencies_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } }
fn_set_storage_data('session_' . $key . '_data', serialize($sess_data)); if (fn_allowed_for('ULTIMATE')) { $company_id_in_url = fn_get_company_id_from_uri($redirect_url); if (Registry::get('runtime.company_id') || !empty($user_data['company_id']) || Registry::get('runtime.simple_ultimate') || !empty($company_id_in_url)) { // Redirect to the personal frontend $company_id = !empty($user_data['company_id']) ? $user_data['company_id'] : Registry::get('runtime.company_id'); if (!$company_id && Registry::get('runtime.simple_ultimate')) { $company_id = fn_get_default_company_id(); } elseif (!$company_id) { $company_id = $company_id_in_url; } $url = $area == 'C' ? fn_link_attach($redirect_url, 'skey=' . $key . '&company_id=' . $company_id) : $redirect_url; return array(CONTROLLER_STATUS_REDIRECT, fn_url($url, $area), true); } } else { $url = fn_link_attach($redirect_url, 'skey=' . $key); return array(CONTROLLER_STATUS_REDIRECT, fn_url($url, $area), true); } } return array(CONTROLLER_STATUS_REDIRECT, fn_url($redirect_url, $area)); } } elseif ($mode == 'picker') { $params = $_REQUEST; $params['exclude_user_types'] = array('A', 'V'); $params['skip_view'] = 'Y'; list($users, $search) = fn_get_users($params, $auth, Registry::get('settings.Appearance.admin_elements_per_page')); Tygh::$app['view']->assign('users', $users); Tygh::$app['view']->assign('search', $search); Tygh::$app['view']->assign('countries', fn_get_simple_countries(true, CART_LANGUAGE)); Tygh::$app['view']->assign('states', fn_get_all_states()); Tygh::$app['view']->assign('usergroups', fn_get_usergroups(array('status' => array('A', 'H')), CART_LANGUAGE));
Tygh::$app['session']->fromArray(unserialize($session_data)); Tygh::$app['session']->save(Tygh::$app['session']->getID(), Tygh::$app['session']->toArray()); if (!fn_cart_is_empty(Tygh::$app['session']['cart'])) { fn_calculate_cart_content(Tygh::$app['session']['cart'], Tygh::$app['session']['auth'], 'S', true, 'F', true); fn_save_cart_content(Tygh::$app['session']['cart'], Tygh::$app['session']['auth']['user_id']); } } return array(CONTROLLER_STATUS_REDIRECT, fn_query_remove(REAL_URL, 'skey')); } // UK Cookies Law if (Registry::get('settings.Security.uk_cookies_law') == 'Y') { if (!empty($_REQUEST['cookies_accepted']) && $_REQUEST['cookies_accepted'] == 'Y') { Tygh::$app['session']['cookies_accepted'] = true; } if (!defined('AJAX_REQUEST') && empty(Tygh::$app['session']['cookies_accepted'])) { $url = fn_link_attach(Registry::get('config.current_url'), 'cookies_accepted=Y'); $url = str_replace('&', '&', $url); $text = __('uk_cookies_law', array('[url]' => $url)); fn_delete_notification('uk_cookies_law'); fn_set_notification('W', __('warning'), $text, 'K', 'uk_cookies_law'); } else { fn_delete_notification('uk_cookies_law'); } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { return; } // // Check if store is closed // if (Registry::get('settings.General.store_mode') == 'Y') {
function content_55dc759c6f99f2_20257146($_smarty_tpl) { 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(); if (!fn_seo_is_indexed_page($_REQUEST)) { ?> <meta name="robots" content="noindex<?php if ($_smarty_tpl->tpl_vars['settings']->value['Security']['secure_storefront'] == "partial" && defined('HTTPS')) { ?> ,nofollow<?php } ?> " /> <?php } else { if ($_smarty_tpl->tpl_vars['seo_canonical']->value['current']) { ?> <link rel="canonical" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['current'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['seo_canonical']->value['prev']) { ?> <link rel="prev" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['prev'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['seo_canonical']->value['next']) { ?> <link rel="next" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['next'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { $_smarty_tpl->tpl_vars["language"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["language"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; 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; ?> <link title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " dir="rtl" type="text/html" rel="alternate" hreflang="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl=" . (string) $_smarty_tpl->tpl_vars['language']->value['lang_code'])), ENT_QUOTES, 'UTF-8'); ?> " /> <?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/seo/hooks/index/meta.post.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/seo/hooks/index/meta.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 (!fn_seo_is_indexed_page($_REQUEST)) { ?> <meta name="robots" content="noindex<?php if ($_smarty_tpl->tpl_vars['settings']->value['Security']['secure_storefront'] == "partial" && defined('HTTPS')) { ?> ,nofollow<?php } ?> " /> <?php } else { if ($_smarty_tpl->tpl_vars['seo_canonical']->value['current']) { ?> <link rel="canonical" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['current'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['seo_canonical']->value['prev']) { ?> <link rel="prev" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['prev'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['seo_canonical']->value['next']) { ?> <link rel="next" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_canonical']->value['next'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { $_smarty_tpl->tpl_vars["language"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["language"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; 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; ?> <link title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " dir="rtl" type="text/html" rel="alternate" hreflang="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['lang_code'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl=" . (string) $_smarty_tpl->tpl_vars['language']->value['lang_code'])), ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } ?> <?php } }
function content_55ccf2ea85b705_19170918($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); ?> <li class="ty-product-filters__group"> <?php if (!$_smarty_tpl->tpl_vars['range']->value['checked']) { ?> <?php $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0); ?> <?php } ?> <?php if ($_REQUEST['features_hash']) { ?> <?php $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) { ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <a <?php if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") { ?> rel="nofollow"<?php } ?> class="ty-product-filters__item<?php if ($_smarty_tpl->tpl_vars['range']->value['checked']) { ?> checked<?php } if ($_smarty_tpl->tpl_vars['range']->value['disabled']) { ?> disabled<?php } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-history<?php } ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) { ?> <span class="ty-product-filters__count"> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8'); ?> )</span><?php } ?> </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(); } 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/product_filters/components/variant_item.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/product_filters/components/variant_item.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 { ?> <li class="ty-product-filters__group"> <?php if (!$_smarty_tpl->tpl_vars['range']->value['checked']) { ?> <?php $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_add_range_to_url_hash($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_query_elm"] = new Smarty_variable(fn_delete_range_from_url($_REQUEST['features_hash'], $_smarty_tpl->tpl_vars['range']->value, $_smarty_tpl->tpl_vars['filter']->value['field_type']), null, 0); ?> <?php } ?> <?php if ($_REQUEST['features_hash']) { ?> <?php $_smarty_tpl->tpl_vars["cur_features_hash"] = new Smarty_variable("&features_hash=" . (string) $_REQUEST['features_hash'], null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] == "E" && (!$_smarty_tpl->tpl_vars['filter']->value['simple_link'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] && $_smarty_tpl->tpl_vars['controller']->value == "product_features")) { ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("product_features.view?variant_id=" . (string) $_smarty_tpl->tpl_vars['range']->value['range_id'] . (string) $_smarty_tpl->tpl_vars['cur_features_hash']->value), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "features_hash=" . (string) $_smarty_tpl->tpl_vars['filter_query_elm']->value)), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(fn_compare_dispatch($_smarty_tpl->tpl_vars['href']->value, $_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <a <?php if (!$_smarty_tpl->tpl_vars['range']->value['disabled'] || $_smarty_tpl->tpl_vars['range']->value['checked']) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['feature_type'] != "E") { ?> rel="nofollow"<?php } ?> class="ty-product-filters__item<?php if ($_smarty_tpl->tpl_vars['range']->value['checked']) { ?> checked<?php } if ($_smarty_tpl->tpl_vars['range']->value['disabled']) { ?> disabled<?php } elseif ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-history<?php } ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class="ty-filter-icon"><i class="ty-icon-ok ty-filter-icon__check"></i><i class="ty-icon-cancel ty-filter-icon__delete"></i></span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['prefix'], ENT_QUOTES, 'UTF-8'); echo htmlspecialchars(fn_text_placeholders($_smarty_tpl->tpl_vars['range']->value['range_name']), ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['suffix'], ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['range']->value['disabled']) { ?> <span class="ty-product-filters__count"> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['range']->value['products'], ENT_QUOTES, 'UTF-8'); ?> )</span><?php } ?> </a> </li> <?php } }
function content_55dc759d52a450_29070267($_smarty_tpl) { 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->tpl_vars["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0); $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) { ?> <div class="mobile-avail-notice"> <div class="buttons-container"> <a href="<?php echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__('twg_visit_our_mobile_store'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__('twg_app_for_android'); ?> </a> <?php } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") { ?> <?php echo $_smarty_tpl->__('twg_app_for_iphone'); ?> <?php } else { ?> <?php echo $_smarty_tpl->__('twg_app_for_ipad'); ?> <?php } ?> </a> <?php } ?> <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />×</span> </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(); } 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/twigmo/hooks/index/content.pre.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/twigmo/hooks/index/content.pre.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["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0); $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) { ?> <div class="mobile-avail-notice"> <div class="buttons-container"> <a href="<?php echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__('twg_visit_our_mobile_store'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__('twg_app_for_android'); ?> </a> <?php } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") { ?> <?php echo $_smarty_tpl->__('twg_app_for_iphone'); ?> <?php } else { ?> <?php echo $_smarty_tpl->__('twg_app_for_ipad'); ?> <?php } ?> </a> <?php } ?> <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />×</span> </div> </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 }
function content_55ccdf868db1b1_55689818($_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_block_notes')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.notes.php'; } fn_preload_lang_vars(array('choose_action', 'notes', 'language')); 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(73, 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(37, null, 0); } ?> <?php if (!$_smarty_tpl->tpl_vars['sidebar_position']->value) { ?> <?php $_smarty_tpl->tpl_vars['sidebar_position'] = new Smarty_variable("right", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['anchor']->value) { ?> <a name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['anchor']->value, ENT_QUOTES, 'UTF-8'); ?> "></a> <?php } ?> <script type="text/javascript"> // Init ajax callback (rebuild) var menu_content = <?php echo ($tmp = @htmlspecialchars_decode($_smarty_tpl->tpl_vars['data']->value, ENT_QUOTES)) === null || $tmp === '' ? "''" : $tmp; ?> ; </script> <!-- Actions --> <div class="actions cm-sticky-scroll" id="actions_panel" 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'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:actions")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:actions"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value) { ?> <div class="btn-bar-left pull-left"> <div class="pull-left"><?php echo $_smarty_tpl->getSubTemplate("common/last_viewed_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <?php } ?> <div class="title pull-left"> <h2 title="<?php echo htmlspecialchars(preg_replace('!\\s+!u', ' ', preg_replace('!<[^>]*?>!', ' ', ($tmp = @$_smarty_tpl->tpl_vars['title_alt']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['title']->value : $tmp)), ENT_QUOTES, 'UTF-8'); ?> "><?php echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? " " : $tmp; ?> </h2> </div> <div class="<?php if (isset($_smarty_tpl->tpl_vars['main_buttons_meta']->value)) { echo htmlspecialchars($_smarty_tpl->tpl_vars['main_buttons_meta']->value, ENT_QUOTES, 'UTF-8'); } else { ?> btn-bar btn-toolbar<?php } ?> dropleft pull-right" <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> id="tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _buttons"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['adv_buttons']->value) { ?> <div class="adv-buttons" <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> id="tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _adv_buttons"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['adv_buttons']->value; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _adv_buttons--><?php } ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value['dynamic']['actions']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['actions']; 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['title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['m']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['meta'], ENT_QUOTES, 'UTF-8'); ?> " target="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['target'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['title']->value); ?> </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/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['tools_list'], 'link_text' => __("choose_action")), 0); ?> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['buttons']->value; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _buttons--><?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:actions"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar_content", "sidebar_content", null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value && $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['sections']) { ?> <div class="sidebar-row"> <ul class="nav nav-list"> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars["s_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['sections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['m']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['m']->iteration = 0; 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["s_id"]->value = $_smarty_tpl->tpl_vars['m']->key; $_smarty_tpl->tpl_vars['m']->iteration++; $_smarty_tpl->tpl_vars['m']->last = $_smarty_tpl->tpl_vars['m']->iteration === $_smarty_tpl->tpl_vars['m']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["first_level"]['last'] = $_smarty_tpl->tpl_vars['m']->last; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:dynamic_menu_item")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:dynamic_menu_item"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['m']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } else { ?> <li class="<?php if ($_smarty_tpl->tpl_vars['m']->value['js'] == true) { ?> cm-js<?php } if ($_smarty_tpl->getVariable('smarty')->value['foreach']['first_level']['last']) { ?> last-item<?php } if ($_smarty_tpl->tpl_vars['navigation']->value['dynamic']['active_section'] == $_smarty_tpl->tpl_vars['s_id']->value) { ?> active<?php } ?> "><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['m']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:dynamic_menu_item"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> <hr> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['sidebar']->value; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('notes', array('assign' => "notes")); $_block_repeat = true; echo smarty_block_notes(array('assign' => "notes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_notes(array('assign' => "notes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['notes']->value) { ?> <?php $_smarty_tpl->tpl_vars["note"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["note"]->_loop = false; $_smarty_tpl->tpl_vars["title"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['notes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["note"]->key => $_smarty_tpl->tpl_vars["note"]->value) { $_smarty_tpl->tpl_vars["note"]->_loop = true; $_smarty_tpl->tpl_vars["title"]->value = $_smarty_tpl->tpl_vars["note"]->key; ?> <?php $_smarty_tpl->_capture_stack[0][] = array("note_title", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['title']->value == "_note_") { echo $_smarty_tpl->__("notes"); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->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(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/sidebox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => $_smarty_tpl->tpl_vars['note']->value, 'title' => Smarty::$_smarty_vars['capture']['note_title']), 0); ?> <?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(); } ?> <!-- Sidebar left --> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value && trim($_smarty_tpl->tpl_vars['sidebar_content']->value) != '' && $_smarty_tpl->tpl_vars['sidebar_position']->value == "left") { ?> <div class="sidebar sidebar-left" id="elm_sidebar"> <div class="sidebar-wrapper"> <?php echo $_smarty_tpl->tpl_vars['sidebar_content']->value; ?> </div> <!--elm_sidebar left--></div> <?php } ?> <!--Content--> <div class="content<?php if ($_smarty_tpl->tpl_vars['no_sidebar']->value) { ?> content-no-sidebar<?php } if (trim($_smarty_tpl->tpl_vars['sidebar_content']->value) == '') { ?> no-sidebar<?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> ufa<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['box_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <div class="content-wrap"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:content_top")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:content_top"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['select_languages']->value && sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <div class="language-wrap"> <h6 class="muted"><?php echo $_smarty_tpl->__("language"); ?> :</h6> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "descr_sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('DESCR_SL'), 'key_name' => "name", 'suffix' => "content", 'display_icons' => true), 0); ?> <?php } ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['tools']->value) { echo $_smarty_tpl->tpl_vars['tools']->value; } ?> <?php if ($_smarty_tpl->tpl_vars['title_extra']->value) { ?> <div class="title">- </div> <?php echo $_smarty_tpl->tpl_vars['title_extra']->value; ?> <?php } ?> <?php if (trim($_smarty_tpl->tpl_vars['extra_tools']->value)) { ?> <div class="extra-tools"> <?php echo $_smarty_tpl->tpl_vars['extra_tools']->value; ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:content_top"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <div id="content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> <?php echo ($tmp = @$_smarty_tpl->tpl_vars['content']->value) === null || $tmp === '' ? " " : $tmp; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['box_id']->value) { ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_id']->value, ENT_QUOTES, 'UTF-8'); ?> --><?php } ?> </div> </div> <!--/Content--> <!-- Sidebar --> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value && trim($_smarty_tpl->tpl_vars['sidebar_content']->value) != '' && $_smarty_tpl->tpl_vars['sidebar_position']->value == "right") { ?> <div class="sidebar" id="elm_sidebar"> <div class="sidebar-wrapper"> <?php echo $_smarty_tpl->tpl_vars['sidebar_content']->value; ?> </div> <!--elm_sidebar--></div> <?php } ?> <script type="text/javascript"> var ajax_callback_data = menu_content; </script><?php }
} else { // Free or Trial mode if (in_array($_REQUEST['store_mode'], array('free', 'trial'))) { fn_set_storage_data('store_mode', $_REQUEST['store_mode']); if ($_REQUEST['store_mode'] == 'free') { fn_set_notification('I', __('store_mode_changed'), __('text_' . $_REQUEST['store_mode'] . '_mode_activated')); fn_subscribe_admin(); } } $_SESSION['mode_recheck'] = true; } $redirect_url = empty($_REQUEST['redirect_url']) ? fn_url() : $_REQUEST['redirect_url']; $has_errors = fn_get_storage_data('store_mode_errors'); if (strpos($redirect_url, 'welcome') !== false && empty($has_errors)) { $redirect_url = fn_query_remove($redirect_url, 'welcome'); $redirect_url = fn_link_attach($redirect_url, 'welcome=setup_completed'); } unset($_REQUEST['redirect_url']); fn_clear_cache(); return array(CONTROLLER_STATUS_REDIRECT, $redirect_url); } return array(CONTROLLER_STATUS_OK, 'settings' . $_suffix . '?section_id=' . Settings::instance()->getSectionTextId($section_id)); } // // OUPUT routines // if ($mode == 'manage') { $subsections = Settings::instance()->getSectionTabs($section_id, CART_LANGUAGE); $options = Settings::instance()->getList($section_id); fn_update_lang_objects('subsections', $subsections); // [Page sections]
function content_55ccec9d2300c0_04209114($_smarty_tpl) { 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('change_language', 'change_language')); 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 id="languages_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['languages']->value && count($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <?php if ($_smarty_tpl->tpl_vars['dropdown_limit']->value > 0 && count($_smarty_tpl->tpl_vars['languages']->value) <= $_smarty_tpl->tpl_vars['dropdown_limit']->value) { ?> <div class="ty-select-wrapper ty-languages"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['code'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; 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; $_smarty_tpl->tpl_vars['code']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <a href="<?php echo htmlspecialchars(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl=" . (string) $_smarty_tpl->tpl_vars['language']->value['lang_code']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("change_language"); ?> " class="ty-languages__item<?php if ($_smarty_tpl->tpl_vars['format']->value == "icon") { ?> ty-languages__icon-link<?php } if (@constant('DESCR_SL') == $_smarty_tpl->tpl_vars['code']->value) { ?> ty-languages__active<?php } ?> "><i class="ty-flag ty-flag-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['language']->value['country_code'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "></i><?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); } ?> </a> <?php } ?> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable("name", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable('', null, 0); ?> <?php } ?> <div class="ty-select-wrapper<?php if ($_smarty_tpl->tpl_vars['format']->value == "icon") { ?> ty-languages__icon-link<?php } ?> "><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "language", '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' => $_smarty_tpl->tpl_vars['key_name']->value, 'language_var_name' => "sl", 'link_class' => "hidden-phone hidden-tablet"), 0); ?> </div> <?php } } ?> <!--languages_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], 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(); } 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/languages.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/languages.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 id="languages_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['languages']->value && count($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <?php if ($_smarty_tpl->tpl_vars['dropdown_limit']->value > 0 && count($_smarty_tpl->tpl_vars['languages']->value) <= $_smarty_tpl->tpl_vars['dropdown_limit']->value) { ?> <div class="ty-select-wrapper ty-languages"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_smarty_tpl->tpl_vars['code'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; 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; $_smarty_tpl->tpl_vars['code']->value = $_smarty_tpl->tpl_vars['language']->key; ?> <a href="<?php echo htmlspecialchars(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl=" . (string) $_smarty_tpl->tpl_vars['language']->value['lang_code']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("change_language"); ?> " class="ty-languages__item<?php if ($_smarty_tpl->tpl_vars['format']->value == "icon") { ?> ty-languages__icon-link<?php } if (@constant('DESCR_SL') == $_smarty_tpl->tpl_vars['code']->value) { ?> ty-languages__active<?php } ?> "><i class="ty-flag ty-flag-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['language']->value['country_code'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "></i><?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); } ?> </a> <?php } ?> </div> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['format']->value == "name") { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable("name", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["key_name"] = new Smarty_variable('', null, 0); ?> <?php } ?> <div class="ty-select-wrapper<?php if ($_smarty_tpl->tpl_vars['format']->value == "icon") { ?> ty-languages__icon-link<?php } ?> "><?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'suffix' => "language", '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' => $_smarty_tpl->tpl_vars['key_name']->value, 'language_var_name' => "sl", 'link_class' => "hidden-phone hidden-tablet"), 0); ?> </div> <?php } } ?> <!--languages_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }