Perform some spacing cleanup
authorPlatonides <platonides@gmail.com>
Wed, 10 Jan 2018 22:30:00 +0000 (23:30 +0100)
committerPlatonides <platonides@gmail.com>
Wed, 10 Jan 2018 22:31:28 +0000 (23:31 +0100)
HomePageWMES.php
HomePageWMES_body.php

index 71873825d7f3b7441417dafa8c3e1a623a6757e8..b68b4445aa28999472842830e0d629a355e98197 100644 (file)
@@ -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'
 );
index cfeeee8ee96d8a4e24d9bf15cfd7556a5f9df4c8..2018301697f01009b6e5d4ec4e97666cd34a3f98 100644 (file)
@@ -34,101 +34,80 @@ class HomePageWMES {
                        $titulo2 = $nombre;
                }
 
-               return "<div class=\"content_landingbox\">
-                                       <div class=\"$boxname\">" .
-                                               '<div class="landingbox" style="background: url(' . "'$imagen'" . ') repeat 100% 100%; height:133px;width:319px;">' .
-                                                       "<h3 class=\"landingbox_title\">" .
-                                                               "<a class=\"link$class\" href=\"$link\" title=\"$nombre\">" . rtrim( $nombre, 'r' ) . "</a>" .
-                                                       "</h3>" .
-                                                       "<p class=\"landingbox_more\"><a class=\"link\" href=\"$link\" title=\"$nombre\">" .
-                                                       '<span>MÁS</span>' .
-                                                       '</a></p>' .
-                                                       "<p class=\"landingbox_body\">" . 
-                                                               "<a class=\"link$class\" href=\"$enlace2\" title=\"$titulo2\">" .
-                                                                       "$texto" .
-                                                               '</a>' .
-                                                       '</p>' .
-                                               '</div>
-                                       </div>
-                               </div>';
+               return "
+                                               <div class=\"content_landingbox\">
+                                                       <div class=\"$boxname\">
+                                                               <div class=\"landingbox\" style=\"background: url('$imagen') repeat 100% 100%; height:133px;width:319px;\">" .
+                                                                       "<h3 class=\"landingbox_title\">" .
+                                                                               "<a class=\"link$class\" href=\"$link\" title=\"$nombre\">" . rtrim( $nombre, 'r' ) . "</a>" .
+                                                                       "</h3>" .
+                                                                       "<p class=\"landingbox_more\"><a class=\"link\" href=\"$link\" title=\"$nombre\">" .
+                                                                       '<span>MÁS</span>' .
+                                                                       '</a></p>' .
+                                                                       "<p class=\"landingbox_body\">" . 
+                                                                               "<a class=\"link$class\" href=\"$enlace2\" title=\"$titulo2\">" .
+                                                                                       "$texto" .
+                                                                               '</a>' .
+                                                                       '</p>' .
+                                                               '</div>
+                                                       </div>
+                                               </div>';
        }
 
        static function hook( $input, array $args, Parser $parser, PPFrame $frame ) {
                $parser->getOutput()->addModules( 'ext.homepage-wmes' );
 
                $html =
-        '<div class="dm_zones clearfix">
-          <div class="dm_zone landingboxes_left" style="width: 320px;">
-            <div class="dm_widgets">' . 
-
-           self::landingbox("Actividades", '', 'Conoce qué<br />hacemos') . 
-           self::landingbox("Participa", ' whitelink', 'Descubre cómo<br/>puedes colaborar') . 
-           self::landingbox("Donar", '', "Tus donaciones<br/>sostienen Wikimedia") .
-
-            '</div>
-          </div>
-          <div class="dm_zone landingboxes_right" style="width: 602px;">
-            <div class="dm_widgets">
-              <div class="dm_widget main_mainbox">
-                <div class="dm_widget_inner mainbox">
-                  <div class="mainbox-show">
-                    <ul class="slideshow">';
-
-                    $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 .= "<li id=\"slideshow-item-$num\" class=\"slideshow-item\"";
-                      if ( $num ) $str .= ' style="display: none"';
-                      $str .= ">" .
-                        "<div class=\"slideshow-top\"><p>" . htmlspecialchars( $text ) . "</p></div>" .
-                        "<div class=\"slideshow-img\"><img alt=\"\" height=\"240\" src=\"$slidepath\" width=\"601\" /></div>" .
-                      "</li>";
-                    }
+                       '<div class="dm_zones clearfix">
+                               <div class="dm_zone landingboxes_left" style="width: 320px;">
+                                       <div class="dm_widgets">' . "\n" .
 
-                  $html .= $str .  
-                   '</ul>
-                  </div>
-                </div>
-              </div>' .
-              '<div class="dm_widget content_landingbox">
-                <div class="dm_widget_inner prensa_box">
-                  <div class="landingbox" style="background: url(' . "'$wgExtensionAssetsPath/HomePageWMES/images/Prensa.png'" .') repeat 100% 100%; height:81px;width:602px;">' .
-                    '<h3 class="landingbox_title"><a class="link" href="/blog" title="Blog">Blog</a></h3>' . 
-                    '<p class="landingbox_more"><a class="link" href="/blog" title="Blog"><span>MÁS</span></a></p>' . 
-                    '<p class="landingbox_body"><a class="link" href="/blog" title="Blog">Artículos y noticias<br/>sobre conocimiento libre</a></p>' . 
-                  '</div>
-                </div>
-              </div>
-            </div>
-          </div>'
+                       self::landingbox("Actividades", '', 'Conoce qué<br />hacemos') .
+                       self::landingbox("Participa", ' whitelink', 'Descubre cómo<br/>puedes colaborar') .
+                       self::landingbox("Donar", '', "Tus donaciones<br/>sostienen Wikimedia") .
 
-/*
-         <div class="posts_wrapper clear">
-<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-      <?php
-      $myposts = get_posts('numberposts=5&offset=$debut');
-foreach($myposts as $post) :?>
-  <?php setup_postdata($post);?>
-
-        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="clear:both">
-          <div class="wikipage-show element" >
-            <h1 class="entry-title"><?php the_title(); ?></h1>
-            <div class="entry-content">
-              <?php the_content(); ?>
-              <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
-              <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
-            </div><!-- .entry-content -->
-          </div><!-- #post-## -->
-        </div>
-
-    <?php endforeach?>
-<?php endwhile; ?>
-      </div>
-*/
-               . '</div>';
+                       '
+                                       </div>
+                               </div>
+                               <div class="dm_zone landingboxes_right" style="width: 602px;">
+                                       <div class="dm_widgets">
+                                               <div class="dm_widget main_mainbox">
+                                                       <div class="dm_widget_inner mainbox">
+                                                               <div class="mainbox-show">
+                                                                       <ul class="slideshow">';
+
+                       $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 .= "<li id=\"slideshow-item-$num\" class=\"slideshow-item\"";
+                               if ( $num ) {
+                                       $str .= ' style="display: none"';
+                               }
+                               $str .= ">" .
+                               "<div class=\"slideshow-top\"><p>" . htmlspecialchars( $text ) . "</p></div>" .
+                               "<div class=\"slideshow-img\"><img alt=\"\" height=\"240\" src=\"$slidepath\" width=\"601\" /></div>" .
+                               "</li>";
+                       }
+
+                       $html .= $str . '</ul>
+                                                               </div>
+                                                       </div>
+                                               </div>
+                                               <div class="dm_widget content_landingbox">
+                                                       <div class="dm_widget_inner prensa_box">
+                                                               <div class="landingbox" style="background: url(' . "'$wgExtensionAssetsPath/HomePageWMES/images/Prensa.png'" .') repeat 100% 100%; height:81px;width:602px;">
+                                                                       <h3 class="landingbox_title"><a class="link" href="/blog" title="Blog">Blog</a></h3>
+                                                                       <p class="landingbox_more"><a class="link" href="/blog" title="Blog"><span>MÁS</span></a></p>
+                                                                       <p class="landingbox_body"><a class="link" href="/blog" title="Blog">Artículos y noticias<br/>sobre conocimiento libre</a></p>
+                                                               </div>
+                                                       </div>
+                                               </div>
+                                       </div>
+                               </div>
+                       </div>';
                return $html;
        }
 }