<?php if (cruxstore_is_wpml()) { echo cruxstore_custom_wpml('<li class="language-switcher">', '</li>'); }
<?php // Exit if accessed directly if (!defined('ABSPATH')) { exit; } $items_wrap = ''; if (cruxstore_is_wpml()) { $items_wrap .= cruxstore_custom_wpml('<li class="menu-item menu-item-language">', '</li>', 'sub-menu-dropdown', esc_html__('Language', 'cruxstore') . ': '); } if (cruxstore_is_wc()) { if (class_exists('WOOCS')) { global $WOOCS; $currencies = $WOOCS->get_currencies(); $currency_html = ''; $currency_active = ''; foreach ($currencies as $key => $currency) { if ($WOOCS->current_currency == $key) { $selected = 'active'; $currency_active = $key; } else { $selected = ''; } $currency_html .= sprintf('<li class="%s"><a href="#" data-currency="%s" title="%s"><span></span>%s</a>', $selected, esc_attr($currency['name']), esc_attr($currency['description']), $currency['name']); } $items_wrap .= sprintf('<li class="menu-item menu-item-currency"><a href="#">%s</a><ul class="sub-menu-dropdown">%s</ul></li>', esc_html__('Currency', 'cruxstore') . ': ' . $currency_active, $currency_html); } if (!cruxstore_option('catalog_mode', 0)) { $text = is_user_logged_in() ? esc_html__('My Account', 'cruxstore') : esc_html__('Login', 'cruxstore'); $items_wrap .= sprintf('<li class="menu-item menu-item-myaccount"><a href="%s">call %s</a>', get_permalink(get_option('woocommerce_myaccount_page_id')), $text); if (defined('YITH_WCWL')) {