'; if( $is_header){ $html_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