yii2-thememanager

Theme Manager for Yii 2

  • 所有者: hiqdev/yii2-thememanager
  • 平台:
  • 許可證: BSD 3-Clause "New" or "Revised" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Yii2 Theme Manager

Pluggable themes for Yii2

Latest Stable Version
Total Downloads
Build Status
Scrutinizer Code Coverage
Scrutinizer Code Quality
Dependency Status

This Yii2 plugin provides easy theming for Yii2 projects.
And allows to create and use themes as composer packages.
So changing a theme on a site becomes as simple as changing
a single require line in composer.json.

At the moment there are several themes available:

Installation

This package is not intended to be required directly in your project.
Instead you should require theme(s) you've chosen and this package
will get required as a dependency.

Please see hiqdev/hisite-template as example of project using this theming
library.

Idea

The main goal of this theming library is to allow creation and use of easy
pluggable themes: to change a theme on a site it is enough just to require
other theme package in project's composer.json.

To achieve this goal several technologies were used:

This package provides:

  • bootrstrappable ThemeManager component that collects and setups in application view
    proper Theme object with proper pathMap;
  • widgets and menus that can be configured through params and substituted with DI;
  • theme DebugPanel showing actual pathMap.

Configuration

This extension is supposed to be used with composer-config-plugin.

Also you can use it usual way by copy-pasting config.
See src/config/web.php for configuration example.

Available configuration parameters:

  • themeManager.defaultTheme - default theme
  • copyright.year - CopyrightYears widget
  • copyright.years
  • logo.url - LogoLink widget
  • logo.name
  • logo.options
  • logo.image
  • logo.imageOptions
  • logo.smallImage
  • logo.smallImageOptions
  • organization.url - OrganizationLink widget
  • organization.name
  • organization.options
  • poweredBy.url - PoweredBy widget
  • poweredBy.name
  • poweredBy.version
  • poweredBy.options
  • socialLinks.links - SocialLinks widget

For more details please see src/config/params.php.

License

This project is released under the terms of the BSD-3-Clause license.
Read more here.

Copyright © 2015-2017, HiQDev (http://hiqdev.com/)

主要指標

概覽
名稱與所有者hiqdev/yii2-thememanager
主編程語言PHP
編程語言PHP (語言數: 2)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2015-04-18 21:01:36
推送於2025-05-21 08:45:28
最后一次提交2025-05-21 11:45:28
發布數9
最新版本名稱0.4.1 (發布於 )
第一版名稱0.0.1 (發布於 )
用户参与
星數25
關注者數9
派生數8
提交數231
已啟用問題?
問題數3
打開的問題數1
拉請求數9
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?