From: Wikimedia Espana Date: Sat, 7 Jul 2012 15:11:31 +0000 (-0700) Subject: Arreglo el slideshow. MediaWiki también colocaba
 alrededor de
X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=ca6839725a964e4cbf6ab6dfa0c37469962e311c;p=mediawiki%2Fextensions%2FHomePageWMES

Arreglo el slideshow. MediaWiki también colocaba 
 alrededor de
los  que estaban indentados. Cambio la url de fondo a usar
$wgExtensionAssetsPath.
---

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