section and everything up till < div id="container" > * * >>>> DO NOT EDIT THIS FILE <<<< * * Warning! DO NOT EDIT THIS FILE, or any other theme file! If you edit ANY theme * file, all your changes will be LOST when you update the theme to a newer version. * Instead, if you need to change theme functionality, CREATE A CHILD THEME! * * >>>> DO NOT EDIT THIS FILE <<<< */ if ( !isset($GLOBALS['weaverx_page_who'])) $GLOBALS['weaverx_page_who'] = 'unknown'; do_action('weaverx_alt_theme', $GLOBALS['weaverx_page_who']); ?> > \n"; /* use full horizontal size on iPad */ echo $viewport; ?> \n"; } do_action('weaverxplus_action','head'); // stuff like other style files... // Fix IE8 scripts need to go after the CSS is loaded (at least for the respond script) wp_head(); ?> >
 
/*if ( false && weaverx_getopt('site_layout') == 'fullwidth') { // put menus outside of inside block for fullwidth layout do_action('weaverx_nav', 'top'); // menus at top }*/ echo '
'; if ( apply_filters('weaverx_replace_pb_area', 'header') == 'header' ) { weaverx_inject_area('header'); // inject header HTML // if ( true || weaverx_getopt('site_layout') != 'fullwidth' ) { // put menus outside of inside block for fullwidth layout do_action('weaverx_nav', 'top'); // menus at top // } /* ======== HEADER WIDGET AREA ======== */ weaverx_header_widget_area( 'top' ); // show header widget area if set to this position echo '
\n"; // version 3.1.10: removed role="banner" /* ======== SITE LOGO and TITLE ======== */ $title_over_image = weaverx_logo_and_title(); // see if move title over image weaverx_header_widget_area( 'before_header' ); // show header widget area if set to this position /* ======== HEADER IMAGE ======== */ weaverx_header_image(); // header image or video if ($title_over_image) echo '
' . "\n"; weaverx_header_widget_area( 'after_header' ); // show header widget area if set to this position /* ======== EXTRA HTML ======== */ weaverx_header_extra_html(); weaverx_header_widget_area( 'after_html' ); // show header widget area if set to this position do_action('weaverxplus_action','header_area_bottom'); weaverx_clear_both('branding'); ?> '; do_action('weaverx_nav', 'bottom'); // menus at bottomk outside of header-inside weaverx_header_widget_area( 'after_menu' ); echo "\n
\n"; } else { */ echo "\n
\n"; //} weaverx_header_widget_area( 'post_header' ); do_action('weaverx_post_header'); // ************* DEFINE HEADER RELATED PLUGGABLE FUNCTION ***************** function weaverx_header_extra_html() { // add extra html to header $extra = weaverx_get_per_page_value('_pp_header_html'); if ( $extra == '' ) $extra = weaverx_getopt('header_html_text'); $hide = weaverx_getopt_default('header_html_hide', 'hide-none'); if ( $extra == '' && is_customize_preview() ) { echo '
'; // need the area there for customizer live preview } else if ( $extra != '' && $hide != 'hide' && !weaverx_is_checked_page_opt('_pp_hide_header_html')) { $c_class = weaverx_area_class('header_html', 'not-pad', '-none', 'margin-none' ); if (weaverx_getopt_expand('expand_header-html')) $c_class .= ' wvrx-expand-full'; // see if the content is just an int, assume it to be a post id if so. // it seems that if a string has an int in it, the (int) cast will just cast that part, and throw away the rest. // we want an int and only an int, so we double cast to test, and that seems to work $post_id = (int) trim($extra); if ( (string) $post_id == $extra && $post_id != 0 ) { // assume a number only is a post id to provide as replacement echo apply_filters('weaverx_page_builder_content', $post_id, 'header-html', $c_class); } else { ?>
'; // place holder return; } // build #header classes $img_class = 'header-image '; if ( $h_hide != 'hide-none' && $h_hide != 'hide') $img_class .= $h_hide . ' '; if ( weaverx_getopt_expand('expand_header-image')) $img_class .= 'wvrx-expand-full '; if (weaverx_getopt('header_image_add_class') != '') { $img_class .= weaverx_getopt('header_image_add_class') . ' '; } $full_wide = weaverx_getopt('header_image_align'); if ( $full_wide == 'alignfull' || $full_wide == 'alignwide' ) // this will override other stuff $img_class .= $full_wide . ' '; $page_type = ( is_single() ) ? 'post' : 'page'; $hdr_bg = weaverx_fi( $page_type, 'header-image'); $hdr_type = ($hdr_bg) ? 'fi' : 'std'; $img_class .= 'header-image-type-' . $hdr_type; echo '
'; // Check different ways to display a header: // 0. Archive type page - including search (Changed: 3.1.1) // 1. As HTML replacement, possibly with regular image as BG header image // 2. As Video Header // 3. As Standard or FI BG replacement (no video supported) // 4. As FI Replacement // 5. As standard Image // 1. HTML replacement $hdr_html = ''; if ( !$hdr_bg ) { // FI as header replacement has priority $hdr_html = weaverx_get_per_page_value('_pp_header_image_html_text'); // per page has priority if ( !$hdr_html ) $hdr_html = weaverx_getopt('header_image_html_text'); if ( $hdr_html && weaverx_getopt('header_image_html_home_only') && !is_front_page()) // only on global, not per page/post $hdr_html = ''; // make empty so will pickup the standard header if ($hdr_html) { // custom header html replacement overrides all other header image options echo do_shortcode($hdr_html); // output the html } } // 2. As Header Video if ( !$hdr_html && weaverx_has_header_video() ) { // echo ""; // Handle Video - don't show if HTML supplied // Note: @todo: WP 4.7 doesn't filter has_header_video, but uses it internally, so video won't show unless defined in WP options // Now just have to emit standard WP Header image code. BG handled in header_video_settings filter. if ( $hdr_bg ) { // have alternate header image to match video $before = ''; $after = ''; if ( weaverx_has_header_video() ) { // handle header video wp_enqueue_script( 'wp-custom-header' ); wp_localize_script( 'wp-custom-header', '_wpCustomHeaderSettings', get_header_video_settings() ); $before = '
'; $after = '
'; } $alt = esc_attr( get_bloginfo( 'name', 'display' )); $fi_hdr = get_the_post_thumbnail( null, 'full', array('alt' => $alt, 'class' => 'wvrx-header-image' ) ); echo $before . $fi_hdr . $after; } else if ( function_exists('the_custom_header_markup') && (weaverx_get_video_render() != 'has-header-video-none') ) { the_custom_header_markup(); // default WP Header Image markup - works for most everything, works with customimzer } else the_header_image_tag(); echo("\n
\n"); return; } // 3. As Standard or FI BG replacement (no video supported) if ( weaverx_getopt_default('header_image_render','header-as-img') != 'header-as-img' // use as BG image? && ( !$hdr_html || weaverx_getopt('header_image_html_plus_bg') ) ) { // have bg, or have BOTH HTML and bg image? if ( !$hdr_bg ) { $hdr_bg = get_header_image(); // get the url of the standard header image } $hdr_bg = str_replace(array('http://', 'https://'),'//', $hdr_bg); // have to emit background-image url... this will be Plus only. if ( strlen($hdr_bg) > 1 ) { $style = "\n\n"; // echo $style; weaverx_inline_style( $style, 'header.php' ); } echo '
'; return; } // end of bg image handling if ($hdr_html) { echo("\n\n"); return; } // Most common case now - either FI replacement, or standard header image // to here, then want to get an image. Where does it come from? if ( weaverx_getopt('link_site_image') ) { ?> $alt, 'class' => 'wvrx-header-image' ) ); } else if ( weaverx_getopt('header_actual_size') ) { ?> <?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> "); /* need to close link */ echo("\n\n"); // end of header image code } //-- function weaverx_logo_and_title() { // generate output to show logo and the title $title_over_image = weaverx_getopt('title_over_image') && (weaverx_getopt_default('header_image_render','header-as-img') == 'header-as-img' || weaverx_getopt('header_image_html_plus_bg') || weaverx_has_header_video()) ; if ( $title_over_image ) echo '
' . "\n"; $h_class = ''; if ( weaverx_getopt('hide_site_title') != 'hide-none') { $h_class = weaverx_getopt('hide_site_title'); $lead = ' '; } $t_class = ''; if ( weaverx_getopt('site_title_add_class') != 'hide-none') $t_class .= ' ' . weaverx_getopt('site_title_add_class'); if ( weaverx_getopt('expand_site_title') ) { $t_class .= ' wvrx-expand-full'; } echo "
\n"; $logo = weaverx_getopt( '_site_logo' ); $hide_logo = weaverx_getopt( '_hide_site_logo' ); $wp_logo = weaverx_get_wp_custom_logo(); if ( $wp_logo ) { $hide_wp_logo = weaverx_getopt('hide_wp_site_logo'); if ( weaverx_is_checked_page_opt( '_pp_hide_customlogo' )) $hide_wp_logo = 'hide'; $wp_logo = str_replace('custom-logo-link', 'custom-logo-link ' . $hide_wp_logo, $wp_logo); // fixup hide } $title = apply_filters('weaverx_site_title', esc_html(get_bloginfo( 'name', 'display' ) ) ); $title_text = $title; if ( strlen($wp_logo) > 0 ) { // there is a logo - what to do... if ( weaverx_getopt('wplogo_for_title') ) { $title_text = ''; } else { echo "\n {$wp_logo}\n"; } } ?>

>

>

\n"; return $title_over_image; // indicator that needs the closing div after the header image itself } ?>