From: Platonides Date: Wed, 10 Jan 2018 22:30:00 +0000 (+0100) Subject: Perform some spacing cleanup X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=ce95587f0323162bf3e05664eeae31a4aea2fe52;p=mediawiki%2Fextensions%2FHomePageWMES Perform some spacing cleanup --- diff --git a/HomePageWMES.php b/HomePageWMES.php index 7187382..b68b444 100644 --- a/HomePageWMES.php +++ b/HomePageWMES.php @@ -6,7 +6,6 @@ $wgHooks['ParserFirstCallInit'][] = 'HomePageWMES::setupHook'; $wgResourceModules['ext.homepage-wmes'] = array( 'scripts' => 'js/home.js', 'styles' => 'style.css', -# 'dependencies' => 'jquery', 'localBasePath' => dirname( __FILE__ ), 'remoteExtPath' => 'HomePageWMES' ); diff --git a/HomePageWMES_body.php b/HomePageWMES_body.php index cfeeee8..2018301 100644 --- a/HomePageWMES_body.php +++ b/HomePageWMES_body.php @@ -34,101 +34,80 @@ class HomePageWMES { $titulo2 = $nombre; } - return "
-
" . - '
' . - "

" . - "" . rtrim( $nombre, 'r' ) . "" . - "

" . - "

" . - 'MÁS' . - '

' . - "

" . - "" . - "$texto" . - '' . - '

' . - '
-
-
'; + return " +
+
+
" . + "

" . + "" . rtrim( $nombre, 'r' ) . "" . + "

" . + "

" . + 'MÁS' . + '

' . + "

" . + "" . + "$texto" . + '' . + '

' . + '
+
+
'; } static function hook( $input, array $args, Parser $parser, PPFrame $frame ) { $parser->getOutput()->addModules( 'ext.homepage-wmes' ); $html = - '
-
-
' . - - self::landingbox("Actividades", '', 'Conoce qué
hacemos') . - self::landingbox("Participa", ' whitelink', 'Descubre cómo
puedes colaborar') . - self::landingbox("Donar", '', "Tus donaciones
sostienen Wikimedia") . - - '
-
-
-
-
-
-
-
    '; - - $slideshow = array('Imagina un mundo...', 'en el que cada persona...', 'tenga acceso libre...', 'a la suma del conocimiento humano.', 'Eso es lo que estamos construyendo.'); - - global $wgExtensionAssetsPath; - $str = ''; - foreach ( $slideshow as $num => $text) { - $slidepath = "$wgExtensionAssetsPath/HomePageWMES/images/slide-$num.jpg"; - $str .= "
  • " . htmlspecialchars( $text ) . "

" . - "
\"\"
" . - ""; - } + '
+
+
' . "\n" . - $html .= $str . - ' -
-
-
' . - '
- -
-
-
' + self::landingbox("Actividades", '', 'Conoce qué
hacemos') . + self::landingbox("Participa", ' whitelink', 'Descubre cómo
puedes colaborar') . + self::landingbox("Donar", '', "Tus donaciones
sostienen Wikimedia") . -/* -
- - - - -
style="clear:both"> -
-

-
- - '' ) ); ?> - ', '' ); ?> -
-
-
- - - -
-*/ - . '
'; + ' +
+
+
+
+
+
+
+
    '; + + $slideshow = array('Imagina un mundo...', 'en el que cada persona...', 'tenga acceso libre...', 'a la suma del conocimiento humano.', 'Eso es lo que estamos construyendo.'); + + global $wgExtensionAssetsPath; + $str = ''; + foreach ( $slideshow as $num => $text) { + $slidepath = "$wgExtensionAssetsPath/HomePageWMES/images/slide-$num.jpg"; + $str .= "
  • " . htmlspecialchars( $text ) . "

" . + "
\"\"
" . + ""; + } + + $html .= $str . ' +
+
+
+ +
+ + '; return $html; } }