标签 typecho 下的文章

Typecho会员与支付模块,功能十分强大。如有需要可以联系本人获取邀请链接购买!嘿嘿!

具备会员管理、付费文章、提现、消费记录等等功能,适合Typecho做站使用。

Typecho后台设置
登录Typecho后台 -> 设置 -> 基本 -> 站点地址改成https域名。

编辑Typecho根目录下config.inc.php文件加入下面配置,不然网站后台还是会调用HTTP资源。

/** 开启HTTPS */
define('__TYPECHO_SECURE__',true);

注意:Chrome内核的浏览器有不安全提示的时候,需要找到主题目录下面的comments.php文件
再将其中的$this->commentUrl(),替换为:echo str_replace("http","https",$this->commentUrl());最后保存。

文章来源:https://ws234.com/1024.html

站点名称

<?php $this->options->title(); ?>

域名地址

<?php $this->options->siteUrl(); ?>

后台地址

<?php $this->options->adminUrl(); ?>

完整路径标题,比如 文章 站点

<?php $this->archiveTitle(' &raquo; ', '', ' - '); ?><?php $this->options->title(); ?>

站点说明

<?php $this->options->description(); ?>

模版文件夹地址

<?php $this->options->themeUrl(); ?>

作者名字

<?php $this->author(); ?>

当前登陆用户名字

<?php $this->user->screenName(); ?>

退出链接

<a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a>

rss地址

<?php $this->options->feedUrl(); ?>

作者头像

<?php $this->author->gravatar('200') ?>
参数说明
此函数是完整 img 标签,200代表长和宽

- 阅读剩余部分 -