Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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(); ?>

Cool

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