havefnubb/hfnuthemes-module

Jelix 模块,允许选择应用程序的主题

安装: 14

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放性问题: 0

类型:jelix-module

v1.6.0 2021-08-21 21:51 UTC

This package is auto-updated.

Last update: 2024-09-24 18:43:32 UTC


README

这是一个Jelix模块,用于选择应用程序的主题。

此模块适用于Jelix 1.7.2及以上版本。

它最初是在Havefnubb项目中开发的。

设置模块

最佳方法是使用Composer。

在项目内的命令行中执行

composer require "havefnubb/hfnuthemes-module"

启动应用程序的配置器以启用模块

php dev.php module:configure hfnuthemes

配置模块后,应启动应用程序的安装程序以激活模块

php install/installer.php

提供主题

主题应安装在 app/themes/(与应用程序捆绑的主题)或 var/themes(用户安装的主题)中。

这些目录应包含每个主题的目录,包含模板,如Jelix文档中所述。模板的CSS和图像应安装在 www/themes/ 中。

对于hfnuthemes,应在每个主题目录中保存一个JSON文件 theme.json

《theme.json》内容的示例

{
  "name": "Default",
  "createddate": "2009-09-01",
  "label": {
    "en_US": "Default Theme",
    "fr_FR": "Thème Principal"
  },
  "description": {
    "en_US": "Default theme  of HaveFnuBB!",
    "fr_FR": "Thème Principal de HaveFnuBB! ",
  },
  "licence": {
    "url": "https://gnu.ac.cn/licenses/gpl.html",
    "description": "GNU General Public Licence"
  },
  "copyright": "2008-2011 FoxMaSk",
  "creator": {
    "name": "FoxMaSk",
    "email": "foxmask@foxmask.net",
    "active": true
  },
  "homepageURL": "http://www.havefnubb.jelix.org/",
  "updateURL": "",
  "version": "1.0.1"
}

在主题的Web目录中(例如 www/themes/theme_name/),应保存一个 theme.png 文件,显示主题的截图或标志。