Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2017 11:37
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 anonymous/d0bb284e96747ffa88da9936c2bb7075 to your computer and use it in GitHub Desktop.
Save anonymous/d0bb284e96747ffa88da9936c2bb7075 to your computer and use it in GitHub Desktop.
<?php
/**
* The template for displaying all single posts.
*
* @package WEN_Corporate
*/
get_header(); ?>
<?php
/**
* wen_corporate_action_before_primary hook
*/
do_action( 'wen_corporate_action_before_primary' );
?>
<div id="primary" <?php wen_corporate_primary_class( 'content-area' ); ?>>
<?php
/**
* wen_corporate_action_before_main hook
*/
do_action( 'wen_corporate_action_before_main' );
?>
<main id="main" class="site-main" role="main">
<?php
/**
* wen_corporate_action_after_main_start hook
*/
do_action( 'wen_corporate_action_after_main_start' );
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php
the_post_navigation( array(
'next_text' => '<span class="post-title">Next Post</span>&nbsp;<span class="meta-nav">&rarr;</span>',
'prev_text' => '<span class="meta-nav">&larr;</span>&nbsp;<span class="post-title">Previous Post</span>',
) );
?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
<?php
/**
* wen_corporate_action_before_main_end hook
*/
do_action( 'wen_corporate_action_before_main_end' );
?>
</main><!-- #main -->
<?php
/**
* wen_corporate_action_after_main hook
*/
do_action( 'wen_corporate_action_after_main' );
?>
</div><!-- #primary -->
<?php
/**
* wen_corporate_action_after_primary hook
*/
do_action( 'wen_corporate_action_after_primary' );
?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment