These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * Template part for displaying the video post format |
||
4 | * |
||
5 | * @package WordPress |
||
6 | * @subpackage Strip |
||
7 | */ |
||
8 | |||
9 | // Access global variable directly to set content_width. |
||
10 | if ( isset( $GLOBALS['content_width'] ) ) { |
||
11 | $GLOBALS['content_width'] = 1920; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
12 | } |
||
13 | ?> |
||
14 | |||
15 | <article id="post-<?php the_ID(); ?>" <?php post_class( 'clear' ); ?>> |
||
16 | <div class="entry-wrap wrap clear"> |
||
17 | |||
18 | <?php |
||
19 | if ( '' !== get_the_post_thumbnail() ) : |
||
20 | the_post_thumbnail( 'strip-featured-thumbnail' ); |
||
21 | endif; |
||
22 | ?> |
||
23 | |||
24 | <header class="entry-header"> |
||
25 | <?php |
||
26 | $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
||
27 | |||
28 | View Code Duplication | if ( ! is_single() ) : |
|
29 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
||
30 | else : |
||
31 | the_title( '<h1 class="entry-title">', '</h1>' ); |
||
32 | endif; |
||
33 | ?> |
||
34 | </header><!-- .entry-header --> |
||
35 | <br> |
||
36 | <div class="entry-content"> |
||
37 | <?php |
||
38 | the_content(sprintf( |
||
39 | /* translators: %s: Name of current post. */ |
||
40 | esc_html( __( 'Continue reading %s <span class="meta-nav">→</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ), |
||
41 | the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
||
42 | )); |
||
43 | |||
44 | ?> |
||
45 | </div><!-- .entry-content --> |
||
46 | |||
47 | <footer class="entry-meta"> |
||
48 | <?php strip_entry_meta(); ?> |
||
49 | |||
50 | <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> |
||
51 | |||
52 | <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
||
53 | </footer><!-- .entry-meta --> |
||
54 | |||
55 | <?php if ( has_excerpt() ) : ?> |
||
56 | <div class="entry-summary"> |
||
57 | <?php do_action( 'strip_formatted_posts_excerpt_before' ); ?> |
||
58 | <?php the_excerpt(); ?> |
||
59 | <?php do_action( 'strip_formatted_posts_excerpt_after' ); ?> |
||
60 | </div><!-- .entry-caption --> |
||
61 | <?php endif; ?> |
||
62 | |||
63 | </div><!-- .entry-wrap --> |
||
64 | </article><!-- #post-## --> |
||
65 |