Avoid empty class="" without value

Before this change the HTML contains:

<div id="p-personal" role="navigation" class="" ...>
or
<div id="p-personal" role="navigation" class=" emptyPortlet" ...>

After this change the HTML contains:

<div id="p-personal" role="navigation" ...>
or
<div id="p-personal" role="navigation" class="emptyPortlet" ...>

Change-Id: Ic686b958940afc958693d0031ac31e5f783960a9
This commit is contained in:
Fomafix 2019-01-13 19:56:16 +01:00
parent 8994137e2a
commit 82cbdb8111
1 changed files with 3 additions and 3 deletions

View File

@ -411,11 +411,11 @@ class VectorTemplate extends BaseTemplate {
break;
case 'PERSONAL':
?>
<div id="p-personal" role="navigation" class="<?php
<div id="p-personal" role="navigation"<?php
if ( count( $this->data['personal_urls'] ) == 0 ) {
echo ' emptyPortlet';
echo ' class="emptyPortlet"';
}
?>" aria-labelledby="p-personal-label">
?> aria-labelledby="p-personal-label">
<h3 id="p-personal-label"><?php $this->msg( 'personaltools' ) ?></h3>
<ul<?php $this->html( 'userlangattributes' ) ?>>
<?php