Completed
Push — master ( 386a32...8f5969 )
by Fernando
02:29
created
inc/sensei.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
  * @category styles
126 126
  */
127 127
 function lsx_sensei_styles() {
128
-    wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
128
+	wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
129 129
 }
130 130
 add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' );
131 131
 
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
  * @category 	styles
137 137
  */
138 138
 function lsx_sensei_redirect_to_home( $query ){
139
-    if(!is_admin() && is_post_type_archive( 'lesson' ) ) {
140
-         wp_redirect( home_url() . '/courses-overview' );
141
-         exit;
142
-     }
139
+	if(!is_admin() && is_post_type_archive( 'lesson' ) ) {
140
+		 wp_redirect( home_url() . '/courses-overview' );
141
+		 exit;
142
+	 }
143 143
 }
144 144
 add_action( 'parse_query', 'lsx_sensei_redirect_to_home' );
145 145
 
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -12,26 +12,26 @@  discard block
 block discarded – undo
12 12
  * Hooks
13 13
  */
14 14
 
15
-remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 );
16
-remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );
15
+remove_action('sensei_before_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper'), 10);
16
+remove_action('sensei_after_main_content', array($woothemes_sensei->frontend, 'sensei_output_content_wrapper_end'), 10);
17 17
 
18 18
 add_action('sensei_before_main_content', 'lsx_sensei_before_content', 10);
19 19
 add_action('sensei_after_main_content', 'lsx_sensei_after_content', 10);
20 20
 
21 21
 //Switching the course filters and the headers around
22
-remove_action('sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 10, 0 );
23
-remove_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_sorting' ) );
24
-remove_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_filters' ) );
25
-add_action('sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 11, 0 );
26
-add_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_sorting' ),12 );
27
-add_action ( 'sensei_archive_before_course_loop' , array( 'Sensei_Course', 'course_archive_filters' ),12 );
22
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'archive_header'), 10, 0);
23
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_sorting'));
24
+remove_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_filters'));
25
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'archive_header'), 11, 0);
26
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_sorting'), 12);
27
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'course_archive_filters'), 12);
28 28
 
29 29
 // Moving course image up in DOM
30
-remove_action('sensei_course_content_inside_before', array( Sensei()->course, 'course_image' ) ,10, 1 );
31
-add_action('sensei_course_content_inside_before', array( Sensei()->course, 'course_image' ) ,1, 1 );
30
+remove_action('sensei_course_content_inside_before', array(Sensei()->course, 'course_image'), 10, 1);
31
+add_action('sensei_course_content_inside_before', array(Sensei()->course, 'course_image'), 1, 1);
32 32
 
33
-remove_action( 'sensei_single_course_content_inside_before', array( Sensei()->course , 'course_image'), 20 );
34
-add_action( 'sensei_single_course_content_inside_before', array( Sensei()->course , 'course_image'), 12 );
33
+remove_action('sensei_single_course_content_inside_before', array(Sensei()->course, 'course_image'), 20);
34
+add_action('sensei_single_course_content_inside_before', array(Sensei()->course, 'course_image'), 12);
35 35
 
36 36
 /**
37 37
  * Adds the top and primary divs for the layout.
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
  * @subpackage sensei
40 40
  * @category 	layout
41 41
  */
42
-function lsx_sensei_wp_head(){
42
+function lsx_sensei_wp_head() {
43 43
 
44
-	$layout = get_theme_mod('lsx_layout','2cr');
45
-	$layout = apply_filters( 'lsx_layout', $layout );
44
+	$layout = get_theme_mod('lsx_layout', '2cr');
45
+	$layout = apply_filters('lsx_layout', $layout);
46 46
 
47
-	if('1c' === $layout && is_post_type_archive(array('course','lesson'))) {
48
-		add_action('sensei_archive_before_course_loop', 'lsx_breadcrumbs', 11 );
47
+	if ('1c' === $layout && is_post_type_archive(array('course', 'lesson'))) {
48
+		add_action('sensei_archive_before_course_loop', 'lsx_breadcrumbs', 11);
49 49
 	}
50 50
 	
51
-	if('1c' === $layout && is_tax(array('module','course-category'))) {
51
+	if ('1c' === $layout && is_tax(array('module', 'course-category'))) {
52 52
 		remove_action('lsx_content_top', 'lsx_breadcrumbs');
53
-		add_action( 'sensei_loop_course_before', 'lsx_breadcrumbs', 80 , 1 );
53
+		add_action('sensei_loop_course_before', 'lsx_breadcrumbs', 80, 1);
54 54
 		
55
-		if(is_tax('module')){
56
-			remove_action( 'sensei_content_lesson_inside_before', array( 'Sensei_Lesson', 'the_lesson_meta' ), 20 );
57
-			add_action( 'sensei_content_lesson_inside_before', array( 'Sensei_Lesson', 'the_lesson_meta' ), 40 );
55
+		if (is_tax('module')) {
56
+			remove_action('sensei_content_lesson_inside_before', array('Sensei_Lesson', 'the_lesson_meta'), 20);
57
+			add_action('sensei_content_lesson_inside_before', array('Sensei_Lesson', 'the_lesson_meta'), 40);
58 58
 			
59 59
 			remove_action('sensei_content_lesson_inside_before', array('Sensei_Core_Modules', 'module_archive_description'), 11);
60 60
 		}
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
  * @subpackage sensei
74 74
  * @category 	layout
75 75
  */
76
-function lsx_sensei_before_content(){ ?>
76
+function lsx_sensei_before_content() { ?>
77 77
 	<?php lsx_content_wrap_before(); ?>
78 78
 
79
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
79
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
80 80
 
81 81
 		<?php lsx_content_before(); ?>
82 82
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
  * @subpackage sensei
93 93
  * @category 	layout
94 94
  */
95
-function lsx_sensei_after_content(){ ?>
95
+function lsx_sensei_after_content() { ?>
96 96
 		<?php lsx_content_bottom(); ?>
97 97
 
98 98
 		</main><!-- #main -->
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
  * @subpackage sensei
117 117
  * @category redirect
118 118
  */
119
-add_filter( 'sensei_disable_styles', '__return_true' );
119
+add_filter('sensei_disable_styles', '__return_true');
120 120
 
121 121
 /**
122 122
  * Includes the sensei specific styles.
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
  * @category styles
126 126
  */
127 127
 function lsx_sensei_styles() {
128
-    wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION );
128
+    wp_enqueue_style('sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION);
129 129
 }
130
-add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' );
130
+add_action('wp_enqueue_scripts', 'lsx_sensei_styles');
131 131
 
132 132
 /**
133 133
  * Redirects Lessons Archive to Courses Overview
@@ -135,13 +135,13 @@  discard block
 block discarded – undo
135 135
  * @subpackage woocommerce
136 136
  * @category 	styles
137 137
  */
138
-function lsx_sensei_redirect_to_home( $query ){
139
-    if(!is_admin() && is_post_type_archive( 'lesson' ) ) {
140
-         wp_redirect( home_url() . '/courses-overview' );
138
+function lsx_sensei_redirect_to_home($query) {
139
+    if ( ! is_admin() && is_post_type_archive('lesson')) {
140
+         wp_redirect(home_url() . '/courses-overview');
141 141
          exit;
142 142
      }
143 143
 }
144
-add_action( 'parse_query', 'lsx_sensei_redirect_to_home' );
144
+add_action('parse_query', 'lsx_sensei_redirect_to_home');
145 145
 
146 146
 /**
147 147
  * Filters the archive title
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
  * @subpackage woocommerce
150 150
  * @category 	styles
151 151
  */
152
-function lsx_sensei_category_title( $html,$term_id ){
153
-	$html = str_replace('h2','h1',$html);
154
-	$html = str_replace('sensei-category-title','archive-title',$html);
152
+function lsx_sensei_category_title($html, $term_id) {
153
+	$html = str_replace('h2', 'h1', $html);
154
+	$html = str_replace('sensei-category-title', 'archive-title', $html);
155 155
 	
156
-	return '<header class="archive-header">'.$html.'</header>';
156
+	return '<header class="archive-header">' . $html . '</header>';
157 157
 }
158
-add_filter( 'course_category_title', 'lsx_sensei_category_title',1,10 );
159 158
\ No newline at end of file
159
+add_filter('course_category_title', 'lsx_sensei_category_title', 1, 10);
160 160
\ No newline at end of file
Please login to merge, or discard this patch.
inc/wp-job-manager.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 function lsx_wp_job_manager_styles() {
17
-    wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION );
17
+	wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION );
18 18
 }
19 19
 add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' );
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 function lsx_wp_job_manager_styles() {
17
-    wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION );
17
+    wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION);
18 18
 }
19
-add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' );
20 19
\ No newline at end of file
20
+add_action('wp_enqueue_scripts', 'lsx_wp_job_manager_styles');
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
inc/woocommerce.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' );
72
+	wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' );
73
+	wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' );
74
+	wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' );
75 75
 }
76 76
 add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 77
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 /*
10 10
  * Hooks
11 11
  */
12
-remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
-remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
12
+remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
13
+remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
14 14
 
15 15
 add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10);
16 16
 add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10);
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
  * @subpackage woocommerce
26 26
  * @category 	layout
27 27
  */
28
-function lsx_woocommerce_before_content(){ ?>
28
+function lsx_woocommerce_before_content() { ?>
29 29
 	<?php lsx_content_wrap_before(); ?>
30 30
 
31
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
31
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
32 32
 
33 33
 		<?php lsx_content_before(); ?>
34 34
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * @subpackage woocommerce
44 44
  * @category 	layout
45 45
  */
46
-function lsx_woocommerce_after_content(){ ?>
46
+function lsx_woocommerce_after_content() { ?>
47 47
 		<?php lsx_content_bottom(); ?>
48 48
 
49 49
 		</main><!-- #main -->
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
  * @subpackage woocommerce
67 67
  * @category 	styles
68 68
  */
69
-add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
69
+add_filter('woocommerce_enqueue_styles', '__return_empty_array');
70 70
 
71 71
 function lsx_woocommerce_styles() {
72
-    wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' );
73
-    wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' );
74
-    wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' );
72
+    wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all');
73
+    wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), LSX_VERSION, 'only screen and (max-width: 767px)');
74
+    wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all');
75 75
 }
76
-add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' );
77 76
\ No newline at end of file
77
+add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles');
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
comments.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	<h3>
28 28
 		<?php
29 29
 			$count = get_comments_number();
30
-			printf( esc_html( _n( 'One Response to &ldquo;%2$s&rdquo;', '%1$s Responses to &ldquo;%2$s&rdquo;', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ), get_the_title() );
30
+			printf(esc_html(_n('One Response to &ldquo;%2$s&rdquo;', '%1$s Responses to &ldquo;%2$s&rdquo;', $count, 'lsx')), esc_html(number_format_i18n($count)), get_the_title());
31 31
 		?>
32 32
 	</h3>
33 33
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 </nav>
49 49
 <?php endif; ?>
50 50
 
51
-<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
51
+<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
52 52
 	<div class="alert alert-warning">
53 53
 		<?php esc_html_e('Comments are closed.', 'lsx'); ?>
54 54
 	</div>
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 <?php endif; ?>
61 61
 
62
-<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
62
+<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
63 63
 	<section id="comments">
64 64
 		<div class="alert alert-warning">
65 65
 			<?php esc_html_e('Comments are closed.', 'lsx'); ?>
@@ -72,24 +72,24 @@  discard block
 block discarded – undo
72 72
 
73 73
 <?php
74 74
 	$commenter = wp_get_current_commenter();
75
-	$req = get_option( 'require_name_email' );
76
-	$aria_req = ( $req ? " aria-required='true'" : '' );
77
-	$html_req = ( $req ? " required='required'" : '' );
75
+	$req = get_option('require_name_email');
76
+	$aria_req = ($req ? " aria-required='true'" : '');
77
+	$html_req = ($req ? " required='required'" : '');
78 78
 	
79 79
 	$comment_form_args = array(
80
-		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="'. esc_html__( 'Comment', 'lsx' ) .'" id="comment" class="form-control" name="comment" cols="45" rows="8"'. $aria_req . $html_req .'></textarea></p>',
80
+		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
81 81
 		
82 82
 		'fields' => array(
83
-			'author' => '<p class="comment-form-author"><label for="author">'. esc_html__( 'Name', 'lsx' ) .'</label> ' .
84
-				( $req ? '<span class="required">*</span>' : '' ) .
85
-				'<input class="form-control" placeholder="'. esc_html__( 'Name', 'lsx' ) .'" id="author" name="author" type="text" value="'. esc_attr( $commenter['comment_author'] ) .'" size="30"'. $aria_req . $html_req .'></p>',
83
+			'author' => '<p class="comment-form-author"><label for="author">' . esc_html__('Name', 'lsx') . '</label> ' .
84
+				($req ? '<span class="required">*</span>' : '') .
85
+				'<input class="form-control" placeholder="' . esc_html__('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>',
86 86
 
87
-			'email' => '<p class="comment-form-email"><label for="email">'. esc_html__( 'Email', 'lsx' ) .'</label> ' .
88
-				( $req ? '<span class="required">*</span>' : '' ) .
89
-				'<input class="form-control" placeholder="'. esc_html__( 'Email', 'lsx' ) .'" id="email" name="email" type="text" value="'. esc_attr(  $commenter['comment_author_email'] ) .'" size="30"' . $aria_req . $html_req . '></p>',
87
+			'email' => '<p class="comment-form-email"><label for="email">' . esc_html__('Email', 'lsx') . '</label> ' .
88
+				($req ? '<span class="required">*</span>' : '') .
89
+				'<input class="form-control" placeholder="' . esc_html__('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>',
90 90
 
91
-			'url' => '<p class="comment-form-url"><label for="url">'. esc_html__( 'Website', 'lsx' ) .'</label>' .
92
-				'<input class="form-control" placeholder="'. esc_html__( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>'
91
+			'url' => '<p class="comment-form-url"><label for="url">' . esc_html__('Website', 'lsx') . '</label>' .
92
+				'<input class="form-control" placeholder="' . esc_html__('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>'
93 93
 		)
94 94
 	);
95 95
 ?>
Please login to merge, or discard this patch.
content-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after' => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after' => '</span>'
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
27
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
28 28
 
29 29
 	<?php lsx_entry_bottom(); ?>
30 30
 	
Please login to merge, or discard this patch.
content-portfolio-single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
 		<div class="col-sm-12">
19 19
 			<div class="entry-content">
20 20
 			
21
-				<?php if ( ! is_singular() ) {
21
+				<?php if ( ! is_singular()) {
22 22
 					the_excerpt();
23 23
 				} else {
24 24
 					the_content();
25 25
 
26
-					wp_link_pages( array(
26
+					wp_link_pages(array(
27 27
 						'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
28 28
 						'after' => '</div></div>',
29 29
 						'link_before' => '<span>',
30 30
 						'link_after' => '</span>'
31
-					) );
31
+					));
32 32
 				} ?>
33 33
 
34 34
 				<?php lsx_portfolio_gallery(); ?>
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 				<?php lsx_post_nav(); ?>	
37 37
 				
38 38
 				<?php  
39
-					if ( function_exists( 'sharing_display' ) ) {
40
-						sharing_display( '', true );
39
+					if (function_exists('sharing_display')) {
40
+						sharing_display('', true);
41 41
 					}
42 42
 					
43
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
+					if (class_exists('Jetpack_Likes')) {
44 44
 						$custom_likes = new Jetpack_Likes;
45
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
45
+						echo wp_kses_post($custom_likes->post_likes(''));
46 46
 					}
47 47
 				?>
48 48
 				
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		</div>
54 54
 	</div>
55 55
 		
56
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
56
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
57 57
 	
58 58
 	<?php lsx_entry_bottom(); ?>
59 59
 
Please login to merge, or discard this patch.
content-single.php 1 patch
Spacing   +16 added lines, -16 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,33 +39,33 @@  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() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (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 ( function_exists( 'sharing_display' ) ) {
63
-						sharing_display( '', true );
62
+					if (function_exists('sharing_display')) {
63
+						sharing_display('', true);
64 64
 					}
65 65
 
66
-					if ( class_exists( 'Jetpack_Likes' ) ) {
66
+					if (class_exists('Jetpack_Likes')) {
67 67
 						$custom_likes = new Jetpack_Likes;
68
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
68
+						echo wp_kses_post($custom_likes->post_likes(''));
69 69
 					}
70 70
 				?>
71 71
 			</div>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<?php
75 75
 			// If comments are open or we have at least one comment, load up the comment template
76
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
77
-				<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>
76
+			if (comments_open() || '0' != get_comments_number()) : ?>
77
+				<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>
78 78
 
79 79
 				<div class="collapse" id="comments-collapse">
80 80
 					<?php 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php endif; ?>
85 85
 	</footer><!-- .footer-meta -->
86 86
 	
87
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
87
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
88 88
 
89 89
 	<?php lsx_entry_bottom(); ?>
90 90
 
Please login to merge, or discard this patch.
content-post.php 1 patch
Spacing   +16 added lines, -16 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,33 +39,33 @@  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() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
57
+		<?php if (has_tag() || (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 ( function_exists( 'sharing_display' ) ) {
63
-						sharing_display( '', true );
62
+					if (function_exists('sharing_display')) {
63
+						sharing_display('', true);
64 64
 					}
65 65
 
66
-					if ( class_exists( 'Jetpack_Likes' ) ) {
66
+					if (class_exists('Jetpack_Likes')) {
67 67
 						$custom_likes = new Jetpack_Likes;
68
-						echo wp_kses_post( $custom_likes->post_likes( '' ) );
68
+						echo wp_kses_post($custom_likes->post_likes(''));
69 69
 					}
70 70
 				?>
71 71
 			</div>
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
 		<?php
75 75
 			// If comments are open or we have at least one comment, load up the comment template
76
-			if ( comments_open() || '0' != get_comments_number() ) : ?>
77
-				<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>
76
+			if (comments_open() || '0' != get_comments_number()) : ?>
77
+				<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>
78 78
 
79 79
 				<div class="collapse" id="comments-collapse">
80 80
 					<?php 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php endif; ?>
85 85
 	</footer><!-- .footer-meta -->
86 86
 	
87
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
87
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
88 88
 
89 89
 	<?php lsx_entry_bottom(); ?>
90 90
 
Please login to merge, or discard this patch.
inc/welcome.php 2 patches
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined( 'ABSPATH' ) ) {
3
+	return;
4
+}
5
+// Exit if accessed directly
3 6
 
4 7
 /**
5 8
  * Customize Swatch Control Class
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 
5
-if ( ! function_exists( 'lsx_activation_admin_notice' ) ) :
5
+if ( ! function_exists('lsx_activation_admin_notice')) :
6 6
 	/**
7 7
 	 * Adds an admin notice upon successful activation.
8 8
 	 *
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
 	function lsx_activation_admin_notice() {
13 13
 		global $pagenow;
14 14
 
15
-		if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) {
16
-			add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 );
15
+		if (is_admin() && 'themes.php' == $pagenow && isset($_GET['activated'])) {
16
+			add_action('admin_notices', 'lsx_welcome_admin_notice', 99);
17 17
 		}
18 18
 	}
19 19
 endif; // lsx_activation_admin_notice
20
-add_action( 'load-themes.php', 'lsx_activation_admin_notice' );
20
+add_action('load-themes.php', 'lsx_activation_admin_notice');
21 21
 
22 22
 
23
-if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) :
23
+if ( ! function_exists('lsx_welcome_admin_notice')) :
24 24
 	/**
25 25
 	 * Display an admin notice linking to the welcome screen.
26 26
 	 *
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 	function lsx_welcome_admin_notice() {
31 31
 		?>
32 32
 			<div class="updated notice is-dismissible">
33
-				<p><?php echo sprintf( esc_html__( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', '</a>' ); ?></p>
34
-				<p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e( 'Get started with LSX', 'lsx' ); ?></a></p>
33
+				<p><?php echo sprintf(esc_html__('Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx'), '<a href="' . esc_url(admin_url('themes.php?page=lsx-welcome')) . '">', '</a>'); ?></p>
34
+				<p><a href="<?php echo esc_url(admin_url('themes.php?page=lsx-welcome')); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e('Get started with LSX', 'lsx'); ?></a></p>
35 35
 			</div>
36 36
 		<?php
37 37
 	}
38 38
 endif; // lsx_welcome_admin_notice
39 39
 
40 40
 
41
-if ( ! function_exists( 'lsx_welcome_style' ) ) :
41
+if ( ! function_exists('lsx_welcome_style')) :
42 42
 	/**
43 43
 	 * Load welcome screen css.
44 44
 	 *
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 	 * @since 1.8.0
47 47
 	 * @package lsx
48 48
 	 */
49
-	function lsx_welcome_style( $hook_suffix ) {
50
-		if ( 'appearance_page_lsx-welcome' == $hook_suffix ) {
51
-			wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION );
49
+	function lsx_welcome_style($hook_suffix) {
50
+		if ('appearance_page_lsx-welcome' == $hook_suffix) {
51
+			wp_enqueue_style('lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION);
52 52
 		}
53 53
 	}
54 54
 endif; // lsx_welcome_style
55
-add_action( 'admin_enqueue_scripts', 'lsx_welcome_style' );
55
+add_action('admin_enqueue_scripts', 'lsx_welcome_style');
56 56
 
57 57
 
58
-if ( ! function_exists( 'lsx_welcome_register_menu' ) ) :
58
+if ( ! function_exists('lsx_welcome_register_menu')) :
59 59
 	/**
60 60
 	 * Creates the dashboard page.
61 61
 	 *
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 	 * @package lsx
64 64
 	 */
65 65
 	function lsx_welcome_register_menu() {
66
-		add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' );
66
+		add_theme_page('LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen');
67 67
 	}
68 68
 endif; // lsx_welcome_register_menu
69
-add_action( 'admin_menu', 'lsx_welcome_register_menu' );
69
+add_action('admin_menu', 'lsx_welcome_register_menu');
70 70
 
71 71
 
72
-if ( ! function_exists( 'lsx_welcome_screen' ) ) :
72
+if ( ! function_exists('lsx_welcome_screen')) :
73 73
 	/**
74 74
 	 * The welcome screen.
75 75
 	 *
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
 	 * @package lsx
78 78
 	 */
79 79
 	function lsx_welcome_screen() {
80
-		require_once( ABSPATH . 'wp-load.php' );
81
-		require_once( ABSPATH . 'wp-admin/admin.php' );
82
-		require_once( ABSPATH . 'wp-admin/admin-header.php' );
80
+		require_once(ABSPATH . 'wp-load.php');
81
+		require_once(ABSPATH . 'wp-admin/admin.php');
82
+		require_once(ABSPATH . 'wp-admin/admin-header.php');
83 83
 		?>
84 84
 		<div class="wrap about-wrap">
85 85
 			<?php
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
 			 * @hooked lsx_welcome_enhance - 20
91 91
 			 * @hooked lsx_welcome_footer  - 30
92 92
 			 */
93
-			do_action( 'lsx_welcome' ); ?>
93
+			do_action('lsx_welcome'); ?>
94 94
 		</div>
95 95
 		<?php
96 96
 	}
97 97
 endif; // lsx_welcome_screen
98 98
 
99 99
 
100
-if ( ! function_exists( 'lsx_welcome_header' ) ) :
100
+if ( ! function_exists('lsx_welcome_header')) :
101 101
 	/**
102 102
 	 * Welcome screen intro
103 103
 	 *
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
 	 * @package lsx
106 106
 	 */
107 107
 	function lsx_welcome_header() {
108
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-header.php' );
108
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-header.php');
109 109
 	}
110 110
 endif; // lsx_welcome_header
111
-add_action( 'lsx_welcome', 'lsx_welcome_header', 10 );
111
+add_action('lsx_welcome', 'lsx_welcome_header', 10);
112 112
 
113 113
 
114
-if ( ! function_exists( 'lsx_welcome_enhance' ) ) :
114
+if ( ! function_exists('lsx_welcome_enhance')) :
115 115
 	/**
116 116
 	 * Welcome screen enhance section
117 117
 	 *
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
 	 * @package lsx
120 120
 	 */
121 121
 	function lsx_welcome_enhance() {
122
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php' );
122
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php');
123 123
 	}
124 124
 endif; // lsx_welcome_enhance
125
-add_action( 'lsx_welcome', 'lsx_welcome_enhance', 20 );
125
+add_action('lsx_welcome', 'lsx_welcome_enhance', 20);
126 126
 
127 127
 
128
-if ( ! function_exists( 'lsx_welcome_footer' ) ) :
128
+if ( ! function_exists('lsx_welcome_footer')) :
129 129
 	/**
130 130
 	 * Welcome screen contribute section
131 131
 	 *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @package lsx
134 134
 	 */
135 135
 	function lsx_welcome_footer() {
136
-		require_once( get_template_directory() . '/inc/admin/welcome-screen/component-footer.php' );
136
+		require_once(get_template_directory() . '/inc/admin/welcome-screen/component-footer.php');
137 137
 	}
138 138
 endif; // lsx_welcome_footer
139
-add_action( 'lsx_welcome', 'lsx_welcome_footer', 30 );
139
+add_action('lsx_welcome', 'lsx_welcome_footer', 30);
Please login to merge, or discard this patch.