定制 heimrichhannot/contao-frontend-framework-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

  1. 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.

screenshot.png

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2023-12-04