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