Created
November 24, 2012 14:51
-
-
Save neverything/4139971 to your computer and use it in GitHub Desktop.
required+ Foundation WordPress front page template
This file contains hidden or 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 | |
/** | |
* 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(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool