-
-
Save arielk/750a6130363ee6995a27 to your computer and use it in GitHub Desktop.
Atlanta: Page wits Comments
This file contains 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 | |
/** | |
* 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(); ?>> | |
<?php if ( po_breadcrumbs_need_to_show() ) : ?> | |
<?php pojo_breadcrumbs(); ?> | |
<?php endif; ?> | |
<?php if ( pojo_is_show_page_title() ) : ?> | |
<header class="page-title"> | |
<h1><?php the_title(); ?></h1> | |
</header> | |
<?php endif; ?> | |
<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 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