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