mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
47 字
1 分钟
typecho主题开发typecho常用的语法和变量
2025-12-05
准备开发一个typecho的主题的第一步,先了解typecho常用的语法和变量,开发typecho主题之前需要有前端三件套基础,会点简单的PHP,开发typecho就是这么简单

网站名称

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

网站地址

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

网站标题

<?php $this->archiveTitle([
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
], '', ' - '); ?><?php $this->options->title(); ?>

网站说明

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

文章或者页面的作者

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

作者头像

< ?php $this->author->gravatar('40') ?>

作者邮箱

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

上一篇与下一篇调用代码

<?php $this->thePrev(); ?> <?php $this->theNext(); ?>

RSS地址

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

如果这篇文章对你有帮助,欢迎分享给更多人!

typecho主题开发typecho常用的语法和变量
https://demo.lzch.top/posts/529/
作者
你的昵称
发布于
2025-12-05
许可协议
Unlicensed

部分信息可能已经过时

封面
Sample Song
Sample Artist
封面
Sample Song
Sample Artist
0:00 / 0:00