From ca6839725a964e4cbf6ab6dfa0c37469962e311c Mon Sep 17 00:00:00 2001 From: Wikimedia Espana Date: Sat, 7 Jul 2012 08:11:31 -0700 Subject: [PATCH] =?utf8?q?Arreglo=20el=20slideshow.=20MediaWiki=20tambi?= =?utf8?q?=C3=A9n=20colocaba=20
=20alrededor=20de=20los=20=20que?=
 =?utf8?q?=20estaban=20indentados.=20Cambio=20la=20url=20de=20fondo=20a=20?=
 =?utf8?q?usar=20$wgExtensionAssetsPath.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 HomePageWMES.php | 65 +++++++++++++++---------------------------------
 1 file changed, 20 insertions(+), 45 deletions(-)

diff --git a/HomePageWMES.php b/HomePageWMES.php
index 8e054fd..020ea15 100644
--- a/HomePageWMES.php
+++ b/HomePageWMES.php
@@ -50,7 +50,7 @@ function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame
       global $wgOut;
       $wgOut->addInlineStyle('h1 { display: none }'); // FIXME
       
-      return
+      $html = 
         '
' . @@ -66,52 +66,26 @@ function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame
-
    -
  • -
    -

    Imagina un mundo...

    -
    -
    - -
    -
  • - - - - -
- +
    '; + + $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/home/slide-$num.jpg"; + $str .= "
  • " . htmlspecialchars( $text ) . "

  • " . + "
    \"\"
    " . + ""; + } + + + $html .= $str . + '
    ' . '
    @@ -155,6 +129,7 @@ foreach($myposts as $post) :?>
    '; + return $html; } // \ No newline at end of file -- 2.30.2