diff options
author | Glaisher <glaisher.wiki@gmail.com> | 2015-10-17 22:02:49 +0500 |
---|---|---|
committer | Glaisher <glaisher.wiki@gmail.com> | 2015-10-18 21:11:04 +0500 |
commit | 3b3a119c46c5aee4e12ce2a5cff56c01d22269d5 (patch) | |
tree | 0106c7841b57d64aff9899c96a2abffba419c684 /includes/specials/SpecialAllPages.php | |
parent | aebdfef5fefad48c56a2583f8a2f8e86ee90124e (diff) | |
download | mediawikicore-3b3a119c46c5aee4e12ce2a5cff56c01d22269d5.tar.gz mediawikicore-3b3a119c46c5aee4e12ce2a5cff56c01d22269d5.zip |
Use responsive CSS columns on Special:PrefixIndex and Special:AllPages
Stop using table on Special:PrefixIndex and use CSS columns instead and
removed 'column' parameter from this page.
This will also change the weird ordering (side to side) to the standard
top to bottom instead.
The pagination links hide at the corner on small screens. This can be fixed
later.
Bug: T32965
Change-Id: I720d34e21950c18de3c6e0b1d6d8a4461db495cb
Diffstat (limited to 'includes/specials/SpecialAllPages.php')
-rw-r--r-- | includes/specials/SpecialAllPages.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/specials/SpecialAllPages.php b/includes/specials/SpecialAllPages.php index c4a67c0cf158..4348b14fbb5c 100644 --- a/includes/specials/SpecialAllPages.php +++ b/includes/specials/SpecialAllPages.php @@ -216,7 +216,9 @@ class SpecialAllPages extends IncludableSpecialPage { ); if ( $res->numRows() > 0 ) { - $out = Xml::openElement( 'ul', array( 'class' => 'mw-allpages-chunk' ) ); + $out = Html::openElement( 'div', array( 'class' => 'mw-allpages-body' ) ); + $out .= Html::openElement( 'ul', array( 'class' => 'mw-allpages-chunk' ) ); + while ( ( $n < $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) { $t = Title::newFromRow( $s ); if ( $t ) { @@ -230,7 +232,8 @@ class SpecialAllPages extends IncludableSpecialPage { } $n++; } - $out .= Xml::closeElement( 'ul' ); + $out .= Html::closeElement( 'ul' ); + $out .= Html::closeElement( 'div' ); } else { $out = ''; } |