承接 cozumel/yii2-themepicker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cozumel/yii2-themepicker

Composer 安装命令:

composer require cozumel/yii2-themepicker

包简介

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

README 文档

README

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.

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"cozumel/yii2-themepicker": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

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

You will need to place it in each theme where you want to use it.

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

Line 61 ThemePicker.php

Lines 30-36 Bootstrap.php

Just change @app/themes to @app/web/themes or wherever your themes are.

Translation

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

Line 22 ThemePicker.php

Cookie

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

Feedback

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

统计信息

  • 总下载量: 81
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-11-13