From: Wikimedia Espana Date: Sat, 7 Jul 2012 14:58:31 +0000 (-0700) Subject: MediaWiki añadía
 alrededor de los , los 
de dentro X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=5af01605297ab46aaae3528e43fca23062f5e767;p=mediawiki%2Fextensions%2FHomePageWMES MediaWiki añadía
 alrededor de los , los 
de dentro de los se mostraban como texto, ocultar el título, mover las cajas a la función landingbox(). --- diff --git a/HomePageWMES.php b/HomePageWMES.php index d58296b..8e054fd 100644 --- a/HomePageWMES.php +++ b/HomePageWMES.php @@ -20,66 +20,46 @@ function efSetupHomepageWMES(&$parser) { $parser->setHook( 'Portada', 'efHookHomepageWMES' ); return true; } + +function landingbox($nombre, $class, $texto, $enlace2, $titulo2) { + global $wgExtensionAssetsPath; + $nombre = htmlspecialchars( $nombre ); + $imagen = "$wgExtensionAssetsPath/HomePageWMES/images/home/" . $nombre . ".png"; + $link = "/" . lcfirst( $nombre ); + $boxname = strtolower( $nombre ) . "_box"; + + return "'; +} + function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame ) { - return << + global $wgOut; + $wgOut->addInlineStyle('h1 { display: none }'); // FIXME + + return + '
- +
' . + + landingbox("Actividades", '', 'Wiki Loves Monuments
Concurso europeo de fotos', 'http://wlm.wikimedia.org.es/', 'WLM') . + landingbox("Participa", ' whitelink', 'Descubre cómo
puedes colaborar') . + landingbox("Donar", '', "Tus donaciones
sostienen Wikimedia") . + + '
@@ -133,27 +113,19 @@ function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame
-
-
+
' . + '
-
-HTML + ' + /*