Extension of project block_class

Block Class Wrap allows users to use any classes also in div wrapper/layers around block that was added using block Class project.

WHY? In a situation for styling a core theme and not wanting to do templates this would allow putting elements around the block so styles like a background for top and bottom edge could be applied to a block. Yes this can be done with templates also.
Using divwrapboat, divlayerbow, and divlayerstern to have unique class in each div element.

why#2, migrated a joomla site over to drupal and it's theme had div's before and after to theme blocks...

Below the example the class1 and class2 are inputed in the block admin using the dependent project block_class.

<div class="divwrapboat class1 class2">
 <div class="divlayerbow class1 class2></div>
   ---- block content ---
 <div class="divlayerstern class1 class2 "></div>
</div>

Note it it does this for blocks using hook_block_view_alter() but unlike block_class this module extension may not support panels properly. IT is a very simple module and other than enabling it does not require configuration in itself. Remember it will only apply the div tags around a block that has classes added using the project block_class.

It has been working for over a month and continued to work on a production site after upgrade to block_class 2.1 so I promoted this to a full project 8/27/2013

If someone wants this project to be fancier, suggest a patch ;)

Just a quick note, Oct2014, I saw another module on the weekly drop that may work with fields to provide a div wrapper and backgorund. It was the field_group_background_image module, https://www.drupal.org/project/field_group_background_image

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon4 sites report using this module
  • Created by webengr on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases