Skip to content

Instantly share code, notes, and snippets.

@arielk

arielk/page.php Secret

Created August 20, 2015 15:27
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 arielk/dec23ec53e5c23ba3f35 to your computer and use it in GitHub Desktop.
Save arielk/dec23ec53e5c23ba3f35 to your computer and use it in GitHub Desktop.
Border: Page wits Comments
<?php
/**
* Default Page
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if ( po_breadcrumbs_need_to_show() ) : ?>
<?php pojo_breadcrumbs(); ?>
<?php endif; ?>
<?php if ( pojo_is_show_page_title() ) : ?>
<div class="page-title">
<h1><?php the_title(); ?></h1>
</div>
<?php endif; ?>
</header>
<div class="entry-content">
<?php if ( ! Pojo_Core::instance()->builder->display_builder() ) : ?>
<?php the_content(); ?>
<?php pojo_link_pages(); ?>
<?php endif; ?>
</div>
<footer>
<?php pojo_button_post_edit(); ?>
</footer>
</article>
<?php
// Previous/next post navigation.
echo pojo_get_post_navigation(
array(
'prev_text' => __( '&laquo; Previous', 'pojo' ),
'next_text' => __( 'Next &raquo;', 'pojo' ),
)
);
?>
<?php comments_template( '', true ); ?>
<?php endwhile;
else :
pojo_get_content_template_part( 'content', 'none' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment