Current Path : /home/church/www/launch100ar.com/wp-content/themes/editor-blocks/template-parts/ |
Current File : /home/church/www/launch100ar.com/wp-content/themes/editor-blocks/template-parts/entry-header.php |
<?php /** * Template part for displaying the entry headers. * * @package editor-blocks * @copyright Copyright (c) 2018, Danny Cooper * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License */ $hide = get_post_meta( get_the_ID(), 'editor_blocks_hide_entry_header', true ); if ( is_singular() && intval( $hide ) ) { return; } ?> <header class="entry-header"> <?php if ( is_singular() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); endif; if ( 'post' === get_post_type() ) : ?> <div class="entry-meta"> <?php editor_blocks_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header -->