Created
September 23, 2011 14:18
-
-
Save star-szr/1237463 to your computer and use it in GitHub Desktop.
HTML5 block-level links for Drupal 7 blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Replace this: ?> | |
<?php print $content; ?> | |
<?php // With this: ?> | |
<?php if (isset($block->title_link)): ?> | |
<?php print l($content, $block->title_link, array('attributes' => array('title' => $block->title_link_title), 'html' => TRUE)); ?> | |
<?php else: ?> | |
<?php print $content; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You also need the Block Title Link module. More information in the blog post: http://scottreev.es/html5-block-level-links-for-drupal-blocks-23836