<?php /** * **************************************************************************** * * DON'T EDIT THIS FILE * After update you will lose all changes. Use child theme * * НЕ РЕДАКТИРУЙТЕ ЭТОТ ФАЙЛ * После обновления Вы потереяете все изменения. Используйте дочернюю тему * * https://docs.wpshop.ru/child-themes/ * * ***************************************************************************** * * @package journalx */ global $wpshop_core; if ( is_singular() ) { $hide_elements = get_post_meta( $post->ID, 'hide_elements', true ); } if ( empty( $hide_elements ) ) $hide_elements = array(); $is_show_header = ( ! in_array( 'header', $hide_elements ) ); ?> <?php /* * HTML-минимизация */ ob_start(); ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="rpd6086e81f5dd463a87bef6af1beda152" content="1e11caa19144553b44c216c7fb252922" /> <meta name="yandex-verification" content="a82221564d88ec20" /> <?php wp_head(); ?> <?php $wpshop_core->the_option( 'code_head' ) ?> <link rel="icon" href="/favicon.ico" type="image/x-icon"/> <meta name="yandex-verification" content="a82221564d88ec20" /> <meta name="fpaaccept" content="f45fc739-f967-4da6-a4d9-67594ff349df" /> <meta name="google-site-verification" content="q7BmerWPACRyqEWZ9GDTK0r2rGosUyNA9BEA21oYo54" /> <!-- Yandex.RTB --> <script>window.yaContextCb=window.yaContextCb||[]</script> <script src="https://yandex.ru/ads/system/context.js" async></script> </head> <body <?php body_class(); ?>> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter4116586 = new Ya.Metrika2({ id:4116586, clickmap:true, trackLinks:true, accurateTrackBounce:true}); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks2"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/4116586" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> <!--noindex--> <!--LiveInternet counter--><script type="text/javascript"> new Image().src = "//counter.yadro.ru/hit?r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";h"+escape(document.title.substring(0,150))+ ";"+Math.random();</script><!--/LiveInternet--> <!--/noindex--> <?php $wpshop_core->check_license(); ?> <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', THEME_TEXTDOMAIN ); ?></a> <?php do_action( THEME_SLUG . '_before_header' ) ?> <?php if ( $is_show_header ) { ?> <header id="masthead" class="site-header <?php $wpshop_core->the_option( 'header_width' ) ?>" itemscope itemtype="http://schema.org/WPHeader"> <div class="humburger js-humburger"><span></span><span></span><span></span></div> <div class="site-branding"> <?php $root_logotype = $wpshop_core->get_option( 'logotype_image' ); if ( ! empty( $root_logotype ) ) { if ( is_front_page() && is_home() && ! is_paged() ) { echo '<div class="site-logotype"><img src="' . $root_logotype . '" alt="' . get_bloginfo('name') . '"></div>'; } else { echo '<div class="site-logotype"><a href="'. esc_url( home_url( '/' ) ) .'"><img src="' . $root_logotype . '" alt="' . get_bloginfo('name') . '"></a></div>'; } } ?> <?php if ( ! $wpshop_core->get_option( 'header_hide_title' ) ) { $site_title_text = get_bloginfo( 'name' ); $site_title_tag = apply_filters( THEME_SLUG . '_site_title_tag', 'div' ); $description = get_bloginfo( 'description', 'display' ); echo '<div class="site-branding__body">'; if ( is_front_page() && is_home() ) { if ( is_paged() ) { $site_title_text = '<a href="' . esc_url( home_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a>'; } } else { if ( ! is_front_page() ) { $site_title_text = '<a href="' . esc_url( home_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a>'; } } echo '<' . $site_title_tag . ' class="site-title">' . $site_title_text . '</' . $site_title_tag . '>'; if ( $description || is_customize_preview() ) : echo '<p class="site-description">' . $description . '</p>'; endif; echo '</div>'; } ?> </div><!-- .site-branding --> <?php $header_html_block_1 = $wpshop_core->get_option( 'header_html_block_1' ); if ( ! empty( $header_html_block_1 )) { ?> <div class="header-html-1"> <?php echo $header_html_block_1; ?> </div> <?php } ?> <?php if ( $wpshop_core->get_option( 'header_social' ) ) { get_template_part( 'template/parts/social', 'links' ); } ?> <nav id="site-navigation" class="main-navigation"> <?php wp_nav_menu( array( 'theme_location' => 'header_menu', 'menu_id' => 'primary-menu', ) ); ?> </nav><!-- #site-navigation --> <?php $header_html_block_2 = $wpshop_core->get_option( 'header_html_block_2' ); if ( ! empty( $header_html_block_2 )) { ?> <div class="header-html-2"> <?php echo $header_html_block_2; ?> </div> <?php } ?> <div class="header-search"> <span class="search-icon js-search-icon"></span> </div> </header><!-- #masthead --> <?php } ?> <?php do_action( THEME_SLUG . '_after_header' ) ?> <div class="mobile-menu-placeholder js-mobile-menu-placeholder"></div> <div class="search-screen js-search-screen"> <?php get_search_form() ?> </div> <?php do_action( THEME_SLUG . '_before_site_content' ) ?> <div id="content" class="site-content">