Created
June 4, 2014 15:17
-
-
Save woogist/4bfb00d992e3d8e58928 to your computer and use it in GitHub Desktop.
template-landing.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
/** | |
* Template Name: Primary landing pg 1 | |
* | |
* This template is a full-width version of the page.php template file. It | |
* removes the sidebar area. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
get_header(); | |
global $woo_options; | |
?> | |
<div id="content" class="page col-full"> | |
<?php the_post_thumbnail(); ?> <!-- inserts featured image as banner. | |
Need to make custom banner sized images for this. --> | |
<?php woo_main_before(); ?> | |
<section id="main" class="fullwidth"> | |
<?php | |
if ( have_posts() ) { $count = 0; | |
while ( have_posts() ) { the_post(); $count++; | |
?> | |
<article <?php post_class(); ?>> | |
<header> | |
<h1><?php the_title(); ?></h1> | |
</header> | |
<section class="entry"> | |
<?php the_content(); ?> | |
</section><!-- /.entry --> | |
<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?> | |
</article><!-- /.post --> | |
<?php | |
} // End WHILE Loop | |
} else { | |
?> | |
<article <?php post_class(); ?>> | |
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p> | |
</article><!-- /.post --> | |
<?php } ?> | |
</section><!-- /#main --> | |
<?php woo_main_after(); ?> | |
</div><!-- /#content --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment