Zen 6.x-2.x-dev, xxxx-xx-xx (development release)
------------------------
+- Added $block_html_id to block.tpl.php.
- #772488 by andreiashu: Fatal error: Call to undefined function ctools_menu_primary_local_tasks()
- #707410 by agentrickard and JohnAlbin: Add page-views and page-panels body classes
- #691426: Add D7-style named implementations of theme_links in page.tpl
$vars['classes_array'][] = 'region-count-' . $vars['block_id'];
$vars['classes_array'][] = 'count-' . $vars['id'];
+ // Create the block ID.
+ $vars['block_html_id'] = 'block-' . $block->module . '-' . $block->delta;
+
$vars['edit_links_array'] = array();
if (theme_get_setting('zen_block_editing') && user_access('administer blocks')) {
include_once './' . _zen_path() . '/zen-internals/template.block-editing.inc';
* - $is_front: Flags true when presented in the front page.
* - $logged_in: Flags true when the current user is a logged-in member.
* - $is_admin: Flags true when the current user is an administrator.
+ * - $block_html_id: A valid HTML ID and guaranteed unique.
*
* @see template_preprocess()
* @see zen_preprocess()
* @see zen_process()
*/
?>
-<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>">
+<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>">
<?php if ($title): ?>
<h2 class="title"><?php print $title; ?></h2>
<?php endif; ?>