You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart/header original.php

66 lines
2.1 KiB

<?php header("Last-Modified: " . get_the_modified_date('r'))?>
<?php
/**
* The Header template for our theme
*/
global $site_work_mode;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<script>
mindbox = window.mindbox || function() { mindbox.queue.push(arguments); };
mindbox.queue = mindbox.queue || [];
mindbox('create');
</script>
<script src="https://api.mindbox.ru/scripts/v1/tracker.js" async></script>
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbe...s.js');
fbq('init', '1791804684725971');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1791804...ipt=1&quot;"
/></noscript>
<!-- End Meta Pixel Code -->
</head>
<?if(!is_page('gp-test')): // заменить на is_front_page()?>
<body <?php body_class(); ?>>
<?php if ( function_exists( 'wp_body_open' ) ) : ?>
<?php wp_body_open(); ?>
<?php endif; ?>
<?php do_action( 'woodmart_after_body_open' ); ?>
<div class="website-wrapper">
<?php if ( woodmart_needs_header() ) : ?>
<?php if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) : ?>
<header <?php woodmart_get_header_classes(); // phpcs:ignore ?>>
<?php whb_generate_header(); ?>
</header>
<?php endif ?>
<?php woodmart_page_top_part(); ?>
<?php endif ?>
<?else:?>
<? // GP | Здесь подключить через require_once шаблон для <header> ?>
<? require_once(get_template_directory() . '/gp-include/new-header.php'); ?>
<?endif;?>