websemantics/pyrocms-theme
Composer 安装命令:
composer require websemantics/pyrocms-theme
包简介
PyroCMS Plus Admin Theme
README 文档
README
Hand crafted, multi-skinned, responsive and easily customizable PyroCMS 3 admin theme built for a much refined and intuitive user experience. An absolute labor of love to make possible ultimate control over style and layout. Welcome to a new way to build PyroCMS 3 Admin themes.
Introduction
The idea of this project is to build an extensible and modular Admin theme with varieties of style components and layout scaffoldings to enable deep customization and maximum code reuse. Every single line of code or style while writing this theme was carefully placed to perform a function or improve overall user experience for desktop and mobile devices.
The theme allows for a lighter approach to customize core styles to suit different requirements through the concept of Skins. This projects hopes to build a catalog of Admin UI styles and layouts that the community can use and share.
Head over to the Skins section to learn more about how that works and the options available for customization.
Features
- Easy to customize and style,
- Comes with 6 skins,
- Supports the official PyroCMS Theme,
- Allows to
sortandexcludemodules from the navigation menu (Sidebar), - Supports different layouts (for example, with / without top Navbar),
- Comes with new login page.
Install
1- Use composer to install the theme as follows,
composer require websemantics/pyrocms-theme
2- Install all available skins,
composer update
3- Change value of ADMIN_THEME in the project .env file,
ADMIN_THEME=websemantics.theme.pyrocms
Skins
This theme was designed to enable drastic changes to the style, layout and user experience with minimal effort on the behalf of the developer by introducing a new concept, Skins.
A skin is a lightway approach to redesign and customize the default theme styles to suite your needs. The default theme skin, Plus Skin, shown below, features a sidebar, one of many layout options provided with this theme.
Customization can range from changes to the theme variables, adding additional styles to overriding theme views.
Available Skins
The theme comes with a number of skins as you can see below; each of these skins come as an addon package that you can require individually or through this theme.
| Official | Default |
|---|---|
![]() |
![]() |
| Classic | Navy Blue |
|---|---|
![]() |
![]() |
| Github | Horizon |
|---|---|
![]() |
![]() |
| Stone | Add Yours! |
|---|---|
![]() |
Official Skin
While enjoying many of the skins provided in this theme you can still go back to the official PyroCMS 3 admin theme without having to actually switch themes. This project decided to build on the great work done on the official PyroCMS theme to keep the theme lean and guarantee that all of PyroCMS official Admin theme default styles are supported out-of-the-box. It actually goes further than that by adding few features to enhance appearance and user experience as described below,
- Retina display support for the brand logo using SVG images
- Enhanced user experience provided as an animation for the modules
pushmenu (slowly opens/closes) - Support for Image Select, a way to present images with
selectfield type (radio mode) - Brand new login page with animated logo
Change Active Skin
To change the current active skin, head over to setting then themes or click on Theme Settings button at the footer. A list of the available skins will be presented with preview pictures. Select your favorite skin and click save, vola!
You can also set the value of PYROCMS_SKIN in the project .env to the skin namespace,
PYROCMS_SKIN=websemantics.skin.github
How to Create a Skin
Let's say you want to create a new skin called. sunshine. Simply, follow these steps,
- Create a new skin addon (requires Builder extension),
php artisan make:addon vendor.skin.sunshine
-
Change skin settings from skin config file,
sunshine-skin/resources/config/skin.php. -
Switch to the new skin as described in, Change Active Skin section.
Embedded Skins
The great thing about skins is that, they don't have to be their own addon package. A skin can also be specified within any addon type including extensions and modules.
All is required for the theme to find and use a skin is,
- The skin main config files
addon/resources/config/skin.php, - A preview image
addon/resources/img/name.pngand, - The skin main style file,
addon/resources/scss/skin.scss.
Check out the Plus Skin for details.
Control Layout
This theme comes with few very powerful features that were aimed to change the skin layout using sass and theme configuration variables,
Show Navbar
When building a skin, you can decide on whether you want to have a navbar or not. Turning this feature on / off will show the navbar with an attached toggle button to show / hide the sidebar and the classic menu, other navbar items. Also, some sidebar links will be removed, for example, View Site, Logout etc as will be provided by the navbar,
Sidebar
This theme allows to sort and exclude modules from the Sidebar. You can sort modules in the Sidebar via the sidebar config variable @ resources/config/config.php. Simply, list the modules' slugs in the sort array, for example,
'sidebar' => [ 'sort' => [ 'anomaly.module.posts', 'anomaly.module.pages' ] ]
This will show the Posts module in top of the sidebar list followed by the pages module. The remaining modules will be listed as per the default control panel navigation behaviour.
For exclusion, listing all undesired modules in the exclude config variable. Here's an example,
'sidebar' => [ 'exclude' => [ 'anomaly.module.addons', 'anomaly.module.variables' ] ]
Feel free to mix and match between exclude and sort to achieved the desired look.
Toggle Button
There are two types of toggle buttons the theme uses to collapse the Sidebar. The default one uses the toggle css class and is used by default. A more elaborate button that has animation uses hip-toggle class. Check the styles @ pyrocms-theme/resources/scss/theme/components/_toggle.scss.
For how to use the Hip Toggle Button with your own skin, check the Github skin implementation. More docs to come for better usage.
Inspirations
Future expansions for the theme,
Support
Star ⭐ this repository if you find this project useful, to show support or simply, for being awesome :)
Need help or have a question? post at StackOverflow.
Please don't use the issue trackers for support/questions.
Contribution
Contributions to this project are accepted in the form of feedback, bugs reports and even better - pull requests.
Resources
- Auto Pyro, PyroCMS deploy tool for faster development experience.
- Template Template, Default Builder extension template for building Builder extension templates.
- Registry, List of all Builder extension available template.
- Awesome PyroCMS, Curated list of PyroCMS addons and resources.
- PyroCMS Cheatsheet, List of commands and features for PyroCMS 3.
- PyroCMS, MVC PHP Content Management System built to be easy to use, theme and develop with. It is used by individuals and organizations of all sizes around the world.
License
MIT license Copyright (c) Web Semantics, Inc.
websemantics/pyrocms-theme 适用场景与选型建议
websemantics/pyrocms-theme 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 1.26k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2016 年 11 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theme」 「addon」 「laravel」 「pyrocms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 websemantics/pyrocms-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 websemantics/pyrocms-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 websemantics/pyrocms-theme 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
A Bootstrap 4.x base theme for SilverStripe
Lucency Theme
Selectize Theme for Bootstrap 4
Dropzone field for Laravel Backpack
This ConcreteCMS/concrete5 addon installs a block type that when added to a page allows you to redirect visitors to this page to another page that you specify or an external URL.
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 14
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-19






