2017 © Pedro Peláez
 

yii2-extension yii2-thememanager

Pluggable themes for Yii2

image

hiqdev/yii2-thememanager

Pluggable themes for Yii2

  • Tuesday, July 10, 2018
  • by hiqdev
  • Repository
  • 7 Watchers
  • 10 Stars
  • 8,884 Installations
  • PHP
  • 11 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 9 % Grown

The README.md

Yii2 Theme Manager

Pluggable themes for Yii2, (*1)

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality Dependency Status, (*2)

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., (*3)

At the moment there are several themes available:, (*4)

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., (*5)

Please see hiqdev/hisite-template as example of project using this theming library., (*6)

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., (*7)

To achieve this goal several technologies were used:, (*8)

This package provides:, (*9)

  • 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., (*10)

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

Available configuration parameters:, (*12)

  • 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., (*13)

License

This project is released under the terms of the BSD-3-Clause license. Read more here., (*14)

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

The Versions

10/07 2018

dev-master

9999999-dev https://github.com/hiqdev/yii2-thememanager

Pluggable themes for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 theme manager

04/10 2017
04/10 2017
04/10 2017
19/05 2016