Skip to content

Instantly share code, notes, and snippets.

@woogist
Created June 4, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogist/4bfb00d992e3d8e58928 to your computer and use it in GitHub Desktop.
Save woogist/4bfb00d992e3d8e58928 to your computer and use it in GitHub Desktop.
template-landing.php
<?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