maddy/sample-module-theme
Composer 安装命令:
composer require maddy/sample-module-theme
包简介
N/A
README 文档
README
This extension contains a sample theme for Magento 2
Motivation
This sample theme extension demonstrates how to create a customized theme by overriding elements from its parent theme.
Technical feature
- This component demonstrates a customized theme named "eBay Blue" created by vendor "Magento". This theme inherits from the Magento/luma theme.
- The theme is declared in theme.xml. The theme.xml file also contains information about the inheritance relationship and the location for a theme preview image preview.jpg.
- To extend the layout for Magento/luma, default.xml is created and can be used to customize the layout. In this case, the "Report Bugs" link is removed from the footer. Additionally, a customized logo.png file is added and used by the new theme "eBay Blue".
- _theme.less file is added to override the default variables values from the parent theme. In this case, the background color of the "copyright" section and the "header panel" section was changed from gray to blue. This can be achieved by declaring any element you wish to override with a new value at the end of the _theme.less file.
- The composer.json file contains the dependency information required for this theme, which is defined under "require". The installation path of this theme is defined under "extra".
- For more details, please refer to the public dev docs regarding theme: http://devdocs.magento.com/guides/v1.0/frontend-dev-guide/themes/theme-general.html
Installation
This extension is intended to be installed using composer. After installing "eBay Blue" theme, you can verify that it is installed by going the backend at:
CONTENT -> Design -> Themes
Once there check that the theme "eBay Blue" shows up in the list to confirm that it is installed correctly. The theme preview can also be viewed by clicking on the thumbnail.
To set this theme for the storefront, go to:
STORES -> Configuration -> Design -> Design Theme
Select "eBay Blue" from the drop-down list and save the configuration. Go to frontend after flushing the page cache as prompted.
Contributors
Magento Core team
License
maddy/sample-module-theme 适用场景与选型建议
maddy/sample-module-theme 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 02 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 maddy/sample-module-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 maddy/sample-module-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2016-02-09