[guadec-web] make full with template the default for new pages



commit ced93985aeb61a13ad0215fc13ae3df4688ad9ca
Author: Andreas Nilsson <anilsson redhat com>
Date:   Mon Apr 29 10:49:34 2013 -0300

    make full with template the default for new pages

 wordcamp-base/page.php                |    4 +++
 wordcamp-base/template-full-width.php |   13 -----------
 wordcamp-base/template-sidebar.php    |   38 +++++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+), 13 deletions(-)
---
diff --git a/wordcamp-base/page.php b/wordcamp-base/page.php
index 4a26854..9120ffe 100644
--- a/wordcamp-base/page.php
+++ b/wordcamp-base/page.php
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * The template for displaying all pages.
  *
@@ -12,6 +13,9 @@
  * @since Twenty Ten 1.0
  */
 
+$structure = wcb_get('structure');
+$structure->full_width_content();
+
 get_header(); ?>
 
                <div id="container">
diff --git a/wordcamp-base/template-sidebar.php b/wordcamp-base/template-sidebar.php
new file mode 100644
index 0000000..bc69771
--- /dev/null
+++ b/wordcamp-base/template-sidebar.php
@@ -0,0 +1,38 @@
+<?php
+/**
+ * Template Name: 2-Column Layout (With Sidebar)
+ *
+ * A custom page template with sidebar.
+ */
+
+get_header(); ?>
+
+               <div id="container">
+                       <div id="content" role="main">
+
+<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
+
+                               <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+                                       <?php if ( is_front_page() ) { ?>
+                                               <!--<h2 class="entry-title"><?php the_title(); ?></h2>-->
+                                       <?php } else { ?>
+                                               <h1 class="entry-title"><?php the_title(); ?></h1>
+                                       <?php } ?>
+
+                                       <div class="entry-content">
+                                               <?php the_content(); ?>
+                                               <?php wp_link_pages( array( 'before' => '<div 
class="page-link">' . __( 'Pages:', 'wordcampbase' ), 'after' => '</div>' ) ); ?>
+                                               <!--<?php edit_post_link( __( 'Edit', 'wordcampbase' ), 
'<span class="edit-link">', '</span>' ); ?>-->
+                                       </div><!-- .entry-content -->
+                               </div><!-- #post-## -->
+
+                               <?php //comments_template( '', true ); ?>
+
+<?php endwhile; ?>
+
+                       </div><!-- #content -->
+               </div><!-- #container -->
+
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
+?>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]