function content_55ccf1718591a0_13840260($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_function_style')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php'; } if (!is_callable('smarty_function_render_location')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.render_location.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('block_already_exists_in_grid', 'new_layout', 'add_layout', 'block_manager', 'manage_blocks', 'export_layout', 'export_layout', 'import_layout', 'import_layout', 'editing_location', 'add_location', 'new_location', 'switch_layout', 'preview', 'make_default', 'editing_layout', 'properties', 'delete', 'widget_code', 'select_all', 'editing_layout')); ?> <?php $_smarty_tpl->tpl_vars["m_url"] = new Smarty_variable(rawurlencode($_REQUEST['manage_url']), null, 0); ?> <?php echo smarty_function_script(array('src' => "js/tygh/block_manager.js"), $_smarty_tpl); ?> <script type="text/javascript"> var selected_location = '<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['location']->value['location_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> '; var dynamic_object_id = '<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> '; var dynamic_object_type = '<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['dynamic_object_scheme']->value['object_type']) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8'); ?> '; var BlockManager = new BlockManager_Class(); // New traslations Tygh.tr({ block_already_exists_in_grid: '<?php echo strtr($_smarty_tpl->__("block_already_exists_in_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }); if (dynamic_object_id > 0) { var items = null; } else { var items = '.block'; } (function(_, $) { $(document).ready(function() { $('#content_location_' + selected_location).appear(function(){ BlockManager.init('.grid', { // UI settings connectWith: '.grid', items: items, revert: true, placeholder: 'ui-hover-block', opacity: 0.5, // BlockManager_Class settings parent: this, container_class: 'container', grid_class: 'grid', block_class: 'block', hover_element_class: 'hover-element' }); }); }); }(Tygh, Tygh.$)); </script> <?php if ($_smarty_tpl->tpl_vars['dynamic_object']->value['object_id'] > 0) { ?> <?php echo smarty_function_style(array('src' => "block_manager_in_tab.css"), $_smarty_tpl); ?> <?php } echo smarty_function_style(array('src' => "lib/960/960.css"), $_smarty_tpl); ?> <div id="block_window" class="grid-block hidden"></div> <div id="block_manager_menu" class="grid-menu hidden"></div> <div id="block_manager_prop" class="grid-prop hidden"></div> <?php echo $_smarty_tpl->getSubTemplate("views/block_manager/render/grid.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('default_class' => "base-grid hidden", 'show_menu' => true), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/block_manager/render/block.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('default_class' => "base-block hidden", 'block_data' => true), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_location_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['location']->value['location_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php echo smarty_function_render_location(array('dispatch' => $_smarty_tpl->tpl_vars['location']->value['dispatch'], 'location_id' => $_smarty_tpl->tpl_vars['location']->value['location_id'], 'area' => 'A', 'lang_code' => $_smarty_tpl->tpl_vars['location']->value['lang_code']), $_smarty_tpl); ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/block_manager/components/update_layout.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('layout_data' => array()), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_layout", 'text' => __("new_layout"), 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'act' => "general", 'icon' => "icon-plus", 'title' => __("add_layout")), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "manage_blocks", 'text' => __("block_manager"), 'link_text' => __("manage_blocks"), 'link_class' => "cm-action bm-action-manage-blocks", 'act' => "link", 'content' => '', 'general_class' => "action-btn"), 0); ?> </li> <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' => "export_layout_manager", 'text' => __("export_layout"), 'link_text' => __("export_layout"), 'act' => "link", 'href' => "block_manager.export_layout", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'content' => '', 'general_class' => "action-btn"), 0); ?> </li> <li> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "import_layout_manager", 'text' => __("import_layout"), 'link_text' => __("import_layout"), 'act' => "link", 'href' => "block_manager.import_layout", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'content' => '', 'general_class' => "action-btn"), 0); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <div class="cm-j-tabs tabs tabs-with-conf"> <ul class="nav nav-tabs"> <?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tab']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) { $_smarty_tpl->tpl_vars['tab']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tab']->key; ?> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['id_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['tab']->value['hidden'] == "Y") { ?> hidden <?php } if ($_smarty_tpl->tpl_vars['key']->value == "location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']) { ?> active extra-tab<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['key']->value == "location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id']) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_location"); $_tmp1 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'class' => "cm-ajax-force hand icon-cog", 'href' => "block_manager.update_location?location=" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id'], 'id' => "tab_location_" . (string) $_smarty_tpl->tpl_vars['location']->value['location_id'], 'title' => $_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['tab']->value['title'])); ?> <?php } ?> <a <?php if ($_smarty_tpl->tpl_vars['tab']->value['href']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['tab']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <li class="divider"></li> <?php if (!$_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) { ?> <li class="cm-no-highlight"> <?php ob_start(); echo $_smarty_tpl->__("add_location"); $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_location", 'text' => __("new_location"), 'link_text' => $_tmp2 . "…", 'act' => "link", 'href' => "block_manager.update_location", 'opener_ajax_class' => "cm-ajax", 'link_class' => "cm-ajax-force", 'icon' => "icon-plus", 'content' => ''), 0); ?> </li> <?php } ?> </ul> </div> <div class="cm-tabs-content"> <?php echo Smarty::$_smarty_vars['capture']['tabsbox']; ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <div id="block_manager_sidebar"> <div class="sidebar-row layouts"> <h6><?php echo $_smarty_tpl->__("switch_layout"); ?> </h6> <ul class="nav nav-list"> <?php $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["layout"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['layouts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["layout"]->key => $_smarty_tpl->tpl_vars["layout"]->value) { $_smarty_tpl->tpl_vars["layout"]->_loop = true; ?> <li class="with-menu <?php if ($_smarty_tpl->tpl_vars['layout']->value['layout_id'] == $_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id']) { ?> active<?php } ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php ob_start(); echo htmlspecialchars(fn_url("?s_layout=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], "C"), ENT_QUOTES, 'UTF-8'); $_tmp3 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("preview"), 'href' => $_tmp3, 'target' => "_blank")); ?> </li> <li class="divider"></li> <?php if (!$_smarty_tpl->tpl_vars['layout']->value['is_default']) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("make_default"), 'href' => "block_manager.set_default_layout?layout_id=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'class' => "cm-ajax", 'data' => array("data-ca-target-id" => "block_manager_sidebar"))); ?> </li> <?php } ?> <li> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/block_manager/components/update_layout.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('layout_data' => $_smarty_tpl->tpl_vars['layout']->value), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php ob_start(); echo $_smarty_tpl->__("editing_layout"); $_tmp4 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upate_layout_" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'text' => $_tmp4 . ": " . (string) $_smarty_tpl->tpl_vars['layout']->value['name'], 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'act' => "link", 'link_text' => __("properties")), 0); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['layout']->value['is_default']) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'href' => "block_manager.delete_layout?layout_id=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id'], 'class' => "cm-confirm")); ?> </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(); } ?> <div class="pull-right"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <a href="<?php echo htmlspecialchars(fn_url("block_manager.manage?s_layout=" . (string) $_smarty_tpl->tpl_vars['layout']->value['layout_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> </ul> </div> <hr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "layouts:sidebar")); $_block_repeat = true; echo smarty_block_hook(array('name' => "layouts:sidebar"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="sidebar-row"> <?php $_smarty_tpl->_capture_stack[0][] = array("widget_code", null, null); ob_start(); ?> <div class="tygh" id="tygh_container"> </div> <script type="text/javascript"> (function() { var url = 'https:' == document.location.protocol ? '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['widget_https_url']->value, ENT_QUOTES, 'UTF-8'); ?> ' : '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['widget_http_url']->value, ENT_QUOTES, 'UTF-8'); ?> '; var cw = document.createElement('script'); cw.type = 'text/javascript'; cw.async = true; cw.src = '//widget.cart-services.com/static/init.js?url=' + url + '&layout=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id'], ENT_QUOTES, 'UTF-8'); ?> '; document.getElementById('tygh_container').appendChild(cw); })(); </script> <?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(); } ?> <h6><?php echo $_smarty_tpl->__("widget_code"); ?> </h6> <div class="clearfix"> <fieldset> <textarea class="copy-field" id="widget_code_box" readonly="readonly" cols="30" rows="10"><?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['widget_code'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <a class="pull-right cm-select-text" data-ca-select-id="widget_code_box"><?php echo $_smarty_tpl->__("select_all"); ?> </a> </fieldset> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "layouts:sidebar"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--block_manager_sidebar--></div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php if ($_smarty_tpl->tpl_vars['dynamic_object']->value['object_id']) { ?> <?php echo Smarty::$_smarty_vars['capture']['mainbox']; ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_layout"); $_tmp5 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['layout_data']->value['name'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => true, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php } }
function content_55ccec9bb30187_53027225($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_render_location')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.render_location.php'; } fn_preload_lang_vars(array('on_site_template_editing', 'on_site_text_editing')); ?> <!DOCTYPE html> <html lang="<?php echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> "> <head> <?php $_smarty_tpl->_capture_stack[0][] = array("title", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:title")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:title"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_title']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_title']->value, ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->_loop = false; $_from = $_smarty_tpl->tpl_vars['breadcrumbs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['i']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['i']->iteration = 0; $_smarty_tpl->tpl_vars['i']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value) { $_smarty_tpl->tpl_vars['i']->_loop = true; $_smarty_tpl->tpl_vars['i']->iteration++; $_smarty_tpl->tpl_vars['i']->index++; $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->index === 0; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['first'] = $_smarty_tpl->tpl_vars['i']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['last'] = $_smarty_tpl->tpl_vars['i']->last; ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['first']) { echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['i']->value['title']), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['last']) { ?> :: <?php } } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_page_title']->value && $_smarty_tpl->tpl_vars['location_data']->value['title']) { if (count($_smarty_tpl->tpl_vars['breadcrumbs']->value) > 1) { ?> - <?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['location_data']->value['title'], ENT_QUOTES, 'UTF-8'); } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:title"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <title><?php echo trim(preg_replace('!\\s+!u', ' ', Smarty::$_smarty_vars['capture']['title'])); ?> </title> <?php echo $_smarty_tpl->getSubTemplate("meta.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['favicon']['image']['image_path'], ENT_QUOTES, 'UTF-8'); ?> " rel="shortcut icon" /> <?php echo $_smarty_tpl->getSubTemplate("common/styles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('include_dropdown' => true), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <link rel="stylesheet" href="/../../../../js/lib/malihu-custom-scrollbar-plugin-3.0.8/jquery.mCustomScrollbar.min.css" /> </head> <body> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_template_editing"), 'href' => "customization.disable_mode?type=design"), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_text_editing"), 'href' => "customization.disable_mode?type=translation"), 0); ?> <?php } ?> <?php if (defined("THEMES_PANEL")) { ?> <?php echo $_smarty_tpl->getSubTemplate("demo_theme_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <div class="ty-tygh <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> te-mode<?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> ty-top-panel-padding<?php } ?> " id="tygh_container"> <?php echo $_smarty_tpl->getSubTemplate("common/loading_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/notification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="ty-helper-container" id="tygh_main_container"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_render_location(array(), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_main_container--></div> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['translation']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/translate_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/template_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/theme_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:footer")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:footer"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:footer"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_container--></div> <script type="text/javascript"> window.$zopim || (function(d, s) { var z = $zopim = function(c) { z._.push(c) }, $ = z.s = d.createElement(s), e = d.getElementsByTagName(s)[0]; z.set = function(o) { z.set. _.push(o) }; z._ = []; z.set._ = []; $.async = !0; $.setAttribute('charset', 'utf-8'); $.src = '//cdn.zopim.com/?N6m1TZ5Vu8PPo8Ed3HHKF4EkxhxKBHtF'; z.t = +new Date; $. type = 'text/javascript'; e.parentNode.insertBefore($, e) })(document, 'script'); </script> <script type='text/javascript'> $(document).ready(function() { console.log('limba selectata'+$('#ls_frontend_language').text()) if (!$("#sw_dropdown_269").length) { var ls_recently_name_url=fn_url('index.ls_recently_viewed_name'); console.log('ls_recently_name_url='+ls_recently_name_url); var request0 = $.ajax({ url: ls_recently_name_url, dataType: 'json', type: 'POST' }); request0.done(function (msg) { // msg = jQuery.parseJSON(msg); // only works with msg.text! msg.text=msg.text.replace('Array',''); msg = jQuery.parseJSON(msg.text); // console.log('the recently viewed block name is ',msg.ro); // }); if($('#ls_frontend_language').text()=='ro') { $(".span2.demo-store-grid").append('<div class="ty-dropdown-box footer_window recently_seen ty-float-left"><div id="sw_dropdown_269" class="ty-dropdown-box__title cm-combination closed"> \ <a>'+msg.ro+'</a> \ </div> \ <div id="dropdown_269" class="cm-popup-box ty-dropdown-box__content" style="display: none" > \ <div class="botmenu_wrapper ls_menu_resize"> \ <div class="ls_upper_recent"> \ <div id="ls_total_bijuterie" class="ls_total_bijuterie"></div> \ <div class="ls_recent_title">RECENT VIZIONATE</div> \ <div class="ls_close_window"> \ <a href="#"><span class="ls_footer_close_text">ÎNCHIDE</span></a> \ </div> \ </div> \ <div class="ls_recent_carousel"> \ <div class="0_recente">Nu ati vizualizat recent produse</div> \ </div> \ </div> \ </div> \ </div></div>'); } else { $(".span2.demo-store-grid").append('<div class="ty-dropdown-box footer_window recently_seen ty-float-left"><div id="sw_dropdown_269" class="ty-dropdown-box__title cm-combination closed"> \ <a>'+msg.en+'</a> \ </div> \ <div id="dropdown_269" class="cm-popup-box ty-dropdown-box__content" style="display: none" > \ <div class="botmenu_wrapper ls_menu_resize"> \ <div class="ls_upper_recent"> \ <div id="ls_total_bijuterie" class="ls_total_bijuterie"></div> \ <div class="ls_recent_title">RECENTLY VIEWED</div> \ <div class="ls_close_window"> \ <a href="#"><span class="ls_footer_close_text">CLOSE</span></a> \ </div> \ </div> \ <div class="ls_recent_carousel"> \ <div class="0_recente">You have not recently viewed any products.</div> \ </div> \ </div> \ </div> \ </div></div>'); } //display/remove footer link menu's text ls_checkWidth(); }); } //display/remove footer link menu's text ls_checkWidth(); //generate no of favorites span $("#sw_dropdown_279 > a").append("<span id='ls_preferate_no2'>"); //no of recently viewed products var no_li_recent = $('.recently_seen li').length; var items_lang = ""; if(Tygh.cart_language == "ro"){ items_lang = " produse"; }else{ items_lang = " products"; } if (no_li_recent != '1') { $('#ls_total_bijuterie').append('Total: ' + no_li_recent + items_lang); } else { $('#ls_total_bijuterie').append('Total: ' + no_li_recent + items_lang); } if (no_li_recent != '0') { $('#sw_dropdown_269 > a').append(' (' + no_li_recent + ')'); } //display number of favorites products in footer var ls_preferate_no = $('#ls_preferate_no').html(); if (ls_preferate_no != '0') { $('#ls_preferate_no2').append(' (' + ls_preferate_no + ')'); } //hide recent preferate sidebox // $('#sidebox_25').siblings().hide(); // $('#sidebox_25').hide(); } ); </script> <script type='text/javascript'> $(document).ready(function() { function bresize() { var footerDropdownZone = ($(window).width() - 1200) / 2; $('.header_window').children('.ty-dropdown-box__content').css('left', footerDropdownZone); } ; bresize(); $(window).resize(function() { var footerDropdownZone = ($(window).width() - 1200) / 2; $('.header_window').children('.ty-dropdown-box__content').css('left', footerDropdownZone); }); }); </script> <!--script type='text/javascript' src='/../../../../js/carousel/carousel_13.js'></script--> <script type='text/javascript' src='/../../../../js/carousel/SliderOpb.js'></script> <script type='text/javascript' src='/../../../../js/carousel/initSliderOpb.js'></script> <!--script type='text/javascript' src='/../../../../js/carousel/owl.carousel.js'></script--> <script type='text/javascript' src='/../../../../js/carousel/change_fav_footer.js'></script> <script type='text/javascript' src='/../../../../js/ls_js/ls_user_updates.js'></script> <script type='text/javascript' src='/../../../../js/carousel/carousel_cart.js'></script> <script type='text/javascript' src='/../../../../js/jquery.bxslider/jquery.bxslider.min.js'></script> <script type='text/javascript' src='/../../../../js/search_modal/bootstrap.min.js'></script> </body> </html> <?php }
function content_55dc759c51d3e9_78524838($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_render_location')) { include '/var/www/html/market/app/functions/smarty_plugins/function.render_location.php'; } fn_preload_lang_vars(array('on_site_template_editing', 'on_site_live_editing')); ?> <!DOCTYPE html> <html lang="<?php echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> "> <head> <?php $_smarty_tpl->_capture_stack[0][] = array("page_title", null, null); ob_start(); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:title")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:title"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_title']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_title']->value, ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->_loop = false; $_from = $_smarty_tpl->tpl_vars['breadcrumbs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['i']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['i']->iteration = 0; $_smarty_tpl->tpl_vars['i']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value) { $_smarty_tpl->tpl_vars['i']->_loop = true; $_smarty_tpl->tpl_vars['i']->iteration++; $_smarty_tpl->tpl_vars['i']->index++; $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->index === 0; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['first'] = $_smarty_tpl->tpl_vars['i']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["bkt"]['last'] = $_smarty_tpl->tpl_vars['i']->last; ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['first']) { echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['i']->value['title']), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['bkt']['last']) { ?> :: <?php } } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_page_title']->value && $_smarty_tpl->tpl_vars['location_data']->value['title']) { if (count($_smarty_tpl->tpl_vars['breadcrumbs']->value) > 1) { ?> - <?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['location_data']->value['title'], ENT_QUOTES, 'UTF-8'); } } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:title"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <title><?php echo trim(preg_replace('!\\s+!u', ' ', Smarty::$_smarty_vars['capture']['page_title'])); ?> </title> <?php echo $_smarty_tpl->getSubTemplate("meta.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <link href="<?php echo htmlspecialchars(fn_query_remove($_smarty_tpl->tpl_vars['logos']->value['favicon']['image']['image_path'], 't'), ENT_QUOTES, 'UTF-8'); ?> " rel="shortcut icon" type="<?php echo htmlspecialchars(fn_get_mime_content_type($_smarty_tpl->tpl_vars['logos']->value['favicon']['image']['absolute_path']), ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/styles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('include_dropdown' => true), 0); ?> <?php if (defined("DEVELOPMENT") && @constant('DEVELOPMENT') == true) { echo '<script'; ?> type="text/javascript" data-no-defer> window.jsErrors = []; window.onerror = function(errorMessage) { document.write('<div data-ca-debug="1" style="border: 2px solid red; margin: 2px;">' + errorMessage + '</div>'); } <?php echo '</script'; ?> > <?php } ?> </head> <body> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_template_editing"), 'href' => "customization.disable_mode?type=design"), 0); ?> <?php } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("on_site_live_editing"), 'href' => "customization.disable_mode?type=live_editor"), 0); ?> <?php } if (defined("THEMES_PANEL") && !$_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor']) { ?> <?php echo $_smarty_tpl->getSubTemplate("demo_theme_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <div class="ty-tygh <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> te-mode<?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor'] || $_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] || @constant('THEMES_PANEL')) { ?> ty-top-panel-padding<?php } ?> " id="tygh_container"> <?php echo $_smarty_tpl->getSubTemplate("common/loading_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/notification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="ty-helper-container" id="tygh_main_container"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_render_location(array(), $_smarty_tpl); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_main_container--></div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:footer")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:footer"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:footer"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--tygh_container--></div> <?php echo $_smarty_tpl->getSubTemplate("common/scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/template_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['theme_editor']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/theme_editor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> </body> </html> <?php }