'; echo ''; $liu = ''; if(isset($ascend['logo']['id']) && !empty($ascend['logo']['id'])) { if(isset($ascend['logo_width']) && !empty($ascend['logo_width'])) { $width = $ascend['logo_width']; } else { $width = 300; } $width = apply_filters('kadence_logo_width', $width); $alt = get_bloginfo('name'); $img = ascend_get_image($width, null, false, 'ascend-logo', $alt, $ascend['logo']['id'], false); echo ''.esc_attr($img['alt']).''; if(isset($ascend['trans_logo']['id']) && !empty($ascend['trans_logo']['id'])) { $img = ascend_get_image($width, null, false, 'ascend-trans-logo', $alt, $ascend['trans_logo']['id'], false); echo ''.esc_attr($img['alt']).''; } $liu = 'kad-logo-used'; } if(isset($ascend['site_title']) && $ascend['site_title'] == 1 || !isset($ascend['site_title'])) { echo ''; echo apply_filters('kad_site_name', get_bloginfo('name')); if(isset($ascend['site_tagline']) && $ascend['site_tagline'] == 1 || !isset($ascend['site_tagline'])) { echo ''; echo apply_filters('kad_site_tagline', get_bloginfo('description')); echo ''; } echo ''; } echo ''; echo ''; } add_action('kadence_menu_vertical_header', 'ascend_primary_vertical_menu', 20); function ascend_primary_vertical_menu() { if (has_nav_menu('primary_navigation')) : ?>
$value) { if($value == 1) { $n ++; } } if($n >= 4) { $switch_number = 2; } else { $switch_number = 1; } if($side == 'left') { $header_extras = array_slice($header_extras, 0, $switch_number); } else { $header_extras = array_slice($header_extras, $switch_number); } } } // For vertical header lets see if cart is after search $outerclass = ''; if($class == 'sf-vertical') { if (isset($header_extras) && !empty($header_extras)){ $search_in_loop = 9; $i = 1; foreach ($header_extras as $key=>$value) { if($key == 'search' && $value == '1') {$search_in_loop = $i;} if($key == 'cart' && $value == '1') { if($i == ($search_in_loop + 1)) { $outerclass = 'kt-search-and-cart'; } else { $outerclass = ''; } } $i ++; } } } ?>