From bf704dd7a16c167402b5651e02f53d12118495da Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 1 Aug 2011 21:52:53 -0400
Subject: [PATCH] - Patch #1190218 by jessebeach, stijnbe: convert
 user-profile-category.tpl.php to HTML5.

---
 modules/user/user-profile-category.tpl.php | 14 ++++++++------
 modules/user/user.css                      |  2 +-
 modules/user/user.pages.inc                |  1 +
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/modules/user/user-profile-category.tpl.php b/modules/user/user-profile-category.tpl.php
index 0de7d5d0061c..3e295826c495 100644
--- a/modules/user/user-profile-category.tpl.php
+++ b/modules/user/user-profile-category.tpl.php
@@ -24,10 +24,12 @@
  * @see template_preprocess_user_profile_category()
  */
 ?>
-<?php if ($title) : ?>
-  <h3><?php print $title; ?></h3>
-<?php endif; ?>
+<section class="<?php print $classes; ?>">
+  <?php if ($title) : ?>
+    <h2><?php print $title; ?></h2>
+  <?php endif; ?>
 
-<dl<?php print $attributes; ?>>
-  <?php print $profile_items; ?>
-</dl>
+  <dl<?php print $attributes; ?>>
+    <?php print $profile_items; ?>
+  </dl>
+</section>
diff --git a/modules/user/user.css b/modules/user/user.css
index 079ec38abb1b..a3033073345e 100644
--- a/modules/user/user.css
+++ b/modules/user/user.css
@@ -87,7 +87,7 @@ div.password-suggestions ul {
   float: right; /* LTR */
   margin: 0 1em 1em 0; /* LTR */
 }
-.profile h3 {
+.profile h2 {
   border-bottom: 1px solid #ccc;
 }
 .profile dl {
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 697a82d2c2c5..09bf33b6bfd7 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -222,6 +222,7 @@ function template_preprocess_user_profile_item(&$variables) {
  */
 function template_preprocess_user_profile_category(&$variables) {
   $variables['title'] = check_plain($variables['element']['#title']);
+  $variables['classes_array'][] = 'user-profile-category-' . drupal_html_class($variables['title']);
   $variables['profile_items'] = $variables['element']['#children'];
   $variables['attributes'] = '';
   if (isset($variables['element']['#attributes'])) {
-- 
GitLab