$top_left_header_menu, 'fallback_cb' => false, 'container' => false, 'menu_class' => 'clearfix top-menu' ) ); } elseif ( $top_left_header == 'widget' && !empty( $top_left_header_widget ) ) { dynamic_sidebar( $top_left_header_widget ); } } } if ( !function_exists( 'punte_top_right_header_callback' ) ) { function punte_top_right_header_callback() { global $punte_options; $top_right_header = isset( $punte_options[ 'top-right-header' ] ) ? $punte_options[ 'top-right-header' ] : 'empty'; $top_right_header_html_text = isset( $punte_options[ 'top-right-header-html-text' ] ) ? $punte_options[ 'top-right-header-html-text' ] : ""; $top_right_header_menu = isset( $punte_options[ 'top-right-header-menu' ] ) ? $punte_options[ 'top-right-header-menu' ] : ""; $top_right_header_widget = isset( $punte_options[ 'top-right-header-widget' ] ) ? $punte_options[ 'top-right-header-widget' ] : ""; if ( $top_right_header == 'html-text' ) { echo wp_kses_post( $top_right_header_html_text ); } elseif ( $top_right_header == 'menu' && !empty( $top_right_header_menu ) ) { wp_nav_menu( array( 'menu' => $top_right_header_menu, 'fallback_cb' => false, 'container' => false, 'menu_class' => 'clearfix top-menu' ) ); } elseif ( $top_right_header == 'widget' && !empty( $top_right_header_widget ) ) { dynamic_sidebar( $top_right_header_widget ); } } } if ( !function_exists( 'punte_header_logo_callback' ) ) { function punte_header_logo_callback() { global $punte_options; if ( isset( $punte_options[ 'upload-logo' ][ 'url' ] ) && !empty( $punte_options[ 'upload-logo' ][ 'url' ] ) ) { $header_logo = $punte_options[ 'upload-logo' ][ 'url' ]; ?> <?php bloginfo( 'name' ); ?>

theme_location == 'primary' ) { $items .= ''; } } return $items; } } if ( !function_exists( 'punte_header_search_wrapper' ) ) { function punte_header_search_wrapper() { global $punte_options; $icon = punte_get_icon_svg('circle_times',36); $form = '
'; $form .= '
'.$icon.'
'; $form .= '
'; $form .= ''; $form .= '
'; $form .= '
'; $result = apply_filters( 'get_search_form', $form ); $enable_navbar_search = isset( $punte_options[ 'enable-navbar-search' ] ) ? $punte_options[ 'enable-navbar-search' ] : true; if ( $enable_navbar_search ) { echo $result; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } add_action( 'punte_page_header', 'punte_page_header_layout', 10 ); add_action( 'punte_post_header', 'punte_post_header_layout', 10 ); add_action( 'punte_archive_header', 'punte_archive_header_layout', 10 ); if ( !class_exists( 'Punte_Companion' ) ) { function punte_page_header_layout() { global $punte_options; $enable_header = isset( $punte_options[ 'page-enable-header-bar' ] ) ? $punte_options[ 'page-enable-header-bar' ] : true; $enable_main_breadcrumb = isset( $punte_options[ 'enable-breadcrumb' ] ) ? $punte_options[ 'enable-breadcrumb' ] : true; if ( !$enable_header ) return; $data_parallax = ""; $parallax_header = isset( $punte_options[ 'page-header-parallax' ] ) ? $punte_options[ 'page-header-parallax' ] : true; $header_bg = isset( $punte_options[ 'page-header-bg' ] ) ? $punte_options[ 'page-header-bg' ] : ''; $header_style = isset( $punte_options[ 'page-header-style' ] ) ? $punte_options[ 'page-header-style' ] : 'header-style1'; $header_overlay = isset( $punte_options[ 'page-header-overlay' ] ) ? $punte_options[ 'page-header-overlay' ] : false; if ( $parallax_header && isset( $header_bg[ 'background-image' ] ) && $header_bg[ 'background-image' ] ) { $data_parallax = 'data-stellar-background-ratio="0.5"'; } ?>
'; echo ''.$search_icon.''; echo '
'; } ?>