-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathpage_header.php
24 lines (24 loc) · 1.19 KB
/
page_header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header_com.php'); ?>
<body style="zoom: 1;">
<div id="web_bg"></div>
<div class="page" id="body-wrap">
<?php if (is_array($this->options->beautifyBlock) && in_array('PageShowTopimg',$this->options->beautifyBlock)): ?>
<header class="not-home-page" id="page-header" style="background-image: url(<?php GetRandomThumbnailPost($this); ?>)">
<div id="page-site-info">
<h1 id="site-title">
<?php $this->archiveTitle(array(
'category' => _t(' %s '),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?>
<?php if($this->user->hasLogin() && $this->is('page')):?>
<a style="float: none;" class="post-edit-link" href="<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php echo $this->cid;?>" title="編輯" target="_blank"><i class="fas fa-pencil-alt"></i></a><?php endif;?>
</h1>
</div>
<?php else: ?>
<header class="not-top-img" id="page-header">
<?php endif; ?>
<?php $this->need('public/nav.php'); ?>
</header>