定制 bwein-net/contao-dismissable-banner-element 二次开发

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

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

bwein-net/contao-dismissable-banner-element

最新稳定版本:1.3.0

Composer 安装命令:

composer require bwein-net/contao-dismissable-banner-element

包简介

Dismissable Banner Element for Contao Open Source CMS

README 文档

README

This Bundle provides a dismissable banner content element. The dismiss of the banner is stored in the local storage of the browser. The banner will also be shown again after the configured expiry time (default: 30 days) or if it has been modified in the back end since the dismiss of the user.

Installation

Install the bundle via Composer:

composer require bwein-net/contao-dismissable-banner-element

Configuration

After the installation you can add and configure new content elements "Dismissable banner" to the articles. You can fill a headline, text, optional link and expiry time of the dismiss for the local storage (default: 30 days).

You can even set some css classes of the included styling for the banner: success, danger, warning, info

Styling

You can override the template ce_dismissable_banner.html5 and remove the lines for the included stylesheets or you can extend the template and add the following lines to your new template:

// templates/ce_dismissable_banner_nocss.html5
<?php $this->extend('ce_dismissable_banner'); ?>
<?php $this->noCss = true; ?>

Caution: If your remove the data attributes of the enclosing container or the Javascript asset, the extension will stop working!

Screenshots

Back end

screenshot-backend

Front end

screenshot-banners

Sponsors

This Extension was commissioned and financed by https://www.medienflieger.de/

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-05