Block Class Styles


Summary

Extends the Block Class module to incorporate styles (or themes) rather than css classes. Adds style-based tpl suggestions. Allows HTML in your block titles.

If you have a dependency on this module and you need a Drupal 8 version, please let me know by commenting on (or creating) the issue called “Drupal 8 Port”. I will prioritize those modules that have the most votes for Drupal 8 first over others.

Overview

Styles...

  1. Are one or more classes with a given Style/Display Name
  2. Are defined by admins
  3. Are used by content managers
  4. Allow separation of css classes from semantic or logical style names
  5. Generate style-based block template suggestions for themers
  6. Are assigned to blocks either singularly or in multiple (based on settings)

When you assign a style to a block...

  1. It's tpl receives the classes of that style as $block_classes (See Block Class for more info.)
  2. The theme engine checks for a block template for that specific style

Additional features...

  1. Allows the ability to set a global text format for custom block titles; this allows you to now have HTML in your custom block titles. Yes, you can now have block titles that contain HTML markup!

Requirements

Requires the Block Class module

API

  • block_class_styles_info()
  • block_class_styles_info_alter()

Similar Modules

  1. Block Theme
  2. Block Class

Other Sponsors:
Fairhaven Health

Supporting organizations: 
Development and Support

Block Class Styles项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。

项目分类:

周安装量: 
5758
维护状态: 
积极维护中
开发状态: 
积极开发中

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-2.6tar.gz (15.04 KB) | zip (17.65 KB)2016年1月14日发布说明简 | 繁 | 更多

其他版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-1.0tar.gz (12.2 KB) | zip (14.46 KB)2013年3月17日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
7.x-2.x-devtar.gz (16.6 KB) | zip (20.22 KB)2016年1月22日发布说明简 | 繁 | 更多
7.x-1.x-devtar.gz (12.21 KB) | zip (14.47 KB)2013年9月30日发布说明简 | 繁 | 更多