File: /home/marvidson/public_html/firstenergycrude.com/wp-content/themes/amwerk/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?> <?php boldthemes_theme_data(); ?>>
<head>
<?php
boldthemes_set_override();
boldthemes_header_init();
boldthemes_header_meta();
$body_style = '';~
$page_background = boldthemes_get_option( 'page_background' );
if ( $page_background ) {
if ( is_numeric( $page_background ) ) {
$page_background = wp_get_attachment_image_src( $page_background, 'full' );
$page_background = isset($page_background[0]) ? $page_background[0] : '';
}
$body_style = 'background-image:url(' . $page_background . ')';
}
$header_extra_class = '';
if ( boldthemes_get_option( 'boxed_menu' ) ) {
$header_extra_class .= 'gutter ';
}
wp_head(); ?>
</head>
<body <?php body_class(); ?> <?php if ( $body_style != '' ) echo ' style="' . esc_attr( $body_style ) .'"'; ?>>
<?php wp_body_open(); ?>
<?php echo boldthemes_preloader_html(); ?>
<div class="bt-page-wrap" id="top">
<div class="bt-vertical-header-top">
<?php if ( has_nav_menu( 'primary' ) ) { ?>
<div class="bt-vertical-menu-trigger"> <?php echo boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ); ?></div>
<?php } ?>
<div class="bt-logo-area">
<div class="logo">
<span>
<?php boldthemes_logo( 'header' ); ?>
</span>
</div><!-- /logo -->
</div><!-- /bt-logo-area -->
</div>
<header class="mainHeader bt-clear <?php echo esc_attr( $header_extra_class ); ?>">
<div class="main-header-inner">
<?php echo boldthemes_top_bar_html( 'top' ); ?>
<div class="bt-logo-area menu-holder bt-clear">
<div class="port">
<?php
$menu_prefix = 'primary';
$blog_page_menu = boldthemes_rwmb_meta( BoldThemesFramework::$pfx . $menu_prefix . '_menu_name', array(), get_option( 'page_for_posts' ) );
$shop_page_menu = false;
if ( function_exists( 'is_woocommerce' ) && is_woocommerce() && get_option( 'woocommerce_shop_page_id' ) ) {
$shop_page_menu = boldthemes_rwmb_meta( BoldThemesFramework::$pfx . $menu_prefix . '_menu_name', array(), get_option( 'woocommerce_shop_page_id' ) );
}
if ( has_nav_menu( 'primary' ) || ( is_home() && $blog_page_menu != '' ) || $shop_page_menu || boldthemes_rwmb_meta( BoldThemesFramework::$pfx . $menu_prefix . '_menu_name' ) != '' ) { ?>
<div class="bt-horizontal-menu-trigger"> <?php echo wp_kses(
boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ),
array(
'div' => array(
'id' => array(),
'class' => array(),
'style' => array(),
),
'a' => array(
'href' => array(),
'title' => array(),
'target' => array(),
'data-*' => array(),
),
'span' => array(
'href' => array(),
'title' => array(),
'target' => array(),
'data-*' => array(),
),
) ); ?></div>
<?php } ?>
<div class="logo">
<span>
<?php boldthemes_logo( 'header' ); ?>
</span>
</div><!-- /logo -->
<?php
$menu_type = boldthemes_get_option( 'menu_type' );
if ( $menu_type == 'horizontal-below-right' || $menu_type == 'horizontal-below-center' || $menu_type == 'horizontal-below-left' || $menu_type == 'vertical-left' || $menu_type == 'vertical-right' ) {
echo boldthemes_top_bar_html( 'logo' );
echo '</div><!-- /port --></div><!-- /menu-holder -->';
echo '<div class="bt-below-logo-area bt-clear"><div class="port">';
}
?>
<div class="menuPort">
<?php echo boldthemes_top_bar_html( 'menu' ); ?>
<nav>
<?php boldthemes_nav_menu(); ?>
</nav>
<?php boldthemes_menu_background( $menu_type ); ?>
</div><!-- .menuPort -->
</div><!-- /port -->
</div><!-- /menu-holder / bt-below-logo-area -->
</div><!-- / inner header for scrolling -->
</header><!-- /.mainHeader -->
<div class="bt-content-wrap bt-clear">
<?php
$hide_headline = boldthemes_get_option( 'hide_headline' );
if ( ( ( ! $hide_headline && ! is_404() ) || is_search() ) ) {
boldthemes_header_headline( array( 'breadcrumbs' => true ) );
}
?>
<?php if ( BoldThemesFramework::$page_for_header_id != '' && ! is_search() ) { ?>
<?php
$content = get_post( BoldThemesFramework::$page_for_header_id );
if ( !is_null( $content ) && $content != '' ) {
$top_content = $content->post_content;
if ( $top_content != '' ) {
$top_content = do_shortcode($top_content);
$top_content = preg_replace( '/data-edit_url="(.*?)"/s', 'data-edit_url="' . get_edit_post_link( BoldThemesFramework::$page_for_header_id, '' ) . '"', $top_content );
echo '<div class="bt-blog-header-content">' . str_replace( ']]>', ']]>', $top_content ) . '</div>';
}
}
?>
<?php } ?>
<div class="bt-content-holder">
<div class="bt-content">