Añado HomePageWMES para la portada.
authorWikimedia Espana <wmes@canberra>
Sat, 7 Jul 2012 13:58:48 +0000 (06:58 -0700)
committerWikimedia Espana <wmes@canberra>
Sat, 7 Jul 2012 13:58:48 +0000 (06:58 -0700)
(primera parte)

HomePageWMES.php [new file with mode: 0644]

diff --git a/HomePageWMES.php b/HomePageWMES.php
new file mode 100644 (file)
index 0000000..d58296b
--- /dev/null
@@ -0,0 +1,188 @@
+<?php\r
+/**\r
+ * Template Name: Home page\r
+ *\r
+ * A custom page template.\r
+ *\r
+ * The "Template Name:" bit above allows this to be selectable\r
+ * from a dropdown menu on the edit page screen.\r
+ *\r
+ * @package WordPress\r
+ * @subpackage wmes\r
+ * @since wmes 1.0\r
+ */\r
+\r
+/* Deriva del fichero wp-content/themes/wmes-theme/home-page.php del tema para WordPress  */\r
+\r
+$wgHooks['ParserFirstCallInit'][] = 'efSetupHomepageWMES';\r
+\r
+function efSetupHomepageWMES(&$parser) {\r
+  $parser->setHook( 'Portada', 'efHookHomepageWMES' );\r
+  return true;\r
+}\r
+    \r
+function efHookHomepageWMES( $input, array $args, Parser $parser, PPFrame $frame ) {\r
+      return <<<HTML\r
+        <div class="dm_zones clearfix">\r
+          <div class="dm_zone landingboxes_left" style="width: 320px;">\r
+            <div class="dm_widgets">\r
+              <div class="content_landingbox">\r
+                <div class="actividades_box">\r
+                  <div class="landingbox" style="background: url('/wp-content/themes/wmes-theme/images/home/Actividades.png') repeat 100% 100%; height:133px;width:319px;">\r
+                    <a class="link" href="/actividades" title="Actividades">\r
+                      <h3 class="landingbox_title">Actividades</h3>\r
+                    </a>\r
+                    <a class="link" href="/actividades" title="Actividades">\r
+                      <div class="landingbox_more">\r
+                        <p>MÁS</p>\r
+                      </div>\r
+                    </a>\r
+                    <a class="link" href="http://wlm.wikimedia.org.es/" title="WLM">\r
+                      <p class="landingbox_body">Wiki Loves Monuments<br/>Concurso europeo de fotos</p>\r
+                    </a>\r
+                  </div>\r
+                </div>\r
+              </div>\r
+              <div class="content_landingbox">\r
+                <div class="participa_box">\r
+                  <div class="landingbox" style="background: url(/wp-content/themes/wmes-theme/images/home/Participa.png) repeat 100% 100%; height:133px;width:319px;">\r
+                    <a class="link whitelink" href="/participa" title="Participa">\r
+                      <h3 class="landingbox_title">Participa</h3>\r
+                    </a>\r
+                    <a class="link" href="/participa" title="Participa">\r
+                      <div class="landingbox_more">\r
+                        <p>MÁS</p>\r
+                      </div>\r
+                    </a>\r
+                    <a class="link whitelink" href="/participa" title="Participa">\r
+                      <p class="landingbox_body">Descubre cómo<br/>puedes colaborar\r
+                      </p>\r
+                    </a>\r
+                  </div>\r
+                </div>\r
+              </div>\r
+              <div class="content_landingbox">\r
+                <div class="donar_box">\r
+                  <div class="landingbox" style="background: url(/wp-content/themes/wmes-theme/images/home/Donar.png) repeat 100% 100%; height:133px;width:319px;">\r
+                    <a class="link" href="/donar" title="Donar">\r
+                      <h3 class="landingbox_title">Dona</h3>\r
+                    </a>\r
+                    <a class="link" href="/donar" title="Donar">\r
+                      <div class="landingbox_more">\r
+                        <p>MÁS</p>\r
+                      </div>\r
+                    </a>\r
+                    <a class="link" href="/donar" title="Donar">\r
+                      <p class="landingbox_body">Tus donaciones<br/>sostienen Wikimedia\r
+                      </p>\r
+                    </a>\r
+                  </div>\r
+                </div>\r
+              </div>\r
+            </div>\r
+          </div>\r
+          <div class="dm_zone landingboxes_right" style="width: 602px;">\r
+            <div class="dm_widgets">\r
+              <div class="dm_widget main_mainbox">\r
+                <div class="dm_widget_inner mainbox">\r
+                  <div class="mainbox-show">\r
+                    <ul class="slideshow">\r
+                      <li id="slideshow-item-0" class="slideshow-item">\r
+                        <div class="slideshow-top">\r
+                          <p>Imagina un mundo...</p>\r
+                        </div>\r
+                        <div class="slideshow-img">\r
+                          <img alt="" height="240" src="/wp-content/themes/wmes-theme/images/home/slide-0.jpg" width="601" />\r
+                        </div>\r
+                      </li>\r
+                      <li id="slideshow-item-1" class="slideshow-item" style="display:none;">\r
+                        <div class="slideshow-top">\r
+                          <p>en el que cada persona...</p>\r
+                        </div>\r
+                        <div class="slideshow-img">\r
+                          <img alt="" height="240" src="/wp-content/themes/wmes-theme/images/home/slide-1.jpg" width="601" />\r
+                        </div>\r
+                      </li>\r
+                      <li id="slideshow-item-2" class="slideshow-item" style="display:none;">\r
+                        <div class="slideshow-top">\r
+                          <p>tenga acceso libre...</p>\r
+                        </div>\r
+                        <div class="slideshow-img">\r
+                          <img alt="" height="240" src="/wp-content/themes/wmes-theme/images/home/slide-2.jpg" width="601" />\r
+                        </div>\r
+                      </li>\r
+                      <li id="slideshow-item-3" class="slideshow-item" style="display:none;">\r
+                        <div class="slideshow-top">\r
+                          <p>a la suma del conocimiento humano.</p>\r
+                        </div>\r
+                        <div class="slideshow-img">\r
+                          <img alt="" height="240" src="/wp-content/themes/wmes-theme/images/home/slide-3.jpg" width="601" />\r
+                        </div>\r
+                      </li>\r
+                      <li id="slideshow-item-4" class="slideshow-item" style="display:none;">\r
+                        <div class="slideshow-top">\r
+                          <p>Eso es lo que estamos construyendo.</p>\r
+                        </div>\r
+                        <div class="slideshow-img">\r
+                          <img alt="" height="240" src="/wp-content/themes/wmes-theme/images/home/slide-4.jpg" width="601" />\r
+                        </div>\r
+                      </li>\r
+                    </ul>\r
+                    \r
+                      \r
+                    \r
+                  </div>\r
+                </div>\r
+              </div>\r
+              <div class="dm_widget content_landingbox">\r
+                <div class="dm_widget_inner prensa_box">\r
+                  <div class="landingbox" style="background: url(/wp-content/themes/wmes-theme/images/home/Prensa.png) repeat 100% 100%; height:81px;width:602px;">\r
+                    <a class="link" href="/blog" title="Blog">\r
+                      <h3 class="landingbox_title">Blog</h3>\r
+                    </a>\r
+                    <a class="link" href="/blog" title="Blog">\r
+                      <div class="landingbox_more">\r
+                        <p>MÁS</p>\r
+                      </div>\r
+                    </a>\r
+                    <a class="link" href="/blog" title="Blog">\r
+                      <p class="landingbox_body">Artículos y noticias<br/>sobre conocimiento libre</p>\r
+                    </a>\r
+                  </div>\r
+                </div>\r
+              </div>\r
+            </div>\r
+          </div>\r
+HTML\r
+/*\r
+         <div class="posts_wrapper clear">\r
+<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>\r
+      <?php\r
+      $myposts = get_posts('numberposts=5&offset=$debut');\r
+foreach($myposts as $post) :?>\r
+  <?php setup_postdata($post);?>\r
+\r
+        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="clear:both">\r
+          <div class="wikipage-show element" >\r
+            <h1 class="entry-title"><?php the_title(); ?></h1>\r
+            <div class="entry-content">\r
+              <?php the_content(); ?>\r
+              <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>\r
+              <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>\r
+            </div><!-- .entry-content -->\r
+          </div><!-- #post-## -->\r
+        </div>\r
+\r
+\r
+    <?php endforeach?>\r
+<?php endwhile; ?>\r
+*/\r
+. '\r
+      </div>\r
+    </div><!-- #content -->\r
+  </div><!-- #content -->\r
+</div><!-- #content -->\r
+';\r
+}\r
+\r
+// <?php get_footer(); ?>
\ No newline at end of file