Created
December 8, 2017 11:55
-
-
Save jeremycherfas/14527bae30103b9c387ae48cca061e92 to your computer and use it in GitHub Desktop.
Modified entry-header for zenpress child
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
<header class="entry-header"> | |
<?php edit_post_link( __( 'Edit', 'zenpress' ), '<div class="edit-link">', '</div>' ); ?> | |
<?php if ( get_post_format() !== false ) : ?> | |
<div class="entry-meta"> | |
<div class="post-format"> | |
<a class="entry-format entry-format-<?php echo get_post_format(); ?>" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a> | |
</div> | |
</div> | |
<?php endif; ?> | |
<?php if ( ! in_array( get_post_format(), array( 'aside', 'quote', 'link', 'status' ) ) ) : ?> | |
<h2 class="entry-title p-name" itemprop="name headline"> | |
<a href="<?php the_permalink(); ?>" class="u-url url" title="<?php printf( esc_attr__( 'Permalink to %s', 'zenpress' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" itemprop="url"> | |
<?php the_title(); ?> | |
</a> | |
</h2> | |
<?php endif; ?> | |
<?php //if ( ! in_array( get_post_format(), array( 'aside', 'status', 'link' ) ) ) : ?> | |
<div class="entry-meta" > | |
<?php zenpress_posted_on(); ?> | |
</div> | |
<?php //endif; ?> | |
</header><!-- .entry-header --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment