Use consistent syntax for control structures

Changed the opening brace to ':' (or colon) and the closing brace to `endif;`
This commit is contained in:
byjml 2015-12-06 15:24:01 +03:00
parent e57d8c38b4
commit 944803c5d4
1 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,11 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_single() ) {
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
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">