承接 hounddd/wn-themeswitcher-plugin 相关项目开发

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

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

hounddd/wn-themeswitcher-plugin

Composer 安装命令:

composer require hounddd/wn-themeswitcher-plugin

包简介

Theme switcher plugin for Winter CMS

README 文档

README

ThemeSwitcher Plugin

Demo any theme installed in Winter CMS by visiting a defined URL.

Installation

Let assume you're in the root of your wintercms installation

Using composer

Just run this command

composer require hounddd/wn-themswitcher-plugin

Clone

Clone this repo into your winter plugins folder.

cd plugins
mkdir hounddd && cd hounddd
git clone https://github.com/Hounddd/wn-themeswitcher-plugin themeswitcher

Note: In both cases, run php artisan winter:up command to run plugin's migrations or logout and login backend.

Usage

Visit the followinf urls

  • To demo a theme : /theme-switcher/use/theme-name, where theme-name is one of your website themes.
  • To restore default theme : /theme-switcher/restore

Config

By default, switching theme is limited to authenticated administrators.
To authorise all visitors to switch to another theme, create a config file /config/hounddd/themeswitcher.php and set onlyBackendUsers to false:

<?php

return [
    'onlyBackendUsers' => false,
];

For more help see Winter documentation related to file-based configuration.

🏆 Credits

Inspired by Flynsarmy.ThemeSelecter

Make awesome sites with ❄ WinterCMS!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-03