Drupal Association members fund grants that make connections all over the world.
Inspired by Block Class, this module adds additional elements to the block configuration forms that allow users to assign a ARIA landmark role to a block.
For further information about ARIA landmark roles, go to http://www.w3.org/WAI/PF/aria or http://www.nomensa.com/blog/2010/wai-aria-document-landmark-roles.
Ensure that the attributes variable is being printed within your block.tpl.php
file - the block module's default template does this by default. For example:
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
Within your block.tpl.php, include the following snippet within the opening div tag:
<?php print $aria_role; ?>
Here is the first line of Garland's block.tpl.php before the code is inserted:
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>">
And here's what the code should look like after adding the snippet:
<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block block-<?php print $block->module ?>" <?php print $aria_role; ?>>
IMPORTANT: Remember to separate the PHP snippet from the existing markup with a single space.
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 212 sites currently report using this module. View usage statistics.
- Downloads: 4,466
- Last modified: December 2, 2014
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.