Passed
Push — master ( fc82b5...704b83 )
by SILENT
02:25
created

content-image.php (1 issue)

Upgrade to new PHP Analysis Engine

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
?>
10
11
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12
	<div class="entry-wrap wrap clear">
13
		<div class="entry-attachment">
14
15
		<header class="entry-header">
16
			<?php
17
				$categories_list = get_the_category_list( __( ', ', 'strip' ) );
18
19 View Code Duplication
			if ( ! is_single() ) :
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
20
				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
21
			else :
22
					the_title( '<h1 class="entry-title">', '</h1>' );
23
			endif;
24
			?>
25
			</header><!-- .entry-header -->
26
27
					<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
28
29
		</div><!-- .entry-attachment -->
30
31
		<footer class="entry-meta">
32
			<?php strip_entry_meta(); ?>
33
34
			<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>
35
36
			<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
37
		</footer><!-- .entry-meta -->
38
39
				<?php if ( has_excerpt() ) : ?>
40
		<div class="entry-summary">
41
			<?php do_action( 'strip_formatted_posts_excerpt_before' ); ?>
42
			<?php the_excerpt(); ?>
43
			<?php do_action( 'strip_formatted_posts_excerpt_after' ); ?>
44
		</div><!-- .entry-caption -->
45
		<?php endif; ?>
46
47
	</div><!-- .entry-wrap -->
48
</article><!-- #post-## -->
49