diff --git a/includes/theme.inc b/includes/theme.inc index 3ac1dc90f37..352706effd6 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2042,6 +2042,10 @@ function template_preprocess(&$variables, $hook) { // Initialize html class attribute for the current hook. $variables['classes_array'] = array($hook); + // Initialize attributes for the top-level template entity and its title. + $variables['attributes_array'] = array(); + $variables['title_attributes_array'] = array(); + // Set default variables that depend on the database. $variables['is_admin'] = FALSE; $variables['is_front'] = FALSE; @@ -2066,6 +2070,10 @@ function template_preprocess(&$variables, $hook) { function template_process(&$variables, $hook) { // Flatten out classes. $variables['classes'] = implode(' ', $variables['classes_array']); + + // Flatten out attributes and title_attributes. + $variables['attributes'] = drupal_attributes($variables['attributes_array']); + $variables['title_attributes'] = drupal_attributes($variables['title_attributes_array']); } /** diff --git a/modules/block/block.tpl.php b/modules/block/block.tpl.php index 77b1fa93839..961cb01b01d 100644 --- a/modules/block/block.tpl.php +++ b/modules/block/block.tpl.php @@ -35,9 +35,9 @@ * @see template_process() */ ?> -
+
> subject): ?> -

subject ?>

+ >subject ?>
diff --git a/modules/comment/comment-wrapper.tpl.php b/modules/comment/comment-wrapper.tpl.php index aabf3850fa8..1d1e1fe9b23 100644 --- a/modules/comment/comment-wrapper.tpl.php +++ b/modules/comment/comment-wrapper.tpl.php @@ -30,7 +30,7 @@ * @see theme_comment_wrapper() */ ?> -
+
> type != 'forum'): ?>

diff --git a/modules/comment/comment.tpl.php b/modules/comment/comment.tpl.php index cae102f85a1..e777855906e 100644 --- a/modules/comment/comment.tpl.php +++ b/modules/comment/comment.tpl.php @@ -44,14 +44,14 @@ * @see theme_comment() */ ?> -
+
> -

+ >