在Typecho中有些内容是愿望上岸以后才可见,比方文章的编辑链接,可以用下面的要领完成。
文章编辑代码以下:
<?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;?>

评论列表