File: /home/sarlight.ru/public_html/wp-content/themes/addison/header.php
<!DOCTYPE html>
<html class="no-js" <?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 = $page_background[0];
}
$body_style = ' style="background-image:url(' . $page_background . ')"';
}
$header_extra_class = '';
if ( boldthemes_get_option( 'boxed_menu' ) ) {
$header_extra_class .= 'gutter ';
}
wp_head(); ?>
<script>
function readyHideButton(){
var url = window.location.href;
if (url.indexOf("/nakladnoe-osveshhenie/") > -1) {
document.querySelectorAll('.gutter.btPrevNextNav .port .btPrevNextNav a')[1].setAttribute("style","display: none");
}
}
document.addEventListener("DOMContentLoaded", readyHideButton);
</script>
<!-- Блок фавикона -->
<link rel="apple-touch-icon" sizes="76x76" href="<? bloginfo('template_url')?>/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<? bloginfo('template_url')?>/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<? bloginfo('template_url')?>/favicon/favicon-16x16.png">
<link rel="manifest" href="<? bloginfo('template_url')?>/favicon/site.webmanifest">
<link rel="mask-icon" href="<? bloginfo('template_url')?>/favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="cmsmagazine" content="49e7bd2f5d79ef7859363a3765356d65" />
<!-- Блок фавикона -->
<script src="<? bloginfo('template_url')?>/script.js?v=1.0.27" ></script>
<meta name="yandex-verification" content="5bc40705ef2508aa" />
<meta name="google-site-verification" content="p6iQ6aKV5JS9tx_Qp00118xnA0ZwhZno3IETZHmKqtE" />
</head>
<body <?php body_class(); ?> <?php echo wp_kses_post( $body_style ); ?>>
<?php
echo boldthemes_preloader_html(); ?>
<div class="btPageWrap" id="top">
<div class="btVerticalHeaderTop">
<?php if ( has_nav_menu( 'primary' ) ) { ?>
<div class="btVerticalMenuTrigger"> <?php echo boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ); ?></div>
<?php } ?>
<div class="btLogoArea">
<div class="logo">
<span>
<?php boldthemes_logo( 'header' ); ?>
</span>
</div><!-- /logo -->
</div><!-- /btLogoArea -->
</div>
<header class="mainHeader btClear <?php echo esc_attr( $header_extra_class ); ?>">
<div class="mainHeaderInner">
<?php echo boldthemes_top_bar_html( 'top' ); ?>
<div class="btLogoArea menuHolder btClear">
<div class="port">
<?php if ( has_nav_menu( 'primary' ) ) { ?>
<div class="btHorizontalMenuTrigger"> <?php echo boldthemes_get_icon_html( array( "icon" => "fa_f0c9", "url" => "#" ) ); ?></div>
<?php } ?>
<div class="logo">
<span>
<?php boldthemes_logo( 'header' ); ?>
</span>
</div><!-- /logo -->
<?php
if ( boldthemes_get_option( 'menu_type' ) == 'horizontal-below-right' || boldthemes_get_option( 'menu_type' ) == 'horizontal-below-center' || boldthemes_get_option( 'menu_type' ) == 'horizontal-below-left' || boldthemes_get_option( 'menu_type' ) == 'vertical-left' || boldthemes_get_option( 'menu_type' ) == 'vertical-right' ) {
echo boldthemes_top_bar_html( 'logo' );
echo '</div><!-- /port --></div><!-- /menuHolder -->';
echo '<div class="btBelowLogoArea btClear"><div class="port">';
}
?>
<div class="menuPort">
<?php echo boldthemes_top_bar_html( 'menu' ); ?>
<nav>
<?php boldthemes_nav_menu(); ?>
</nav>
</div><!-- .menuPort -->
</div><!-- /port -->
</div><!-- /menuHolder / btBelowLogoArea -->
</div><!-- / inner header for scrolling -->
</header><!-- /.mainHeader -->
<div class="btContentWrap btClear">
<?php
$hide_headline = boldthemes_get_option( 'hide_headline' );
if ( ( ( ! $hide_headline && ! is_404() ) || is_search() ) ) {
boldthemes_header_headline( array( 'breadcrumbs' => false ) );
}
?>
<?php if ( BoldThemesFramework::$page_for_header_id != '' && ! is_search() ) { ?>
<?php
$content = get_post( BoldThemesFramework::$page_for_header_id );
$top_content = $content->post_content;
if ( $top_content != '' ) {
$top_content = apply_filters( 'the_content', $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 = "btBlogHeaderContent">' . str_replace( ']]>', ']]>', $top_content ) . '</div>';
}
?>
<?php } ?>
<div class="btContentHolder">
<div class="btContent">