function wptouch_fdn_is_custom_latest_posts_page()
{
    global $post;
    $settings = foundation_get_settings();
    if ($settings->latest_posts_page == 'none') {
        return false;
    } else {
        rewind_posts();
        wptouch_the_post();
        rewind_posts();
        return apply_filters('foundation_is_custom_latest_posts_page', $settings->latest_posts_page == $post->ID);
    }
}
Example #2
0
    ?>

<?php 
} else {
    ?>

	<?php 
    get_header();
    ?>

	<div id="content">
		<?php 
    if (wptouch_have_posts()) {
        ?>
			<?php 
        wptouch_the_post();
        ?>
			<?php 
        get_template_part('page-content');
        ?>
		<?php 
    }
    ?>
	</div> <!-- content -->

	<?php 
    if (wptouch_fdn_show_comments_on_pages() && (comments_open() || have_comments())) {
        ?>
		<div id="comments">
			<?php 
        comments_template();