mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Render dates as headings
Not doing this leads to unnecessary styling in mobile and is more semantically correct Bug: 49269 Change-Id: Icbb390b6c807118c1b775aa4f962de06b5f7c091
This commit is contained in:
parent
343d0d9f15
commit
c2bb2a8fb4
|
@ -56,7 +56,9 @@ class SpecialNotifications extends SpecialPage {
|
|||
// Output the date header if it has not been displayed
|
||||
if ( $dateHeader !== $row['timestamp']['date'] ) {
|
||||
$dateHeader = $row['timestamp']['date'];
|
||||
$notices .= Html::rawElement( 'li', array( 'class' => 'mw-echo-date-section' ), $dateHeader );
|
||||
$notices .= Html::openElement( 'li' );
|
||||
$notices .= Html::element( 'h2', array( 'class' => 'mw-echo-date-section' ), $dateHeader );
|
||||
$notices .= Html::closeElement( 'li' );
|
||||
}
|
||||
|
||||
$class = 'mw-echo-notification';
|
||||
|
|
Loading…
Reference in a new issue