ahebrank/emergency_alerts

此软件包已被弃用且不再维护。作者建议使用 drupal/emergency_alerts 软件包。
此软件包最新版本(2875662.x-dev)的许可证信息不可用。

可配置的紧急警报块

安装: 12

依赖: 0

建议: 0

安全: 0

星标: 2

关注者: 2

分支: 0

开放问题: 0

类型:drupal-module

2875662.x-dev 2017-05-06 03:01 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:35:22 UTC


README

  • 简介
  • 需求
  • 安装
  • 配置
  • 维护者

简介

紧急警报模块提供紧急警报。这些是您可能在学术网站顶部看到的 重要公告。

需求

此模块不需要 Drupal 核心以外的模块。

安装

配置

1. Navigate to Administration > Extend and enable the module.
2. Navigate to admin/config/emergency_alerts to configure.
3. Navigate to admin/structure/block to place the block.

(可选) 将区域 emergency_alert 添加到您的主题和模板中。例如(在 theme.info.yml 中),

regions:
  content: Content
  sidebar: Sidebar
  footer: Footer Nav
  emergency_alert: 'Emergency alert'

将此模块创建的 Emergency Alert 块放置在您上面添加的区域或任何其他区域。

将模板 html--emergency-alert.html.twig(用于全页警报)复制到您的主题并编辑(但保留 page.emergency_alert 区域)

将模板 emergency-alert.html.twig 复制到您的主题并根据需要编辑。

使用类为警报区域 div 添加样式

  • .emergency-alert.announcement
  • .emergency-alert.warning
  • .emergency-alert.danger

维护者

支持组织