$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;
}
}