heimrichhannot/contao-frontend-framework-bundle
最新稳定版本:0.1.0
Composer 安装命令:
composer require heimrichhannot/contao-frontend-framework-bundle
包简介
This bundle allows to select a frontend framework in your theme.
README 文档
README
This bundle allows to select a frontend framework in your theme. This option can be used by bundle and templates to adjust for these specific frameworks.
Installation
-
Install the bundle with composer or contao manager and update the database afterwards.
composer require heimrichhannot/contao-frontend-framework-bundle
Usage
Just select the frontend framework in your theme settings. Maybe other bundles will add additional settings for the selected framework. Out of the box this extension has no build in functionality except the framework selection.
Use in your bundle
Use the FrontendFrameworkHelper to get the selected framework.
use HeimrichHannot\FrontendFrameworkBundle\Helper\FrontendFrameworkHelper; class CustomController { private FrontendFrameworkHelper $frontendFrameworkHelper; public function myCustomAction() { if ('bootstrap4' === $this->frontendFrameworkHelper->currentFramework()) { $theme = $this->frontendFrameworkHelper->currentTheme(); if (true === $theme->custonControlsBs4) { // do something } } } }
统计信息
- 总下载量: 465
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2023-12-04
