contao-bootstrap / templates
支持Bootstrap标记的修改版Contao模板
2.3.2
2023-05-05 08:15 UTC
Requires
- php: ^7.4 || ^8.0
- contao-bootstrap/core: ^2.0.0
- contao-bootstrap/form: ^2.1.1
- contao-community-alliance/meta-palettes: ^2.0.9
- contao/core-bundle: ^4.9
- netzmacht/contao-form-designer: ^1.1.0
- netzmacht/html: ^2.0.2
- symfony/config: ~4.4 || ^5.4
- symfony/dependency-injection: ~4.4 || ^5.4
- symfony/http-kernel: ^4.4.50 || ^5.4.20
Requires (Dev)
- contao/manager-plugin: ^2.1
- doctrine/coding-standard: ^9.0
- phpcq/coding-standard: ^2.1.2
- phpcq/runner-bootstrap: 1.x-dev
Conflicts
- contao/manager-plugin: <2.1 || >= 3.0
This package is auto-updated.
Last update: 2024-09-11 05:38:40 UTC
README
功能
此扩展提供了基于Bootstrap 4的几个Contao CMS模板。
可以在需要默认模板的安装中使用此扩展。为了避免加载错误的模板,有一个名为模板自动映射的功能。每个Bootstrap模板都有一个不同于默认模板的不同名称前缀(通常为_bs)。在运行时,模板名称会更改,因此您不必在所有地方选择修改后的模板。
只有在页面布局的类型为bootstrap且您未在主题设置中禁用自动映射时,自动映射才处于活动状态。
以下模板提供
** 可配置的自动映射 **
com_bs_media
基于Bootstraps媒体组件的评论模板(注意:它使用gravatar.com作为第三方服务)。member_default_bs
使用bootstrap表单布局的成员表单。member_grouped_bs
使用bootstrap表单布局的成员表单。mod_breadcrumb_bs
使用面包屑模块。mod_comment_form_bs
使用基于bootstrap的评论表单。mod_login_bs
使用登录表单模块。mod_search_bs
使用搜索模块。
** 总是映射 **
pagination_bs
用于分页(始终映射,即使禁用了自动映射)。
** 未映射 **
gallery_bs_carousel
使用轮播图的画廊。gallery_bs_grid
使用网格的画廊。nav_default
作为导航模板。rss_bs_list_group
将rss源渲染为列表组。
变更日志
查看变更日志
要求
- PHP 7.1
- Contao ~4.4
安装
管理版
当使用管理版时,安装包非常简单。只需在Contao Manager中搜索包并安装即可。或者,您可以使用CLI。
# Using the contao manager $ php contao-manager.phar.php composer require contao-bootstrap/templates~2.0 # Using composer directly $ php composer.phar require contao-bootstrap/templates~2.0