Completed
Push — master ( bda41e...7cb173 )
by Fernando
03:08
created
content-single.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
26
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
25
+				<?php if (has_post_thumbnail()) { ?>
26
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
27 27
 				<?php } else { ?>
28
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
28
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
29 29
 				<?php } ?>
30 30
 
31 31
 				<span><?php the_title(); ?></span>
@@ -39,36 +39,36 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
 			<div class="post-tags-wrapper">
59 59
 				<?php lsx_content_post_tags(); ?>
60 60
 
61 61
 				<?php
62
-					if ( class_exists( 'LSX_Sharing' ) ) {
62
+					if (class_exists('LSX_Sharing')) {
63 63
 						lsx_content_sharing();
64 64
 					} else {
65
-						if ( function_exists( 'sharing_display' ) ) {
66
-							sharing_display( '', true );
65
+						if (function_exists('sharing_display')) {
66
+							sharing_display('', true);
67 67
 						}
68 68
 
69
-						if ( class_exists( 'Jetpack_Likes' ) ) {
69
+						if (class_exists('Jetpack_Likes')) {
70 70
 							$custom_likes = new Jetpack_Likes;
71
-							echo wp_kses_post( $custom_likes->post_likes( '' ) );
71
+							echo wp_kses_post($custom_likes->post_likes(''));
72 72
 						}
73 73
 					}
74 74
 				?>
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
 		<?php
79 79
 			// If comments are open or we have at least one comment, load up the comment template
80
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
81
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
80
+			if (comments_open() || '0' != get_comments_number()) : ?>
81
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
82 82
 
83 83
 				<div class="collapse" id="comments-collapse">
84 84
 					<?php 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		<?php endif; ?>
89 89
 	</footer><!-- .footer-meta -->
90 90
 	
91
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
91
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
92 92
 
93 93
 	<?php lsx_entry_bottom(); ?>
94 94
 
Please login to merge, or discard this patch.
content-post.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
 
13 13
 	<?php
14 14
 	$format = get_post_format();
15
-	if ( false === $format ) {
15
+	if (false === $format) {
16 16
 		$format = 'standard';
17 17
 	}
18 18
 	$format_link = get_post_format_link($format);
19 19
 	$format = lsx_translate_format_to_fontawesome($format);
20 20
 	?>
21 21
 
22
-	<?php if ( ! is_single() ) { ?>
22
+	<?php if ( ! is_single()) { ?>
23 23
 		<header class="entry-header">
24 24
 			<h1 class="entry-title">
25
-				<?php if ( has_post_thumbnail() ) { ?>
26
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
25
+				<?php if (has_post_thumbnail()) { ?>
26
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
27 27
 				<?php } else { ?>
28
-					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
28
+					<a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
29 29
 				<?php } ?>
30 30
 
31 31
 				<span><?php the_title(); ?></span>
@@ -39,36 +39,36 @@  discard block
 block discarded – undo
39 39
 
40 40
 	<div class="entry-content">
41 41
 		<?php
42
-		if ( ! is_singular() ) {
42
+		if ( ! is_singular()) {
43 43
 			the_excerpt();
44 44
 		} else {
45 45
 			the_content();
46 46
 
47
-			wp_link_pages( array(
47
+			wp_link_pages(array(
48 48
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
49 49
 				'after' => '</div></div>',
50 50
 				'link_before' => '<span>',
51 51
 				'link_after' => '</span>'
52
-			) );
52
+			));
53 53
 		} ?>
54 54
 	</div><!-- .entry-content -->
55 55
 
56 56
 	<footer class="footer-meta">
57
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
58 58
             <div class="post-tags-wrapper">
59 59
 				<?php lsx_content_post_tags(); ?>
60 60
 
61 61
 				<?php
62
-					if ( class_exists( 'LSX_Sharing' ) ) {
62
+					if (class_exists('LSX_Sharing')) {
63 63
 						lsx_content_sharing();
64 64
 					} else {
65
-						if ( function_exists( 'sharing_display' ) ) {
66
-							sharing_display( '', true );
65
+						if (function_exists('sharing_display')) {
66
+							sharing_display('', true);
67 67
 						}
68 68
 
69
-						if ( class_exists( 'Jetpack_Likes' ) ) {
69
+						if (class_exists('Jetpack_Likes')) {
70 70
 							$custom_likes = new Jetpack_Likes;
71
-							echo wp_kses_post( $custom_likes->post_likes( '' ) );
71
+							echo wp_kses_post($custom_likes->post_likes(''));
72 72
 						}
73 73
 					}
74 74
 				?>
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
 		<?php
79 79
 			// If comments are open or we have at least one comment, load up the comment template
80
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
81
-				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a>
80
+			if (comments_open() || '0' != get_comments_number()) : ?>
81
+				<a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a>
82 82
 
83 83
 				<div class="collapse" id="comments-collapse">
84 84
 					<?php 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		<?php endif; ?>
89 89
 	</footer><!-- .footer-meta -->
90 90
 	
91
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
91
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
92 92
 
93 93
 	<?php lsx_entry_bottom(); ?>
94 94
 
Please login to merge, or discard this patch.