增加一个文章页面编辑文章的超链接

This commit is contained in:
浪子 2024-05-20 20:04:13 +08:00
parent 496abfabb2
commit fd639a1ffa
2 changed files with 10 additions and 7 deletions

View File

@ -9,7 +9,7 @@
<?php if($this->options->sitemapurl): ?> <?php if($this->options->sitemapurl): ?>
<a href="<?php $this->options->sitemapurl() ?>" target="_blank">💗</a> <a href="<?php $this->options->sitemapurl() ?>" target="_blank">💗</a>
<?php endif; ?> <?php endif; ?>
<a href="https://www.typecho.org">Typecho</a>驱动 &nbsp; <a href="https://www.imsun.org">Made with 老孙</a>💗 加载耗时 <a href="https://www.typecho.org">Powered by Typecho</a> &nbsp; <a href="https://www.imsun.org">Made with Sun</a>💗 加载耗时
<?php echo timer_stop();?> 💗 <?php echo timer_stop();?> 💗
<div class="copyright"> <div class="copyright">
<a href="<?php $this->options->siteUrl(); ?>"> <a href="<?php $this->options->siteUrl(); ?>">
@ -22,13 +22,9 @@
p-id="4007"></path> p-id="4007"></path>
</svg> </svg>
</div> </div>
</div> </div>
<?php $this->options->tongji(); ?> <?php $this->options->tongji(); ?>
</footer> </footer>
<div class="backToTop"> <div class="backToTop">
<svg xmlns="http://www.w3.org/2000/svg" class="svgIcon" viewBox="0 0 14 14" fill="currentColor" aria-hidden="true"> <svg xmlns="http://www.w3.org/2000/svg" class="svgIcon" viewBox="0 0 14 14" fill="currentColor" aria-hidden="true">
<path <path
@ -36,7 +32,6 @@
</path> </path>
</svg> </svg>
</div> </div>
<script src="<?php $this->options->themeUrl('/dist/js/bundle.js'); ?>"></script> <script src="<?php $this->options->themeUrl('/dist/js/bundle.js'); ?>"></script>
<?php $this->footer(); ?> <?php $this->footer(); ?>
</div> </div>

View File

@ -27,6 +27,14 @@
</path> </path>
</g> </g>
</svg> <a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 评论', '%d 评论'); ?></a> </svg> <a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 评论', '%d 评论'); ?></a>
<?php if($this->user->hasLogin() && $this->user->pass('editor', true)): ?>
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16">
<!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
<path
d="M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"/>
</svg>
<a href="<?php $this->options->adminUrl('write-post.php?cid=' . $this->cid); ?>" target="_blank" title="编辑文章">编辑文章</a>
<?php endif; ?>
</div> </div>
<h2 class="post--single__title"><?php $this->title() ?></h2> <h2 class="post--single__title"><?php $this->title() ?></h2>
<div class="post--single__content graph" ><?php $this->content(); ?></div> <div class="post--single__content graph" ><?php $this->content(); ?></div>