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 image 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(); ?>> |
||
16 | <div class="entry-wrap wrap clear"> |
||
17 | <div class="entry-attachment"> |
||
18 | |||
19 | <header class="entry-header"> |
||
20 | <?php |
||
21 | $categories_list = get_the_category_list( __( ', ', 'strip' ) ); |
||
22 | |||
23 | View Code Duplication | if ( ! is_single() ) : |
|
24 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); |
||
25 | else : |
||
26 | the_title( '<h1 class="entry-title">', '</h1>' ); |
||
27 | endif; |
||
28 | ?> |
||
29 | </header><!-- .entry-header --> |
||
30 | |||
31 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'strip' ) ); ?> |
||
32 | |||
33 | </div><!-- .entry-attachment --> |
||
34 | |||
35 | <footer class="entry-meta"> |
||
36 | <?php strip_entry_meta(); ?> |
||
37 | |||
38 | <span class="entry-format"><a href="<?php echo esc_url( get_post_format_link( 'image' ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'strip' ), get_post_format_string( 'image' ) ) ); ?>"><?php echo esc_html( get_post_format_string( 'image' ) ); ?></a></span> |
||
39 | |||
40 | <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
||
41 | </footer><!-- .entry-meta --> |
||
42 | |||
43 | <?php if ( has_excerpt() ) : ?> |
||
44 | <div class="entry-summary"> |
||
45 | <?php do_action( 'strip_formatted_posts_excerpt_before' ); ?> |
||
46 | <?php the_excerpt(); ?> |
||
47 | <?php do_action( 'strip_formatted_posts_excerpt_after' ); ?> |
||
48 | </div><!-- .entry-caption --> |
||
49 | <?php endif; ?> |
||
50 | |||
51 | </div><!-- .entry-wrap --> |
||
52 | </article><!-- #post-## --> |
||
53 |