66 lines
2.3 KiB
PHP
66 lines
2.3 KiB
PHP
<!--[header/head]-->
|
|
|
|
<head itemscope itemtype="https://schema.org/WPHeader">
|
|
|
|
<meta charset="<?= bloginfo('charset'); ?>" />
|
|
<meta name="copyright" lang="ru" content="<?= bloginfo('name'); ?> - profile.ru" />
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
|
|
<?php if( is_single() ): ?>
|
|
|
|
<?php get_template_part("template-parts/header/head-meta-author") ?>
|
|
|
|
<?php endif; ?>
|
|
<link rel="pingback" href="<?= bloginfo( 'pingback_url' ); ?>" />
|
|
|
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
|
|
<link rel="dns-prefetch" href="https://cdn.profile.ru" />
|
|
<link rel="dns-prefetch" href="https://counter.yadro.ru" />
|
|
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
|
|
|
|
<link rel="preconnect" href="https://cdn.profile.ru" />
|
|
|
|
<link rel="profile" href="https://gmpg.org/xfn/11">
|
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" href="<?= get_template_directory_uri() ?>/assets/img/Profile_icon_192x192_blue.png" />
|
|
|
|
<meta name="msvalidate.01" content="13DFD495A6A21226C33225FEE601FE75" />
|
|
<meta property="fb:pages" content="245606408830047" />
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="https://profile.ru/feed/short/" />
|
|
<?php
|
|
if ( is_single() ){
|
|
$current_post_title = get_the_title().' - '.get_bloginfo( 'name' ). ' - profile.ru';
|
|
}
|
|
elseif ( is_post_type_archive() ){
|
|
$post_type_obj = get_queried_object();
|
|
$name = $post_type_obj->labels->name;
|
|
$current_post_title = $name.' - '.get_bloginfo( 'name' ). ' - profile.ru';
|
|
}
|
|
else {
|
|
$current_post_title = wp_get_document_title();
|
|
}?>
|
|
<title itemprop="headline"><?php echo $current_post_title;?></title>
|
|
|
|
<?php if( !is_user_logged_in() ): ?>
|
|
|
|
<?php get_template_part("template-parts/header/counters") ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php get_template_part("template-parts/critical-styles") ?>
|
|
|
|
<?php get_template_part("template-parts/ad/header") ?>
|
|
|
|
<?php get_template_part("template-parts/header/scripts"); ?>
|
|
|
|
<?= wp_head(); ?>
|
|
|
|
</head>
|
|
|
|
<!--[/header/head]-->
|