Typecho登录后文章增加编辑按钮

Typecho登录后文章增加编辑按钮

Tod
Tod
2023-09-23 / 0 评论 / 7 阅读 / 正在检测是否收录...

  文章页面代码

<?php if($this->user->hasLogin()):?>
<a href="<?php $this->options->adminUrl(); ?>write-post.php?cid=<?php echo $this->cid;?>">编辑</a>
<?php endif;?>

  独立页面代码

<?php if($this->user->hasLogin()):?>
<a href="<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php echo $this->cid;?>" >编辑</a>
<?php endif;?>
0

评论 (0)

取消