'; if( $is_header){ $html_header = sprintf( '

%s

', wpautop($header) ); echo wp_kses_post( $html_header ); } if( $is_seprator){ echo '
'; } if( $is_sub_header ){ $html_sub_header = sprintf( '

%s

', wpautop($sub_header) ); echo wp_kses_post( $html_sub_header ); } echo ''; } } // function hotelgalaxy_media_query( $device ) { $mobile = apply_filters( 'hotelgalaxy_mobile_media_query', '(max-width:768px)' ); $mobile_menu = apply_filters( 'hotelgalaxy_mobile_menu_media_query', $mobile ); $tablet = apply_filters( 'hotelgalaxy_tablet_media_query', '(min-width: 769px) and (max-width: 1024px)' ); $desktop = apply_filters( 'hotelgalaxy_desktop_media_query', '(min-width:1025px)' ); $query = apply_filters( 'hotelgalaxy_media_queries', array( 'mobile' => $mobile, 'mobile-menu' => $mobile_menu, 'tablet' => $tablet, 'desktop' => $desktop, ) ); return $query[ $device ]; } if ( ! function_exists( 'hotelgalaxy_pro_url' ) ) { function hotelgalaxy_pro_url( $url = 'https://webdzier.com', $trailingslashit = true ) { if ( $trailingslashit ) { $url = trailingslashit( $url ); } return esc_url( $url ); } } add_action( 'customize_controls_enqueue_scripts', 'hotelgalaxy_custom_color_palettes' ); /** * Adds custom color palettes to wp.color picker. */ function hotelgalaxy_custom_color_palettes() { $color_palettes = json_encode( array( '#000000', '#ffffff', '#a29060', '#fea116', '#067eff', '#a0d049', '#fe4c1c' ) ); wp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $color_palettes . ';' ); } if ( ! function_exists( 'hotelgalaxy_menu_search_icon' ) ) { add_filter( 'wp_nav_menu_items', 'hotelgalaxy_menu_search_icon', 10, 2 ); function hotelgalaxy_menu_search_icon( $nav, $args ) { if ( hotelgalaxy_get_option('is_menubar_search_icon') == false ) { return $nav; } if ( isset( $args->theme_location ) && 'primary' === $args->theme_location ) { return sprintf('%1$s
  • ', $nav, esc_attr__( 'Search Bar', 'hotel-galaxy' ) ); } return $nav; } } if ( ! function_exists( 'hotelgalaxy_navigation_search' ) ) { add_action( 'hotelgalaxy_inside_navigation_search', 'hotelgalaxy_navigation_search' ); function hotelgalaxy_navigation_search() { if ( hotelgalaxy_get_option('is_menubar_search_icon') == false ) { return; } echo apply_filters( 'hotelgalaxy_navigation_search_output', sprintf('', esc_url( home_url( '/' ) ), esc_attr( get_search_query() ), esc_attr_x( 'Search', 'label', 'hotel-galaxy' ) )); } } ?>