@@ -10,24 +10,24 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 12 | 12 | <div class="wrap"> |
| 13 | - <?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?> |
|
| 14 | - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
| 15 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
| 13 | + <?php if ('' !== get_the_post_thumbnail() && ! is_single()) : ?> |
|
| 14 | + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'strip'), the_title_attribute('echo=0'))); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
|
| 15 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
| 16 | 16 | </a> |
| 17 | 17 | <?php else : ?> |
| 18 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
| 18 | + <?php the_post_thumbnail('strip-featured-thumbnail'); ?> |
|
| 19 | 19 | <?php endif; ?> |
| 20 | 20 | |
| 21 | 21 | <header class="entry-header"> |
| 22 | 22 | <?php |
| 23 | - $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
|
| 24 | - if ( $categories_list && strip_categorized_blog() ) { |
|
| 23 | + $categories_list = get_the_category_list(__(', ', 'strip')); |
|
| 24 | + if ($categories_list && strip_categorized_blog()) { |
|
| 25 | 25 | echo '<span class="categories-links">' . $categories_list . '</span>'; |
| 26 | 26 | } |
| 27 | - if ( ! is_single() ) : |
|
| 28 | - the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
|
| 27 | + if ( ! is_single()) : |
|
| 28 | + the_title('<h1 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h1>'); |
|
| 29 | 29 | else : |
| 30 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
| 30 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
| 31 | 31 | endif; |
| 32 | 32 | ?> |
| 33 | 33 | </header><!-- .entry-header --> |
@@ -35,14 +35,14 @@ discard block |
||
| 35 | 35 | <footer class="entry-meta"> |
| 36 | 36 | <?php strip_entry_meta(); ?> |
| 37 | 37 | |
| 38 | - <?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?> |
|
| 39 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span> |
|
| 38 | + <?php if ( ! post_password_required() && (comments_open() || '0' !== get_comments_number())) : ?> |
|
| 39 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'strip'), __('1 Comment', 'strip'), __('% Comments', 'strip')); ?></span> |
|
| 40 | 40 | <?php endif; ?> |
| 41 | 41 | |
| 42 | - <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 42 | + <?php edit_post_link(__('Edit', 'strip'), '<span class="edit-link">', '</span>'); ?> |
|
| 43 | 43 | </footer><!-- .entry-meta --> |
| 44 | 44 | |
| 45 | - <?php if ( is_search() ) : // Only display Excerpts for Search. ?> |
|
| 45 | + <?php if (is_search()) : // Only display Excerpts for Search. ?> |
|
| 46 | 46 | <div class="entry-summary"> |
| 47 | 47 | <?php the_excerpt(); ?> |
| 48 | 48 | </div><!-- .entry-summary --> |
@@ -51,16 +51,16 @@ discard block |
||
| 51 | 51 | <?php |
| 52 | 52 | the_content(sprintf( |
| 53 | 53 | /* translators: %s: Name of current post. */ |
| 54 | - esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
|
| 55 | - get_the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
|
| 54 | + esc_html(__('Continue reading %s <span class="meta-nav">→</span>', 'strip'), array('span' => array('class' => array()))), |
|
| 55 | + get_the_title('<span class="screen-reader-text">"', '"</span>', false) |
|
| 56 | 56 | )); |
| 57 | 57 | |
| 58 | 58 | wp_link_pages(array( |
| 59 | - 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |
|
| 59 | + 'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'strip') . '</span>', |
|
| 60 | 60 | 'after' => '</div>', |
| 61 | 61 | 'link_before' => '<span>', |
| 62 | 62 | 'link_after' => '</span>', |
| 63 | - 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>%', |
|
| 63 | + 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'strip') . ' </span>%', |
|
| 64 | 64 | 'separator' => '<span class="screen-reader-text">, </span>', |
| 65 | 65 | )); |
| 66 | 66 | ?> |
@@ -14,8 +14,11 @@ discard block |
||
| 14 | 14 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
| 15 | 15 | <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
| 16 | 16 | </a> |
| 17 | - <?php else : ?> |
|
| 18 | - <?php the_post_thumbnail( 'strip-featured-thumbnail' ); ?> |
|
| 17 | + <?php else { |
|
| 18 | + : ?> |
|
| 19 | + <?php the_post_thumbnail( 'strip-featured-thumbnail' ); |
|
| 20 | +} |
|
| 21 | +?> |
|
| 19 | 22 | <?php endif; ?> |
| 20 | 23 | |
| 21 | 24 | <header class="entry-header"> |
@@ -26,8 +29,10 @@ discard block |
||
| 26 | 29 | } |
| 27 | 30 | if ( ! is_single() ) : |
| 28 | 31 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
| 29 | - else : |
|
| 32 | + else { |
|
| 33 | + : |
|
| 30 | 34 | the_title( '<h1 class="entry-title">', '</h1>' ); |
| 35 | + } |
|
| 31 | 36 | endif; |
| 32 | 37 | ?> |
| 33 | 38 | </header><!-- .entry-header --> |
@@ -46,7 +51,8 @@ discard block |
||
| 46 | 51 | <div class="entry-summary"> |
| 47 | 52 | <?php the_excerpt(); ?> |
| 48 | 53 | </div><!-- .entry-summary --> |
| 49 | - <?php else : ?> |
|
| 54 | + <?php else { |
|
| 55 | + : ?> |
|
| 50 | 56 | <div class="entry-content"> |
| 51 | 57 | <?php |
| 52 | 58 | the_content(sprintf( |
@@ -54,6 +60,7 @@ discard block |
||
| 54 | 60 | esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
| 55 | 61 | get_the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
| 56 | 62 | )); |
| 63 | +} |
|
| 57 | 64 | |
| 58 | 65 | wp_link_pages(array( |
| 59 | 66 | 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>', |