承接 syntro/silverstripe-elemental-bootstrap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

syntro/silverstripe-elemental-bootstrap

最新稳定版本:1.1.0

Composer 安装命令:

composer require syntro/silverstripe-elemental-bootstrap

包简介

Silverstripe Elemental extension for Bootstrap-Blocks

README 文档

README

This project is still a work-in-progress and will be improved over time. If you feel something is missing, feel free to open an issue or a pull request

Build Status phpstan composer

This module takes the dnadesign/silverstripe-elemental module and uses it to simplify bootstrap layouting.

bootstrap

Grid Layout

Bootstrap is built around its grid layout. Using this grid gives a content-editor who has experience with bootstrap a very powerful tool to create responsive layouts.

Usage:

Installation

For installation details, see the docs.

Adding Additional Elements

Additional or custom elements can be added by extending the BootstrapElement class. Extending this class ensures the correct handling of positioning in the grid-layout:

use Syntro\SilverstripeElementalBootstrap\Elements\BootstrapElement;

class BootstrapMedia extends BootstrapElement
{
  ...
}

You can also use the BootstrapExtension extension on a class extending the original elemental classes to achieve the same result.

In the Template, make sure to include the bootstrap classes correctly as seen in the BootstrapImage block:

<% if isCol %>
  <div class="$LayoutClasses $OuterClasses">
    <img src="$Image.URL" class="img-fluid $InnerClasses" alt="$Image.Title">
  </div>
<% else %>
  <img src="$Image.URL" class="img-fluid $InnerClasses" alt="$Image.Title">
<% end_if %>

use isCol() to determine wether the parent object is a column (in this case, no layout classes are to be rendered).

统计信息

  • 总下载量: 2.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-12-17