File: /www/wwwroot/h3.iyingtaos.cn/wp-content/themes/twentynineteen/header.php
<?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 WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta name="baidu_union_verify" content="dcc6e405f9467b8a42aecdd55351194f">
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<?php wp_head(); ?>
<meta name="domain_verify" content="pmrgi33nmfuw4ir2ej3w6yljnjtxc3zomnxw2irmejtxk2leei5cemjwgy3gey3gmq4dqnzsgq4dambygyzgmzdfhe2wkmzsgyzwembteiwce5djnvsvgylwmurdumjvguydcmjugq4tgnbwgz6q">
</head>
<body <?php body_class(); ?>>
<div id="page" class="site<?php if ( wp_is_mobile()) { echo ' is-mobile';}?>">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a>
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() && !wp_is_mobile() ? 'site-header featured-image' : 'site-header'; ?>">
<?php if (is_home() ){?>
<div class="site-branding-container" >
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
</div><!-- .layout-wrap -->
<?php }?>
<?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?>
<div class="site-featured-image">
<?php
if (!wp_is_mobile()){ twentynineteen_post_thumbnail();}
the_post();
$discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null;
$classes = 'entry-header';
if ( ! empty( $discussion ) && absint( $discussion->responses ) > 0 ) {
$classes = 'entry-header has-discussion';
}
if (wp_is_mobile()) {
$classes .= ' is-mobile';
};
?>
<div class="<?php echo $classes; ?>">
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
</div><!-- .entry-header -->
<?php rewind_posts(); ?>
</div>
<?php endif; ?>
<?php if ( is_archive() || is_home() ) :?>
<script type="text/javascript">
var ias = $.ias({
container: "#main", //包含所有文章的元素
item: ".post", //文章元素
pagination: ".navigation", //分页元素
next: ".navigation a.next", //下一页元素
});
ias.extension(new IASTriggerExtension({
text: "<span class='nomore'>加载更多</span>", //此选项为需要点击时的文字
offset: 20, //设置此项后,到 offset+1 页之后需要手动点击才能加载,取消此项则一直为无限加载
}));
ias.extension(new IASSpinnerExtension());
ias.extension(new IASNoneLeftExtension({
text: "<span class='nomore'>没有更多了</span>" // 加载完成时的提示
}));
</script>
<!---列表页页眉广告位置-->
<?php endif; ?>
</header><!-- #masthead -->
<div id="content" class="site-content">