Skip to content

Instantly share code, notes, and snippets.

@arielk
Last active December 20, 2015 16:47
Show Gist options
  • Save arielk/7e746863358ad95bfe73 to your computer and use it in GitHub Desktop.
Save arielk/7e746863358ad95bfe73 to your computer and use it in GitHub Desktop.
Atlanta - Single hide title post
<?php
/**
* Default Single
*/
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>
<div class="entry-meta">
<?php if ( po_single_metadata_show( 'date' ) ) : ?>
<span class="entry-date"><i class="fa fa-calendar"></i> <?php echo get_the_date(); ?></span>
<?php endif; ?>
<?php if ( po_single_metadata_show( 'time' ) ) : ?>
<span class="entry-time"><i class="fa fa-clock-o"></i> <?php echo get_the_time(); ?></span>
<?php endif; ?>
<?php if ( po_single_metadata_show( 'comments' ) ) : ?>
<span class="entry-comment"><i class="fa fa-comment"></i> <?php comments_popup_link( __( 'No Comments', 'pojo' ), __( 'One Comment', 'pojo' ), __( '% Comments', 'pojo' ), 'comments' ); ?></span>
<?php endif; ?>
<?php if ( po_single_metadata_show( 'author' ) ) : ?>
<span class="entry-user"><i class="fa fa-user"></i> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author" class="fn"><?php echo get_the_author(); ?></a></span>
<?php endif; ?>
</div>
</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>
<?php $tags = get_the_tags(); if ( $tags ) : ?><div class="entry-tags"><?php the_tags( '', ' ' ); ?></div><?php endif; ?>
<?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 ); ?>
<footer>
<?php pojo_button_post_edit(); ?>
</footer>
</article>
<?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