commit 83d0db908f5a29b59892d3f549b539b1d1795303 Author: Shane Auckland Date: Tue May 14 07:20:49 2013 +0100 1938430-new_changes diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 7866fd7..150c9a3 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1646,6 +1646,10 @@ function template_preprocess_datetime(&$variables) { $variables['html'] = FALSE; } } + + // Add a 'datetime' class. + $variables['attributes']['class'][] = 'datetime'; + $variables['attributes'] = new Attribute($variables['attributes']); } diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 08aa510..ba2acb7 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1726,7 +1726,7 @@ function template_preprocess_comment_wrapper(&$variables) { // The comment form is optional and may not exist. $variables['content'] += array('comment_form' => array()); - // Add comment wrapper class + // Add a comment wrapper class. $variables['attributes']['class'][] = 'comment-wrapper'; } diff --git a/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php b/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php index b48528a..f88da2f 100644 --- a/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php +++ b/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php @@ -83,7 +83,7 @@ public function renderLayout($admin = FALSE, $regions = array()) { '#theme' => $definition['theme'], '#content' => array(), '#attributes' => array( - 'class' => drupal_html_class($definition['theme']) + 'class' => drupal_html_class($definition['theme']), ), );