pikselin/silverstripe-pagebanners 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pikselin/silverstripe-pagebanners

最新稳定版本:5

Composer 安装命令:

composer require pikselin/silverstripe-pagebanners

包简介

Add page or site level alert banners to a Silverstripe site.

README 文档

README

Add page or site level alert banners to a Silverstripe site.

Features

  • Allow multiple banners to be displayed in sequence (ordered by LastEdited)
  • Site wide or page specific banners (both allowed on one page)
  • Optional date embargo on banners - set a start and end date or leave open ended
  • Add a link to each banner (using gorriecoe Link module)
  • Optional dismiss button on banner (uses local storage)

Notes

Banners are managed from the main admin section.

Template can be overridden, just copy PageBanners.ss to {theme}/templates and edit the mark-up.

Simple CSS for laying out the banners is included.

Adding to your templates

This module uses an extension on SiteTree and an internal template render call. Just use

$PageBanners

In your template to add them in.

CSS structure for banners block and each banner

.page-banners {
    .page-banner {
        &.page-banner-{type} {
        }
        .page-banner-type {
        }
        .page-banner-content {
        }
        .page-banner-control {
            .page-banner-close {
            }
        }
    }
}

Credits

Javascript to control banner visibility taken from silverstripe/silverstripe-banner

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固