Skip to content

Commit

Permalink
部分细节优化
Browse files Browse the repository at this point in the history
Merge pull request #16 from fordes123/dev
  • Loading branch information
fordes123 authored Apr 3, 2024
2 parents 4a0035e + 681263a commit 6d60ab2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<footer class="site-footer">
<div class="container">
<div class="copyright text-xs text-muted text-center">
<span class="d-inline-block">Copyright © 2019-<?php echo date("Y"); ?>
<a class="text-muted" href="#" title="<?php $this->options->title(); ?>" rel="home"> <?php $this->options->title(); ?></a>
. All rights reserved.
<?php if ($this->options->icp != null && $this->options->icp != '') : ?>
<a href="https://beian.miit.gov.cn" target="_blank" rel="nofollow" class="text-muted"><?php $this->options->icp(); ?></a>
<?php endif; ?>
</span>
<span class="d-inline-block">© <?php echo date("Y"); ?></span>
<a class="text-muted" href="<?php $this->options->siteUrl(); ?>" rel="home"><?php $this->options->title(); ?></a>
<?php if (!empty($this->options->icp)) : ?>
<span class="d-inline-block">&nbsp;|&nbsp;</span>
<a href="https://beian.miit.gov.cn" target="_blank" rel="nofollow" class="text-muted"><?php $this->options->icp(); ?></a>
<?php endif; ?>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
<?php $search = json_decode($this->options->searchConfig, true);
if (is_array($search) && count($search) > 0) :
foreach ($search as $index => $item) : ?>
<a href='javascript:;' data-url='<?php echo $item['url']; ?>' class='btn btn-link btn-sm btn-rounded <?php echo $index === 0 ? 'active' : ''; ?>'><i class='<?php echo $item['icon']; ?>' aria-hidden='true'></i><?php echo $item['name']; ?></a>
<a href='javascript:;' data-url='<?php echo $item['url']; ?>' class='btn btn-link btn-sm btn-rounded <?php echo $index === 0 ? 'active' : ''; ?>'><i class='<?php echo $item['icon']; ?>' aria-hidden='true'></i>&nbsp;<?php echo $item['name']; ?></a>
<?php endforeach;
else : ?>
<a href='javascript:;' data-url='https://www.google.com/search?q=' class='btn btn-link btn-sm btn-rounded active'><i class='fab fa-google'></i> 谷歌</a>
<a href='javascript:;' data-url='https://www.google.com/search?q=' class='btn btn-link btn-sm btn-rounded active'><i class='fab fa-google'></i>&nbsp;谷歌</a>
<?php endif; ?>
</div>
<form> <input type="text" class="form-control" placeholder="请输入搜索关键词并按回车键…"></form>
Expand Down
4 changes: 2 additions & 2 deletions post.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<div class="post-heading text-center pt-5 pt-md-5 pb-3 pb-xl-4">
<h1 class="post-title"> <?php $this->title(); ?></h1>
<div class="post-meta d-flex flex-fill justify-content-center align-items-center text-base mt-3 mt-md-3">
<a href="#" class="d-flex align-items-center text-muted">
<a href="<?php $this->author->url(); ?>" class="d-flex align-items-center text-muted">
<div class="flex-avatar w-16 me-2">
<?php echo $this->author->gravatar(16); ?>
<img alt="" src="<?php $this->options->themeUrl('/assets/image/default.gif'); ?>" data-src="https://cravatar.cn/avatar/<?php echo md5($this->author->mail); ?>?s=16" width="16" height="16" class="lazyload" />
</div>
<?php $this->author(); ?>
</a>
Expand Down

0 comments on commit 6d60ab2

Please sign in to comment.