Commit bf704dd7 authored by Dries's avatar Dries

- Patch #1190218 by jessebeach, stijnbe: convert user-profile-category.tpl.php to HTML5.

parent dbaa6122
......@@ -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>
......@@ -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 {
......
......@@ -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'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment