2017 © Pedro Peláez
 

yii2-extension yii2-themepicker

This is a simple extension to pick themes. The user chooses a theme from a dropdown box.

image

cozumel/yii2-themepicker

This is a simple extension to pick themes. The user chooses a theme from a dropdown box.

  • Thursday, April 21, 2016
  • by Cozumel
  • Repository
  • 2 Watchers
  • 1 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Front End Theme Selection For Yii2

This is a simple extension to pick themes. The user chooses a theme from a dropdown box and the theme choice is stored in a cookie, the extension could easily be changed to work with a model too., (*1)

Latest Stable Version Total Downloads License, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist cozumel/yii2-themepicker "*"

or add, (*5)

"cozumel/yii2-themepicker": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

<?= \cozumel\ThemePicker\ThemePicker::widget(); ?>

You will need to place it in each theme where you want to use it., (*8)

The default theme path is set as @app/themes. You may need to change this depending where your themes are., (*9)

Line 61 ThemePicker.php, (*10)

Lines 30-36 Bootstrap.php, (*11)

Just change @app/themes to @app/web/themes or wherever your themes are., (*12)

Translation

Yii::t('theme_picker', 'Choose a theme')

Line 22 ThemePicker.php, (*13)

The default cookie length is set to 180 days, this can be changed on line 44 ThemePicker.php, (*14)

Feedback

Comments and feedback are welcome, and thanks to the Yii community for a great framework., (*15)

The Versions

21/04 2016

dev-master

9999999-dev

This is a simple extension to pick themes. The user chooses a theme from a dropdown box.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar Cozumel

extension yii2 theme picker theme selector front end theme picker