function content_55dc759e1cd415_68714407($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_set_id')) { include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('menu', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_more', 'menu', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_more')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <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><?php echo $_smarty_tpl->__("menu"); ?> </span> </a> </li> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['subitems_count']->value) { ?> <?php } ?> <li class="ty-menu__item<?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } if ($_smarty_tpl->tpl_vars['item1']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <a <?php if ($_smarty_tpl->tpl_vars['item1_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__item-link"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } if ($_smarty_tpl->tpl_vars['item2']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } if ($_smarty_tpl->tpl_vars['item2']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } if ($_smarty_tpl->tpl_vars['item3']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="blocks/topmenu_dropdown.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/topmenu_dropdown.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <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><?php echo $_smarty_tpl->__("menu"); ?> </span> </a> </li> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['subitems_count']->value) { ?> <?php } ?> <li class="ty-menu__item<?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } if ($_smarty_tpl->tpl_vars['item1']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <a <?php if ($_smarty_tpl->tpl_vars['item1_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__item-link"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } if ($_smarty_tpl->tpl_vars['item2']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } if ($_smarty_tpl->tpl_vars['item2']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } if ($_smarty_tpl->tpl_vars['item3']->value['class']) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value['class'], ENT_QUOTES, 'UTF-8'); } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } }
/** * Form top menu * * @param array $top_menu Top menu data from the database * @param int $level Current menu level * @param boolean $active Menu item active flag, returned by reference to set tree branch as active * * @return array Formed top menu */ function fn_top_menu_form($top_menu, $level = 0, &$active = NULL) { /** * Modifies top menu forming parameters * * @param array $top_menu Top menu data from the database * @param int $level Current menu level * @param boolean $active Menu item active flag */ fn_set_hook('top_menu_form_pre', $top_menu, $level, $active); $_active = false; foreach ($top_menu as $k => $v) { if (!empty($v['param_3'])) { // get extra items list($type, $id, $use_name) = fn_explode(':', $v['param_3']); if ($type == 'C') { // categories $cats = fn_get_categories_tree($id, true); $v['subitems'] = fn_array_merge(fn_top_menu_standardize($cats, 'category_id', 'category', 'subcategories', 'categories.view?category_id='), !empty($v['subitems']) ? $v['subitems'] : array(), false); if ($use_name == 'Y' && !empty($id)) { $v['descr'] = fn_get_category_name($id); $v['param'] = 'categories.view?category_id=' . $id; } //Should add this checking because the same pages can have different request parameters and the next checking //with fn_top_menu_is_current_url function could return incorrect result. //For example: categories.view?category_id=165 and categories.view?category_id=165¤cy=EUR should have the same active elements. if (fn_check_is_active_menu_item(array('category_id' => $id), 'categories')) { $top_menu[$k]['active'] = true; } } elseif ($type == 'A') { // pages $params = array('from_page_id' => $id, 'get_tree' => 'multi_level', 'status' => 'A'); list($pages) = fn_get_pages($params); $v['subitems'] = fn_array_merge(fn_top_menu_standardize($pages, 'page_id', 'page', 'subpages', 'pages.view?page_id='), !empty($v['subitems']) ? $v['subitems'] : array(), false); if ($use_name == 'Y' && !empty($id)) { $page_data = fn_get_page_data($id); $v['descr'] = $page_data['page']; $v['param'] = !empty($page_data['link']) ? $page_data['link'] : 'pages.view?page_id=' . $id; } if (fn_check_is_active_menu_item(array('page_id' => $id), 'pages')) { $top_menu[$k]['active'] = true; } } else { // for addons /** * Deprecated since 4.3.6, use top_menu_form_post instead */ fn_set_hook('top_menu_form', $v, $type, $id, $use_name); } } if (!empty($v['param']) && fn_top_menu_is_current_url($v['param'], $v['param_2'])) { $top_menu[$k]['active'] = true; // Store active value $_active = true; } if (!empty($v['subitems'])) { $top_menu[$k]['subitems'] = fn_top_menu_form($v['subitems'], $level + 1, $active); // If active status was returned fron children if ($active) { $top_menu[$k]['active'] = $active; // Strore fo return and reset activity status for athother elements on this level // Because in one level may be only one active item $_active = true; $active = false; } } $top_menu[$k]['item'] = $v['descr']; $top_menu[$k]['href'] = $v['param']; $top_menu[$k]['level'] = $level; unset($top_menu[$k]['descr'], $top_menu[$k]['param']); } $active = $_active; /** * Modifies top menu items * * @param array $top_menu Top menu data from the database * @param int $level Current menu level * @param boolean $active Menu item active flag */ fn_set_hook('top_menu_form_post', $top_menu, $level, $active); return $top_menu; }
function content_55ccec9d71a408_39818565($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('menu', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_more', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'text_topmenu_more', 'menu', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_view_more', 'text_topmenu_more', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'ls_close', 'text_topmenu_view_more', 'text_topmenu_more')); 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["store_shops"] = new Smarty_variable(ls_get_stores(), null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="responsive_top_menu"> <a class="ty-menu__item-link_special"> <i class="ty-icon-short-list"></i> <span><?php echo $_smarty_tpl->__("menu"); ?> </span> </a> <ul class="responsive_top_menu_ul"> <li class="responsive_top_menu_li"> <div class="span8 top-links-grid"> <div class="ty-dropdown-box top-my-account header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination unlogged" id="sw_dropdown_9"> <a>Contul meu</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_9"> <div class="topmenu_wrapper ls_menu_resize"> <span class="my_account_title">AVETI UN CONT CORIOLAN?</span> <div class="my_account_login"> <div class="ty-login ls_signin"> <?php echo $_smarty_tpl->getSubTemplate("views/auth/login_form2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <div class="my_account_signup"> <ul class="signup_text"> <li> Create a Coriolan account to enjoy: </li> <li> - Faster checkout with saved details </li> <li> - Easy order tracking and order histories </li> <li> - Share your favourite products via Shortlist </li> <li> - See more at: http://www.coriolan.ro/about </li> </ul> <a class="ty-btn ty-btn__primary ls_buton" rel="nofollow" href="<?php echo htmlspecialchars(fn_url("profiles.add"), ENT_QUOTES, 'UTF-8'); ?> ">Inregistrati-va</a> </div> </div> </div> </div> <div class="ty-dropdown-box top-currencies ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_8"> <a>Moneda</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_8"> <div id="currencies_8"> <?php echo $_smarty_tpl->getSubTemplate("blocks/currencies.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('features' => $_smarty_tpl->tpl_vars['product']->value['header_features']), 0); ?> <!--currencies_8--> </div> </div> </div> <div class="ty-dropdown-box header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_280"> <a>Magazine</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_280"> <div class="ty-wysiwyg-content"> <div class="topmenu_wrapper ls_menu_resize"> <div class="ls_upper_magazine"> <?php $_smarty_tpl->tpl_vars['store_shop'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['store_shop']->_loop = false; $_from = $_smarty_tpl->tpl_vars['store_shops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['store_shop']->key => $_smarty_tpl->tpl_vars['store_shop']->value) { $_smarty_tpl->tpl_vars['store_shop']->_loop = true; ?> <div class="ls_upper_mid"> <a href="<?php echo htmlspecialchars(fn_url("store_locator.show_store&store_location_id=" . (string) $_smarty_tpl->tpl_vars['store_shop']->value['store_location_id']), ENT_QUOTES, 'UTF-8'); ?> "> <span class="ls_magazine_text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_shop']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['store_shop']->value['image_pairs'], 'main_image' => true, 'image_width' => 240, 'image_height' => 120), 0); ?> <span class="ls_magazine_text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_shop']->value['city'], ENT_QUOTES, 'UTF-8'); ?> </span> </a> </div> <?php } ?> </div> <div class="ls_mid_magazine"> <div class="ls_mid_left"> <a class="ls_mid_left_a" href="<?php echo htmlspecialchars(fn_url("store_locator.show_all_stores&store_location_type=2"), ENT_QUOTES, 'UTF-8'); ?> "> VEZI TOTI COLABORATORII</a> </div> <div class="ls_mid_right"> <a class="ls_mid_right_a"> PROGRAMARI CONSILIERE</a> </div> </div> </div> </div> </div> </div> <div class="ty-dropdown-box header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_282"> <a>Despre</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_282"> <div class="ty-wysiwyg-content"> <div class="topmenu_wrapper ls_menu_resize"> <div class="ls_upper_despre"> <div class="ls_upper_left_despre"> <span class="ls_upper_title"> DESPRE NOI </span> <ul class="ls_despre_text"> <li><a href="#">BRANDUL CORIOLAN</a></li> <li><a href="#">TIMELINE</a></li> <li><a href="#">TUR VIRTUAL</a></li> <li><a href="#">RESPONSABILITATE SOCIALA</a></li> </ul> </div> <div class="ls_upper_mid_despre"> <span class="ls_upper_title"> PRESA </span> <ul class="ls_despre_text"> <li><a href="#">KIT DE PRESA</a></li> <li><a href="#">COMUNICATE</a></li> <li><a href="#">GALERIE FOTO/VIDEO</a></li> </ul> </div> <div class="ls_upper_right_despre"> <span class="ls_upper_title"> RESELLERS </span> <ul class="ls_despre_text"> <li><a href="#">GASESTE MAGAZIN COLABORATOR</a></li> <li><a href="#">DEVINO PARTENER CORIOLAN</a></li> </ul> </div> </div> <div class="ls_despre_mid"> <ul class="ls_top_info"> <li><a href="#">@Coriolan 2014</a></li> <li><a href="#">SiteMap</a></li> <li><a href="#">Termeni si Conditii</a></li> <li><a href="#">Confidentialitate</a></li> <li><a href="#">Plati Online si Securitate</a></li> <li><a href="#">Politica Cookie-uri</a></li> </ul> </div> </div> </div> </div> </div> </div> </li> <li class="responsive_top_menu_li"> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <li class="ty-menu__item <?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle cm-responsive-menu-toggle"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 25) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">INELE DE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">CU PIETRE PREŢIOASE</a></li> <li class="ty-menu__submenu-item"><a href="">CU PERLE</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">COLECȚII INELE DE LOGODNĂ</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a href="">SELECŢII DESIGNER</a></li> </ul> </li> </ul> </div> <div class="menu_category last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> </div> </li> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 1) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category double_column"> <span class="menu_title">COLECȚII VERIGHETE</span> <ul class="category_container"> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECŢII DESIGNER</a></li> </ul> </li> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2010' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2011' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2012' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != 'toate produsele') { ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">CULORI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MONOCOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">BICOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">TRICOLORE</a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">LATIME</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PANA LA 4 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 4 SI 5.5 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 5.5 SI 7 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PESTE 7 MM</a> </li> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">NUMAR DIAMANTE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">1</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 3</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 5</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 7</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 11</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 60%</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">COMPLET</a> </li> </ul> </div> </div> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 64) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECTII DESIGNER</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">TIPURI BIJUTERIE</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> </div> </li> <?php } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header <?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } ?> </li> </ul> </div> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu responsive-top-menu-desktop-version ls_top_menu_desktop_main"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['subitems_count']->value) { ?> <?php } ?> <li class="ty-menu__item <?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <a <?php if ($_smarty_tpl->tpl_vars['item1_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__item-link"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 25) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">INELE DE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">CU PIETRE PREŢIOASE</a></li> <li class="ty-menu__submenu-item"><a href="">CU PERLE</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">COLECȚII INELE DE LOGODNĂ</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a href="">SELECŢII DESIGNER</a></li> </ul> </li> </ul> </div> <div class="menu_category last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 1) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category double_column"> <span class="menu_title">COLECȚII VERIGHETE</span> <ul class="category_container"> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECŢII DESIGNER</a></li> </ul> </li> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2010' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2011' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2012' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != 'toate produsele') { ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">CULORI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MONOCOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">BICOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">TRICOLORE</a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">LATIME</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PANA LA 4 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 4 SI 5.5 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 5.5 SI 7 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PESTE 7 MM</a> </li> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">NUMAR DIAMANTE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">1</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 3</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 5</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 7</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 11</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 60%</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">COMPLET</a> </li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 64) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECTII DESIGNER</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">TIPURI BIJUTERIE</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header <?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="blocks/topmenu_dropdown.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/topmenu_dropdown.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["store_shops"] = new Smarty_variable(ls_get_stores(), null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="responsive_top_menu"> <a class="ty-menu__item-link_special"> <i class="ty-icon-short-list"></i> <span><?php echo $_smarty_tpl->__("menu"); ?> </span> </a> <ul class="responsive_top_menu_ul"> <li class="responsive_top_menu_li"> <div class="span8 top-links-grid"> <div class="ty-dropdown-box top-my-account header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination unlogged" id="sw_dropdown_9"> <a>Contul meu</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_9"> <div class="topmenu_wrapper ls_menu_resize"> <span class="my_account_title">AVETI UN CONT CORIOLAN?</span> <div class="my_account_login"> <div class="ty-login ls_signin"> <?php echo $_smarty_tpl->getSubTemplate("views/auth/login_form2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <div class="my_account_signup"> <ul class="signup_text"> <li> Create a Coriolan account to enjoy: </li> <li> - Faster checkout with saved details </li> <li> - Easy order tracking and order histories </li> <li> - Share your favourite products via Shortlist </li> <li> - See more at: http://www.coriolan.ro/about </li> </ul> <a class="ty-btn ty-btn__primary ls_buton" rel="nofollow" href="<?php echo htmlspecialchars(fn_url("profiles.add"), ENT_QUOTES, 'UTF-8'); ?> ">Inregistrati-va</a> </div> </div> </div> </div> <div class="ty-dropdown-box top-currencies ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_8"> <a>Moneda</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_8"> <div id="currencies_8"> <?php echo $_smarty_tpl->getSubTemplate("blocks/currencies.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('features' => $_smarty_tpl->tpl_vars['product']->value['header_features']), 0); ?> <!--currencies_8--> </div> </div> </div> <div class="ty-dropdown-box header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_280"> <a>Magazine</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_280"> <div class="ty-wysiwyg-content"> <div class="topmenu_wrapper ls_menu_resize"> <div class="ls_upper_magazine"> <?php $_smarty_tpl->tpl_vars['store_shop'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['store_shop']->_loop = false; $_from = $_smarty_tpl->tpl_vars['store_shops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['store_shop']->key => $_smarty_tpl->tpl_vars['store_shop']->value) { $_smarty_tpl->tpl_vars['store_shop']->_loop = true; ?> <div class="ls_upper_mid"> <a href="<?php echo htmlspecialchars(fn_url("store_locator.show_store&store_location_id=" . (string) $_smarty_tpl->tpl_vars['store_shop']->value['store_location_id']), ENT_QUOTES, 'UTF-8'); ?> "> <span class="ls_magazine_text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_shop']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('images' => $_smarty_tpl->tpl_vars['store_shop']->value['image_pairs'], 'main_image' => true, 'image_width' => 240, 'image_height' => 120), 0); ?> <span class="ls_magazine_text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_shop']->value['city'], ENT_QUOTES, 'UTF-8'); ?> </span> </a> </div> <?php } ?> </div> <div class="ls_mid_magazine"> <div class="ls_mid_left"> <a class="ls_mid_left_a" href="<?php echo htmlspecialchars(fn_url("store_locator.show_all_stores&store_location_type=2"), ENT_QUOTES, 'UTF-8'); ?> "> VEZI TOTI COLABORATORII</a> </div> <div class="ls_mid_right"> <a class="ls_mid_right_a"> PROGRAMARI CONSILIERE</a> </div> </div> </div> </div> </div> </div> <div class="ty-dropdown-box header_window ty-float-right"> <div class="ty-dropdown-box__title cm-combination " id="sw_dropdown_282"> <a>Despre</a> </div> <div class="cm-popup-box ty-dropdown-box__content hidden" id="dropdown_282"> <div class="ty-wysiwyg-content"> <div class="topmenu_wrapper ls_menu_resize"> <div class="ls_upper_despre"> <div class="ls_upper_left_despre"> <span class="ls_upper_title"> DESPRE NOI </span> <ul class="ls_despre_text"> <li><a href="#">BRANDUL CORIOLAN</a></li> <li><a href="#">TIMELINE</a></li> <li><a href="#">TUR VIRTUAL</a></li> <li><a href="#">RESPONSABILITATE SOCIALA</a></li> </ul> </div> <div class="ls_upper_mid_despre"> <span class="ls_upper_title"> PRESA </span> <ul class="ls_despre_text"> <li><a href="#">KIT DE PRESA</a></li> <li><a href="#">COMUNICATE</a></li> <li><a href="#">GALERIE FOTO/VIDEO</a></li> </ul> </div> <div class="ls_upper_right_despre"> <span class="ls_upper_title"> RESELLERS </span> <ul class="ls_despre_text"> <li><a href="#">GASESTE MAGAZIN COLABORATOR</a></li> <li><a href="#">DEVINO PARTENER CORIOLAN</a></li> </ul> </div> </div> <div class="ls_despre_mid"> <ul class="ls_top_info"> <li><a href="#">@Coriolan 2014</a></li> <li><a href="#">SiteMap</a></li> <li><a href="#">Termeni si Conditii</a></li> <li><a href="#">Confidentialitate</a></li> <li><a href="#">Plati Online si Securitate</a></li> <li><a href="#">Politica Cookie-uri</a></li> </ul> </div> </div> </div> </div> </div> </div> </li> <li class="responsive_top_menu_li"> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <li class="ty-menu__item <?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle cm-responsive-menu-toggle"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 25) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">INELE DE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">CU PIETRE PREŢIOASE</a></li> <li class="ty-menu__submenu-item"><a href="">CU PERLE</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">COLECȚII INELE DE LOGODNĂ</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a href="">SELECŢII DESIGNER</a></li> </ul> </li> </ul> </div> <div class="menu_category last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> </div> </li> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 1) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category double_column"> <span class="menu_title">COLECȚII VERIGHETE</span> <ul class="category_container"> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECŢII DESIGNER</a></li> </ul> </li> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2010' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2011' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2012' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != 'toate produsele') { ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">CULORI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MONOCOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">BICOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">TRICOLORE</a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">LATIME</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PANA LA 4 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 4 SI 5.5 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 5.5 SI 7 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PESTE 7 MM</a> </li> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">NUMAR DIAMANTE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">1</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 3</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 5</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 7</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 11</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 60%</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">COMPLET</a> </li> </ul> </div> </div> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 64) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECTII DESIGNER</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">TIPURI BIJUTERIE</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> </div> </li> <?php } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header <?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } ?> </li> </ul> </div> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <ul class="ty-menu__items cm-responsive-menu responsive-top-menu-desktop-version ls_top_menu_desktop_main"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_top_menu")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item1"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item1"]->_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["item1"]->key => $_smarty_tpl->tpl_vars["item1"]->value) { $_smarty_tpl->tpl_vars["item1"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item1_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable(md5($_smarty_tpl->tpl_vars['item1_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["unique_elm_id"] = new Smarty_variable("topmenu_" . (string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['unique_elm_id']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['subitems_count']->value) { ?> <?php } ?> <li class="ty-menu__item <?php if (!$_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> ty-menu__item-nodrop<?php } else { ?> cm-menu-item-responsive<?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item1']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__item-active<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <a <?php if ($_smarty_tpl->tpl_vars['item1_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__item-link"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php if (!fn_check_second_level_child_array($_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value], $_smarty_tpl->tpl_vars['childs']->value)) { ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-items ty-menu__submenu-items-simple cm-responsive-menu-submenu"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_2levels_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 25) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">INELE DE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">CU PIETRE PREŢIOASE</a></li> <li class="ty-menu__submenu-item"><a href="">CU PERLE</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">COLECȚII INELE DE LOGODNĂ</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a href="">SELECŢII DESIGNER</a></li> </ul> </li> </ul> </div> <div class="menu_category last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 1) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category double_column"> <span class="menu_title">COLECȚII VERIGHETE</span> <ul class="category_container"> <li class="extra_option_bottom"> <ul> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECŢII DESIGNER</a></li> </ul> </li> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2010' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2011' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != '2012' && $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value] != 'toate produsele') { ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">CULORI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MONOCOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">BICOLORE</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">TRICOLORE</a> </li> </ul> </div> <div class="menu_category one_column"> <span class="menu_title">LATIME</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PANA LA 4 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 4 SI 5.5 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">INTRE 5.5 SI 7 MM</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">PESTE 7 MM</a> </li> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">NUMAR DIAMANTE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">1</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 3</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 5</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 7</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 11</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">MAXIM 60%</a> </li> <li class="ty-menu__submenu-item"> <a class="ty-menu__submenu-link" href="#">COMPLET</a> </li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['category_id'] == 64) { ?> <li> <div class="menu_container"> <div class="menu_categories"> <div class="menu_category one_column"> <span class="menu_title">NOUTĂŢI</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">EXCLUSIVE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">BESTSELLERS</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SELECTII DESIGNER</a></li> </ul> </div> <div class="menu_category double_column"> <span class="menu_title">TIPURI BIJUTERIE</span> <ul class="category_container"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item_url2"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a class="ty-menu__submenu-link" <?php if ($_smarty_tpl->tpl_vars['item_url2']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item_url2']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-alt-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> </ul> </div> <div class="menu_category one_column last"> <span class="menu_title">PIETRE MONTATE</span> <ul class="category_container"> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">DIAMANTE NEGRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SMARALDE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">SAFIRE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">RUBINE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">PERLE</a></li> <li class="ty-menu__submenu-item"><a class="ty-menu__submenu-link" href="">ALTE PIETRE PREŢIOASE</a></li> </ul> </div> </div> <div class="menu_options"> <ul> <li class="ty-menu__submenu-item"><a href="">TRENDURI INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">DESIGN & PROTOTIPIZARE</a></li> <li class="ty-menu__submenu-item"><a href="">CONSILIERE INELE</a></li> <li class="ty-menu__submenu-item"><a href="">EXPERIENŢĂ & CUNOAŞTERE</a></li> <li class="ty-menu__submenu-item"><a href="">GRAVARE INELE LOGODNĂ</a></li> <li class="ty-menu__submenu-item"><a href="">GARANŢIE INELE</a></li> </ul> </div> <div class="menu_footer"> <p class="message_menu"><a href="">Expediere gratuită până la 1 Noiembrie 2014</a></p> <a class="ls_close_window" href="#"><?php echo $_smarty_tpl->__("ls_close"); ?> </a> </div> </div> </li> <?php } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_2levels_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </div> <?php } else { ?> <div class="ty-menu__submenu" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['unique_elm_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_cols")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <ul class="ty-menu__submenu-items cm-responsive-menu-submenu"> <?php $_smarty_tpl->tpl_vars["item2"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item2"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item2"]->key => $_smarty_tpl->tpl_vars["item2"]->value) { $_smarty_tpl->tpl_vars["item2"]->_loop = true; ?> <li class="ty-top-mine__submenu-col"> <?php $_smarty_tpl->tpl_vars["item2_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <div class="ty-menu__submenu-item-header <?php if ($_smarty_tpl->tpl_vars['item2']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item2']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-header-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item2_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <a class="ty-menu__item-toggle visible-phone cm-responsive-menu-toggle"> <i class="ty-menu__icon-open ty-icon-down-open"></i> <i class="ty-menu__icon-hide ty-icon-up-open"></i> </a> <?php } ?> <div class="ty-menu__submenu"> <ul class="ty-menu__submenu-list cm-responsive-menu-submenu"> <?php if ($_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "blocks:topmenu_dropdown_3levels_col_elements")); $_block_repeat = true; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars["item3"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item3"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['item2']->value[$_smarty_tpl->tpl_vars['childs']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item3"]->key => $_smarty_tpl->tpl_vars["item3"]->value) { $_smarty_tpl->tpl_vars["item3"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["item3_url"] = new Smarty_variable(fn_form_dropdown_object_link($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type']), null, 0); ?> <li class="ty-menu__submenu-item<?php if ($_smarty_tpl->tpl_vars['item3']->value['active'] || fn_check_is_active_menu_item($_smarty_tpl->tpl_vars['item3']->value, $_smarty_tpl->tpl_vars['block']->value['type'])) { ?> ty-menu__submenu-item-active<?php } ?> "> <a<?php if ($_smarty_tpl->tpl_vars['item3_url']->value) { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="ty-menu__submenu-link"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item3']->value[$_smarty_tpl->tpl_vars['name']->value], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item2']->value['show_more'] && $_smarty_tpl->tpl_vars['item2_url']->value) { ?> <li class="ty-menu__submenu-item ty-menu__submenu-alt-link"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2_url']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-menu__submenu-link"><?php echo $_smarty_tpl->__("text_topmenu_view_more"); ?> </a> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_col_elements"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['item1']->value['show_more'] && $_smarty_tpl->tpl_vars['item1_url']->value) { ?> <li class="ty-menu__submenu-dropdown-bottom"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item1_url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("text_topmenu_more", array("[item]" => $_smarty_tpl->tpl_vars['item1']->value[$_smarty_tpl->tpl_vars['name']->value])); ?> </a> </li> <?php } ?> </ul> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_3levels_cols"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php } ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown_top_menu"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "blocks:topmenu_dropdown"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } }