代码拉取完成,页面将自动刷新
同步操作将从 染川瞳/Sakurairo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Akina
*/
?>
<?php header('X-Frame-Options: SAMEORIGIN'); ?>
<!DOCTYPE html>
<!--
◢\ ☆ /◣
∕ ﹨ ╰╮∕ ﹨
▏ ~~′′~~ |
﹨/ \∕
∕ ● ● \
== ○ ∴·╰╯ ∴ ○ ==
╭──╮ ╭──╮
╔═ ∪∪∪═Mashiro&Hitomi═∪∪∪═╗
-->
<html <?php language_attributes(); ?>>
<head>
<link rel="stylesheet" href="https://fonts.loli.net/css?family=Noto+SerifMerriweather|Merriweather+Sans|Source+Code+Pro|Ubuntu:400,700|Noto+Serif+SC<?php echo akina_option('addfonts'); ?>" media="all">
<meta name="theme-color" content="<?php echo akina_option('theme_skin'); ?>">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( 'page %s ','sakurairo'), max( $paged, $page ) );/*第 %s 页*/?>
</title>
<?php
if (akina_option('akina_meta') == true) {
$keywords = '';
$description = '';
if ( is_singular() ) {
$keywords = '';
$tags = get_the_tags();
$categories = get_the_category();
if ($tags) {
foreach($tags as $tag) {
$keywords .= $tag->name . ',';
};
};
if ($categories) {
foreach($categories as $category) {
$keywords .= $category->name . ',';
};
};
$description = mb_strimwidth( str_replace("\r\n", '', strip_tags($post->post_content)), 0, 240, '…');
} else {
$keywords = akina_option('akina_meta_keywords');
$description = akina_option('akina_meta_description');
};
?>
<meta name="description" content="<?php echo $description; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<link rel="shortcut icon" href="<?php echo akina_option('favicon_link', ''); ?>"/>
<link rel="dns-prefetch" href="//i0.wp.com">
<meta http-equiv="x-dns-prefetch-control" content="on">
<?php wp_head(); ?>
<script type="text/javascript">
if (!!window.ActiveXObject || "ActiveXObject" in window) { //is IE?
alert('朋友,IE浏览器未适配哦~\n如果是 360、QQ 等双核浏览器,请关闭 IE 模式!');
}
</script>
<?php if(akina_option('google_analytics_id', '')):?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo akina_option('google_analytics_id', ''); ?>"></script>
<script>
window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','<?php echo akina_option('google_analytics_id', ''); ?>');
</script>
<?php endif; ?>
</head>
<body <?php body_class(); ?>>
<?php if (akina_option('yjzdh', '1')): ?>
<div id="preload">
<li data-id="3" class="active">
<div id="preloader_3"></div>
</li>
</div>
<?php endif; ?>
<div class="scrollbar" id="bar"></div>
<section id="main-container">
<?php
if(!akina_option('head_focus')){
$filter = akina_option('focus_img_filter');
?>
<div class="headertop <?php echo $filter; ?>">
<?php get_template_part('layouts/imgbox'); ?>
</div>
<?php } ?>
<div id="page" class="site wrapper">
<header class="site-header no-select" role="banner">
<div class="site-top">
<div class="site-branding">
<?php if (akina_option('akina_logo')){ ?>
<div class="site-title">
<a href="<?php bloginfo('url');?>" ><img src="<?php echo akina_option('akina_logo'); ?>"></a>
</div>
<?php }else{ ?>
<span class="site-title">
<span class="logolink moe-mashiro">
<a href="<?php bloginfo('url');?>">
<ruby>
<!-- <span class="site-name"><?php echo akina_option('site_name', ''); ?></span> -->
<span class="sakuraso" style="font-family: '<?php echo akina_option('logo_ztmc', ''); ?>', 'Merriweather Sans', Helvetica, Tahoma, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;;"><?php echo akina_option('logo_a', ''); ?></span>
<span class="no" style="font-family: '<?php echo akina_option('logo_ztmc', ''); ?>', 'Merriweather Sans', Helvetica, Tahoma, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;"><?php echo akina_option('logo_b', ''); ?></span>
<span class="shironeko" style="font-family: '<?php echo akina_option('logo_ztmc', ''); ?>', 'Merriweather Sans', Helvetica, Tahoma, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;"><?php echo akina_option('logo_c', ''); ?></span>
<rp></rp><rt class="chinese-font"><?php echo akina_option('logo_two', ''); ?></rt><rp></rp></ruby>
</a>
</span>
</span>
<?php } ?><!-- logo end -->
</div><!-- .site-branding -->
<?php header_user_menu(); if(akina_option('top_search') == 'yes') { ?>
<div class="searchbox"><i class="iconfont js-toggle-search iconsearch icon-search"></i></div>
<?php } ?>
<div class="lower"><?php if(!akina_option('shownav')){ ?>
<div id="show-nav" class="showNav">
<div class="line line1"></div>
<div class="line line2"></div>
<div class="line line3"></div>
</div><?php } ?>
<nav><?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?></nav><!-- #site-navigation -->
</div>
</div>
</header><!-- #masthead -->
<?php if (get_post_meta(get_the_ID(), 'cover_type', true) == 'hls') {
the_video_headPattern_hls();
} elseif (get_post_meta(get_the_ID(), 'cover_type', true) == 'normal') {
the_video_headPattern_normal();
}else {
the_headPattern();
} ?>
<div id="content" class="site-content">
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。