X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FListToggle.php;h=2c87b8bac057802334702d1eeaa0e5f3c52387ca;hb=50ea235528289fa3b7b31a2281c6c7683053b7f4;hp=dfa1763a1976d66bb2c69914151681244d51fbff;hpb=82da53219bb6ff1f4c59ebfb50d6826196232690;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ListToggle.php b/includes/ListToggle.php index dfa1763a19..2c87b8bac0 100644 --- a/includes/ListToggle.php +++ b/includes/ListToggle.php @@ -41,6 +41,7 @@ class ListToggle { private function checkboxLink( $checkboxType ) { return Html::element( + // CSS classes: mw-checkbox-all, mw-checkbox-none, mw-checkbox-invert 'a', [ 'href' => '#', 'class' => 'mw-checkbox-' . $checkboxType ], $this->output->msg( 'checkbox-' . $checkboxType )->text() ); @@ -51,10 +52,11 @@ class ListToggle { */ public function getHTML() { // Select: All, None, Invert - $links = []; - $links[] = $this->checkboxLink( 'all' ); - $links[] = $this->checkboxLink( 'none' ); - $links[] = $this->checkboxLink( 'invert' ); + $links = [ + $this->checkboxLink( 'all' ), + $this->checkboxLink( 'none' ), + $this->checkboxLink( 'invert' ), + ]; return Html::rawElement( 'div', [