forked from Tokinx/Adams
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·81 lines (77 loc) · 3.96 KB
/
Copy pathheader.php
File metadata and controls
executable file
·81 lines (77 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="<?php bloginfo('template_url'); ?>/style.css?<?php echo THEME_DB_VERSION;?>" type="text/css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/static/caomei1.2.8/style.css?<?php echo THEME_DB_VERSION;?>" type="text/css" rel="stylesheet">
<?php wp_head(); ?>
<script>
if(localStorage.adams_color_style) $('head').append("<style class='diy-color-style'>" + localStorage.adams_color_style + "</style>");
if(localStorage.adams_font_style) $('head').append("<style class='diy-font-style'>" + localStorage.adams_font_style + "</style>");
</script>
</head>
<body>
<!-- Header -->
<header class="header">
<section class="container">
<hgroup itemscope itemtype="https://schema.org/WPHeader">
<h1 class="fullname"><?php (is_single() || is_page()) ? the_title() : bloginfo('name'); ?></h1>
</hgroup>
<?php
wp_nav_menu(
array(
'container' => false,
'theme_location' => 'social_nav',
'items_wrap' => '<nav class="social"><ul id="%1$s" class="%2$s">%3$s</ul></nav>',
'walker' => new description_walker(),
'depth' => 0
)
);
wp_nav_menu(
array(
'container' => false,
'theme_location' => 'header_nav',
'items_wrap' => '<nav class="header_nav"><ul id="%1$s" class="%2$s">%3$s</ul></nav>',
'depth' => 0
)
);
?>
</section>
<section class="infos">
<div class="container">
<?php if (is_single() || is_page()) { ?>
<h2 class="fixed-title"></h2>
<!--<div class="fixed-menus"></div>-->
<div class="fields">
<span><i class="czs-time-l"></i> <time datetime="<?php echo get_the_time('c');?>" itemprop="datePublished" pubdate><?php the_time('Y-m-d') ?></time></span> /
<span><i class="czs-talk-l"></i> <?php comments_number('0', '1', '%'); ?>评</span> /
<a href="javascript:;" data-action="topTop" data-id="<?php the_ID(); ?>" class="dot-good <?php echo isset($_COOKIE['dotGood_' . $post->ID])?'done':''; ?>">
<i class="czs-thumbs-up-l"></i><i class="czs-thumbs-up"></i>
<span class="count"><?php echo get_post_meta($post->ID, 'dotGood', true) ? get_post_meta($post->ID, 'dotGood', true) : '0';?></span>赞
</a>
</div>
<div class="socials">
<div class="donate">
<a href="javascript:;"><i class="czs-coin-l s"></i><i class="czs-coin h"></i> 赏</a>
<div class="window">
<ul>
<?php if (get_option('biji_pay_img_alipay')) echo '<li class="alipay"><img src="' . get_option('biji_pay_img_alipay') . '"/></li>'; ?>
<?php if (get_option('biji_pay_img_wexpay')) echo '<li><img src="' . get_option('biji_pay_img_wexpay') . '"/></li>'; ?>
</ul>
</div>
</div>
<div class="share">
<a href="javascript:;" data-qrcode="//api.qrserver.com/v1/create-qr-code/?size=150x150&margin=10&data=<?php the_permalink(); ?>"><i class="czs-scan-l s"></i><i class="czs-qrcode-l h"></i> 码</a>
</div>
</div>
<?php } else { $placard = get_theme_mod('biji_setting_placard');?>
<h2 class="fixed-title"></h2>
<div class="fixed-menus"></div>
<div class="placard">
<?php echo $placard == '' ? '简单传递美好' : $placard;?>
</div>
<?php } ?>
</div>
</section>
</header>