Passed
Push — master ( e51c9a...41921a )
by Chris
04:16
created

partials/content-post.php (10 issues)

1
<?php
2
/**
3
 * Template used to display post content on single pages.
4
 *
5
 * @package lsx
6
 */
7
8
?>
9
10
<?php lsx_entry_before(); ?>
11
12
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
13
14
	<?php lsx_entry_top(); ?>
15
16
	<div class="entry-content">
17
		<?php
18
			the_content();
19
20
			wp_link_pages( array(
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
21
				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
22
				'after'       => '</div></div>',
23
				'link_before' => '<span>',
24
				'link_after'  => '</span>',
25
			) );
0 ignored issues
show
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
26
		?>
27
	</div><!-- .entry-content -->
28
29
	<footer class="footer-meta clearfix">
30
		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
31
			<div class="post-tags-wrapper">
32
				<?php lsx_content_post_tags(); ?>
33
34
				<?php
35
				if ( class_exists( 'LSX_Sharing' ) ) {
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
36
					lsx_content_sharing();
37
				} else {
38
					if ( function_exists( 'sharing_display' ) ) {
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
39
						sharing_display( '', true );
40
					}
41
42
					if ( class_exists( 'Jetpack_Likes' ) ) {
0 ignored issues
show
Expected 0 spaces after opening bracket; 1 found
Loading history...
Expected 0 spaces before closing bracket; 1 found
Loading history...
43
						$custom_likes = new Jetpack_Likes();
44
						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
					}
46
				}
47
				?>
48
		<?php endif ?>
49
	</footer><!-- .footer-meta -->
50
51
	<?php lsx_entry_bottom(); ?>
52
53
</article><!-- #post-## -->
54
55
<?php
56
lsx_entry_after();
57