athens/theme

本包的最新版本(0.29.10)没有提供许可证信息。

Athens Web框架的示例主题。

安装: 18

依赖者: 0

建议者: 0

安全性: 0

星星: 0

关注者: 2

分支: 0

语言:CSS

0.29.10 2016-10-17 19:53 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:20:45 UTC


README

Athens Web框架的示例主题。

Example theme templates in action.
创建您自己的主题,以轻松、吸引人、符合品牌风格的页面

功能

响应式

高级字段编辑器

使用

以下模板适用于Athens Web框架。您必须使用 Athens 才能使用这些模板。

以下步骤在 Athens 应用程序创建教程中描述。如果您是 Athens 的初学者,您可能希望使用该教程。

  1. 将示例主题添加到您的 composer.json 文件中的包要求中
"require": {
      ...
      "athens/core": "0.*",
      "athens/theme": "0.*",
      ...
},

athens/theme 的大版本号应与您的 athens/core 的大版本号相同。

  1. 在您的项目的 setup.php 中添加示例模板,在添加项目模板的行下面
Settings::getInstance()->addTemplateDirectories(dirname(__FILE__) ."/project-templates");
Settings::getInstance()->addTemplateDirectories(dirname(__FILE__) ."/vendor/athens/theme/templates");

就这样。您的 Athens 项目现在正在使用示例主题了!