From 7cd8ce6cce8ebfa940c1e1419186bce1f122b027 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 27 Apr 2016 23:11:38 +0200 Subject: Indented all the code correctly. --- Toha.skin.php | 256 +++++++++++++------------- i18n/en.json | 38 ++-- i18n/fr.json | 40 ++-- resources/dynmenu.js | 76 ++++---- resources/screen.css | 504 +++++++++++++++++++++++++-------------------------- skin.json | 2 +- 6 files changed, 458 insertions(+), 458 deletions(-) diff --git a/Toha.skin.php b/Toha.skin.php index 45ad911..26a7ea6 100644 --- a/Toha.skin.php +++ b/Toha.skin.php @@ -20,12 +20,12 @@ class SkinToha extends SkinTemplate { /** * initialize the page */ - public function initPage( OutputPage $out ) { - parent::initPage( $out ); - $out->addModuleScripts( array( + public function initPage( OutputPage $out ) { + parent::initPage( $out ); + $out->addModuleScripts( array( 'skins.toha' ) ); - } + } /** * Add CSS via ResourceLoader @@ -46,12 +46,12 @@ class SkinToha extends SkinTemplate { * @return QuickTemplate The template to be executed by outputPage */ function prepareQuickTemplate( ) { - global $wgSmallLogo; + global $wgSmallLogo; $tpl = parent::prepareQuickTemplate( ); $tpl->setRef( 'smalllogopath', $wgSmallLogo ); - return $tpl; + return $tpl; - } + } } @@ -91,13 +91,13 @@ class TohaTemplate extends BaseTemplate { if ( is_array( $box['content'] ) ) { echo ''; @@ -108,79 +108,79 @@ class TohaTemplate extends BaseTemplate { $item ) - echo $this->makeLink( $key, $item ); + foreach ( $links as $key => $item ) + echo $this->makeLink( $key, $item ); - } else { + } else { - echo $links; + echo $links; - } + } - echo '\';' . "\n"; + echo '\';' . "\n"; - echo 'addMenuToID(\'n-' . $name . '-desc\', inner_' . $name . ');'; + echo 'addMenuToID(\'n-' . $name . '-desc\', inner_' . $name . ');'; - echo "\n\n"; + echo "\n\n"; - } + } - /** - * Define menus on the left and on the right. - */ - private function renderPortletAsSideButtons( $required, $boxes ) { + /** + * Define menus on the left and on the right. + */ + private function renderPortletAsSideButtons( $required, $boxes ) { - foreach ( $required as $req ) { + foreach ( $required as $req ) { - if ( ! array_key_exists( $req, $boxes ) ) - continue; + if ( ! array_key_exists( $req, $boxes ) ) + continue; - $box = $boxes[$req]; + $box = $boxes[$req]; - if ( ! $box['content'] ) - continue; + if ( ! $box['content'] ) + continue; - ?> - + html( 'headelement' ) ?> + $this->html( 'headelement' ) ?> -
+