contao-bootstrap / navbar
Contao CMS 的 Bootstrap 导航组件
2.2.0
2022-04-20 10:06 UTC
Requires
- php: ^7.4 || ^8.0
- contao-bootstrap/core: ^2.0
- contao-community-alliance/meta-palettes: ^2.0
- contao/core-bundle: ^4.9
- menatwork/contao-multicolumnwizard-bundle: ^3.4
- netzmacht/contao-toolkit: ^3.7
- netzmacht/html: ^2.0.2
- symfony/config: ^4.4 || ^5.4
- symfony/dependency-injection: ^4.4 || ^5.4
- symfony/http-foundation: ^4.4 || ^5.4
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/routing: ^4.4 || ^5.4
- symfony/translation-contracts: ^1.1 || ^2.0
Requires (Dev)
- contao/manager-plugin: ^2.0
- doctrine/coding-standard: ^9.0.
- phpcq/coding-standard: ^2.1.2
- phpcq/plugin-api: 1.x-dev
- phpcq/runner-bootstrap: 1.x-dev
Conflicts
This package is auto-updated.
Last update: 2024-09-20 15:29:53 UTC
README
此扩展将 Bootstrap 集成到 Contao 中。
Contao-Bootstrap 是一个模块化集成。组件提供了 Bootstrap 组件的导航功能。
特性
前端模块
- 导航栏元素
模板
- 快速导航和快速链接导航的下拉模板
- 导航下拉模板
变更日志
查看 变更日志
要求
- PHP 7.1
- Contao ~4.4
安装
管理版
使用管理版时,安装包非常简单。只需在 Contao 管理器中搜索包并安装,或者您可以使用 CLI。
# Using the contao manager $ php contao-manager.phar.php composer require contao-bootstrap/navbar~2.0 # Using composer directly $ php composer.phar require contao-bootstrap/navbar~2.0
Symfony 应用程序
如果您在没有 contao/manager-bundle 的情况下将 Contao 用作 symfony 应用程序,您必须手动注册以下捆绑包
class AppKernel { public function registerBundles() { $bundles = [ // ... new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('metapalettes', $this->getRootDir()), new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle('multicolumnwizard', $this->getRootDir()), new Netzmacht\Html\NetzmachtHtmlBundle(), new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(), new ContaoBootstrap\Grid\ContaoBootstrapNavbarBundle() ]; } }