Skip to content

Instantly share code, notes, and snippets.

@neverything
Created November 24, 2012 14:51
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save neverything/4139971 to your computer and use it in GitHub Desktop.
required+ Foundation WordPress front page template
<?php
/**
* Custom front-page.php template
*
* Used to display the homepage of your
* WordPress site.
*
* @link http://themes.required.ch/?p=606
*/
get_header(); ?>
<!-- Row for main content area -->
<div id="content" class="row">
<div id="main" class="twelve columns" role="main">
<?php
/**
* Check for the responsive slider plugin
*/
if ( class_exists( 'REQ_Orbit' ) ) : ?>
<div class="home-slider">
<?php
/**
* Use the shortcode to create the slider
*/
echo do_shortcode('[orbit]');
?>
<hr>
</div>
<?php endif; ?>
<div class="post-box">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
</div><!-- /#main -->
</div><!-- End Content row -->
<?php get_footer(); ?>
@jaxtoncel
Copy link

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment