Completed
Push — master ( 5568fc...75bf5a )
by Fernando
02:47
created
content.php 1 patch
Spacing   +24 added lines, -24 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,37 +65,37 @@  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') ) ) : // Only display Excerpts for Search and Archives ?>
68
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // 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 74
 	<?php else : ?>
75 75
 		<div class="entry-content">
76 76
 			<?php
77 77
 				the_content();
78 78
 
79
-				wp_link_pages( array(
79
+				wp_link_pages(array(
80 80
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
81 81
 					'after' => '</div></div>',
82 82
 					'link_before' => '<span>',
83 83
 					'link_after' => '</span>'
84
-				) );
84
+				));
85 85
 			?>
86 86
 		</div><!-- .entry-content -->
87 87
 	<?php endif; ?>
88 88
 	
89
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
89
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
90 90
 		<div class="post-tags-wrapper">
91 91
 			<?php lsx_content_post_tags(); ?>
92 92
 			
93
-			<?php if ( comments_open() && 0 != get_comments_number() ) : ?>
93
+			<?php if (comments_open() && 0 != get_comments_number()) : ?>
94 94
 				<div class="post-comments">
95 95
 					<a href="<?php the_permalink() ?>#comments">
96 96
 						<?php
97 97
 							$count = get_comments_number();
98
-							printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) );
98
+							printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count)));
99 99
 						?>
100 100
 					</a>
101 101
 				</div>
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
 
108 108
 	<div class="clearfix"></div>
109 109
 
110
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
110
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
111 111
 
112
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
112
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
113 113
 		<div class="lsx-breaker"></div>
114 114
 	<?php } ?>
115 115
 </article><!-- #post-## -->
Please login to merge, or discard this patch.