# lifetime **Repository Path**: gallanthunter/lifetime ## Basic Information - **Project Name**: lifetime - **Description**: 一个免费的wordpress主题。 - **Primary Language**: HTML/CSS - **License**: MIT - **Default Branch**: master - **Homepage**: https://ilearning.org.cn - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-02-03 - **Last Updated**: 2023-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: WordPress ## README # Wordpress-Theme/Lifetime #### 主题介绍 Lifetime:一个基于bootstrap 4的免费wordpress主题。整个主题以灰色调为主,超链接以bootstrap primary颜色为主。 演示站点:[爱阅读]:https://www.jungedushu.com **主要特性** 1. 支持每篇文章独立生成二维码 #### 软件架构
Lifetime
| 404.html
| category.php
| footer.php
| functions.php
| header.php
| index.php
| search.php
| searchform.php
| sidebar.php
| single.php
| style.css
| style.css.map
| style.scss
|
+---css // 独立模块及第三方CSS
|
+---fonts // 字体库
|
+---images // 图片库
|
+---include
| breadcrumb.php // 导航条函数
| HeaderMenu.php // 头部菜单类
| init-css.php // 网站加载CSS库
| init-js.php // 网站加载的JS库
| pagination.php // 分页函数
|
+---js
| | baidu.js // 百度统计库
| | main.js // 站点自定义JS代码
| | plugins.js // 插件JS代码
| |
| \---vendor // 第三方JS库
|
+---pages // 自定义页面
| about.php // 关于我们页面
| timeline.php // 时间轴页面
|
+---template-parts // 页面部件代码
| +---content
| | content-list.php // 列表页
| | content-meta.php // 文章元数据
| | content-page.php // 页面
| | content-pagination.php // 分页
| | content-relevant-article.php // 相关文章
| | content-single.php // 内容页
| | content-sticky.php // 置顶文章
| |
| +---footer
| +---header
| | header-meta.php // Header 元数据
| | header-title.php // Header 标题
| |
| \---siderbar // 侧边栏
| tabs.css
| tabs.php
|
\---widget // 侧边栏Widget
about-x.php // 关于我
catpost.php // 分类目录
hot-articles.php // 热点文章
index.php
TemplateWidget.php // Widget模板
>
#### 安装教程
Lifetime主题还未在wordpress上架,目前安装方法通过下载插件,后台上传的方式安装
1. 下载主题:
- 使用git Clone,请将clone后的文件夹重命名为lifetime后,使用工具上传至wp-content/themes目录下
- 通过https下载,请将下载后的文件解压并重命名为lifetime后,使用工具上传至wp-content/themes目录下
2. 安装主题:
- 登录wordpress后台,启用Lifetime主题
#### 使用说明
1. Lifetime主题暂未集成评论模块,有需要的同学可以等一段时间
2. 文章置顶页暂未集成
3. 若使用bootstrap默认的页面宽度,可以删除style.scss中下面一段代码
@media (min-width: 1920px) {
.container {
max-width: 1500px;
}
}
#### 参与贡献