Skip to content

Commit

Permalink
try remove navigation h3
Browse files Browse the repository at this point in the history
  • Loading branch information
TranTheTrung authored May 26, 2021
1 parent 3476fb5 commit 35dfb22
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions skins/Timeless/includes/TimelessTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,22 @@ protected function getPortlet( $name, $content, $msg = null, $setOptions = [] )
$bodyDivOptions['id'] = $options['body-id'];
}

$html = Html::rawElement( 'div', $divOptions,
Html::rawElement( 'h3', $labelOptions, $msgString ) .
Html::rawElement( 'div', $bodyDivOptions,
$contentText .
$this->getAfterPortlet( $name )
)
);
if ( $name == 'navigation' ) {
$html = Html::rawElement( 'div', $divOptions,
Html::rawElement( 'div', $bodyDivOptions,
$contentText .
$this->getAfterPortlet( $name )
)
);
} else {
$html = Html::rawElement( 'div', $divOptions,
Html::rawElement( 'h3', $labelOptions, $msgString ) .
Html::rawElement( 'div', $bodyDivOptions,
$contentText .
$this->getAfterPortlet( $name )
)
);
}

return $html;
}
Expand Down

0 comments on commit 35dfb22

Please sign in to comment.