contao-bootstrap/templates

支持Bootstrap标记的修改版Contao模板

2.3.2 2023-05-05 08:15 UTC

README

Version GitHub issues License Build Status Downloads

功能

此扩展提供了基于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