1 | <?php |
||
2 | /** |
||
3 | * Template part for displaying the video post format |
||
4 | * |
||
5 | * @package WordPress |
||
6 | * @subpackage Strip |
||
7 | */ |
||
8 | |||
9 | ?> |
||
10 | |||
11 | <article id="post-<?php the_ID(); ?>" <?php post_class( 'clear' ); ?>> |
||
12 | <div class="entry-wrap wrap clear"> |
||
13 | |||
14 | <?php |
||
15 | if ( '' !== get_the_post_thumbnail() ) : |
||
16 | the_post_thumbnail( 'strip-featured-thumbnail' ); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
17 | endif; |
||
18 | ?> |
||
19 | |||
20 | <header class="entry-header"> |
||
21 | <?php |
||
22 | $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
||
23 | |||
24 | if ( ! is_single() ) : |
||
25 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
||
26 | else : |
||
27 | the_title( '<h1 class="entry-title">', '</h1>' ); |
||
28 | endif; |
||
29 | ?> |
||
30 | </header><!-- .entry-header --> |
||
31 | <br> |
||
32 | <div class="entry-content"> |
||
33 | <?php |
||
34 | the_content(sprintf( |
||
35 | /* translators: %s: Name of current post. */ |
||
36 | esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
||
37 | the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
||
38 | )); |
||
39 | |||
40 | ?> |
||
41 | </div><!-- .entry-content --> |
||
42 | |||
43 | <footer class="entry-meta"> |
||
44 | <?php strip_entry_meta(); ?> |
||
45 | |||
46 | <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'video' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'video' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'video' ) ); ?></a></span> |
||
47 | |||
48 | <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
||
49 | </footer><!-- .entry-meta --> |
||
50 | |||
51 | <?php if ( has_excerpt() ) : ?> |
||
52 | <div class="entry-summary"> |
||
53 | <?php do_action( 'strip_formatted_posts_excerpt_before' ); ?> |
||
54 | <?php the_excerpt(); ?> |
||
55 | <?php do_action( 'strip_formatted_posts_excerpt_after' ); ?> |
||
56 | </div><!-- .entry-caption --> |
||
57 | <?php endif; ?> |
||
58 | |||
59 | </div><!-- .entry-wrap --> |
||
60 | </article><!-- #post-## --> |
||
61 |