Completed
Push — master ( f45b93...fae63a )
by Fernando
04:59
created
content.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@  discard block
 block discarded – undo
7 7
 <?php lsx_entry_before(); ?>
8 8
 
9 9
 <?php 
10
-	if ( has_post_thumbnail() ) { 
10
+	if (has_post_thumbnail()) { 
11 11
 		$thumb_class = 'has-thumb';
12 12
 	} else {
13 13
 		$thumb_class = 'no-thumb';
14 14
 	} 
15 15
 ?>
16 16
 
17
-<article id="post-<?php the_ID(); ?>" <?php post_class( $thumb_class ); ?>>
17
+<article id="post-<?php the_ID(); ?>" <?php post_class($thumb_class); ?>>
18 18
 	<?php lsx_entry_top(); ?>
19 19
 
20 20
 	<header class="entry-header">
21
-		<?php if ( has_post_thumbnail() ) { ?>
21
+		<?php if (has_post_thumbnail()) { ?>
22 22
 		<div class="entry-image">
23 23
 			<a class="thumbnail" href="<?php the_permalink(); ?>">
24 24
 				 <?php lsx_thumbnail('lsx-single-thumbnail'); ?>
@@ -28,35 +28,35 @@  discard block
 block discarded – undo
28 28
 
29 29
 	<?php 
30 30
 		$format = get_post_format();
31
-		if ( false === $format ) {
31
+		if (false === $format) {
32 32
 			$format = 'standard';
33
-			$show_on_front = get_option('show_on_front','posts');
34
-			if('page' == $show_on_front){
33
+			$show_on_front = get_option('show_on_front', 'posts');
34
+			if ('page' == $show_on_front) {
35 35
 				$archive_link = get_permalink(get_option('page_for_posts'));
36
-			}else{
36
+			} else {
37 37
 				$archive_link = home_url();
38 38
 			}
39
-		}else{
39
+		} else {
40 40
 			$archive_link = get_post_format_link($format);
41 41
 		}
42 42
 		$format = lsx_translate_format_to_fontawesome($format);
43 43
 		?>
44 44
 
45 45
 		<h1 class="entry-title">
46
-			<?php if ( has_post_thumbnail() ) { ?>
47
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a>
46
+			<?php if (has_post_thumbnail()) { ?>
47
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a>
48 48
 			<?php } else { ?>
49
-				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a>
49
+				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a>
50 50
 			<?php } ?>
51 51
 
52
-			<?php if ( has_post_format( array('link') ) ) { ?>
53
-				<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
52
+			<?php if (has_post_format(array('link'))) { ?>
53
+				<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
54 54
 			<?php } else { ?>
55 55
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
56 56
 			<?php } ?>
57 57
 
58
-			<?php if ( is_sticky() ) { ?>
59
-				<span class="label label-default label-sticky"><?php esc_html_e('Featured','lsx'); ?></span>
58
+			<?php if (is_sticky()) { ?>
59
+				<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
60 60
 			<?php } ?>
61 61
 		</h1>
62 62
 
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 		</div><!-- .entry-meta -->
66 66
 	</header><!-- .entry-header -->	
67 67
 
68
-	<?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : // Only display Excerpts for Search and Archives ?>
68
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link')) && ! apply_filters('lsx_blog_force_content_on_list', false)) : // Only display Excerpts for Search and Archives ?>
69 69
 		<div class="entry-summary"> 
70 70
 			<?php the_excerpt(); ?>
71 71
 		</div><!-- .entry-summary -->
72
-	<?php elseif ( has_post_format( array('link') ) ) : ?>
72
+	<?php elseif (has_post_format(array('link'))) : ?>
73 73
 
74
-	<?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
74
+	<?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?>
75 75
 		<div class="entry-content">
76 76
 			<?php the_content(); ?>
77 77
 		</div><!-- .entry-content -->
@@ -80,26 +80,26 @@  discard block
 block discarded – undo
80 80
 			<?php
81 81
 				the_content();
82 82
 
83
-				wp_link_pages( array(
83
+				wp_link_pages(array(
84 84
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
85 85
 					'after' => '</div></div>',
86 86
 					'link_before' => '<span>',
87 87
 					'link_after' => '</span>'
88
-				) );
88
+				));
89 89
 			?>
90 90
 		</div><!-- .entry-content -->
91 91
 	<?php endif; ?>
92 92
 	
93
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
93
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
94 94
 		<div class="post-tags-wrapper">
95 95
 			<?php lsx_content_post_tags(); ?>
96 96
 			
97
-			<?php if ( comments_open() && 0 != get_comments_number() ) : ?>
97
+			<?php if (comments_open() && 0 != get_comments_number()) : ?>
98 98
 				<div class="post-comments">
99 99
 					<a href="<?php the_permalink() ?>#comments">
100 100
 						<?php
101 101
 							$count = get_comments_number();
102
-							printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) );
102
+							printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count)));
103 103
 						?>
104 104
 					</a>
105 105
 				</div>
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 
112 112
 	<div class="clearfix"></div>
113 113
 
114
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
114
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
115 115
 
116
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
116
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
117 117
 		<div class="lsx-breaker"></div>
118 118
 	<?php } ?>
119 119
 </article><!-- #post-## -->
Please login to merge, or discard this patch.