Completed
Push — master ( ca774b...8af728 )
by Fernando
02:59
created
inc/admin/welcome-screen/component-enhance.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,28 +10,28 @@  discard block
 block discarded – undo
10 10
 <div class="row">
11 11
 	<div class="col-md-12">
12 12
 		<div class="box enhance">
13
-			<h2><?php esc_html_e( 'Enhance LSX', 'lsx' ); ?></h2>
14
-			<p><?php esc_html_e( 'Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx' ); ?></p>
13
+			<h2><?php esc_html_e('Enhance LSX', 'lsx'); ?></h2>
14
+			<p><?php esc_html_e('Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx'); ?></p>
15 15
 
16 16
 			<div class="row">
17 17
 				<div class="col-md-4">
18 18
 					<div class="box-clean">
19
-						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Currencies', 'lsx' ); ?> - <span class="price">$59.00</span></a>
20
-						<p><?php esc_html_e( 'The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx' ); ?></p>
19
+						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Currencies', 'lsx'); ?> - <span class="price">$59.00</span></a>
20
+						<p><?php esc_html_e('The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx'); ?></p>
21 21
 					</div>
22 22
 				</div>
23 23
 
24 24
 				<div class="col-md-4">
25 25
 					<div class="box-clean">
26
-						<a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e( 'Banners', 'lsx' ); ?> - <span class="price">$49.00</span></a>
27
-						<p><?php esc_html_e( 'The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx' ); ?></p>
26
+						<a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e('Banners', 'lsx'); ?> - <span class="price">$49.00</span></a>
27
+						<p><?php esc_html_e('The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx'); ?></p>
28 28
 					</div>
29 29
 				</div>
30 30
 
31 31
 				<div class="col-md-4">
32 32
 					<div class="box-clean">
33
-						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Testimonials', 'lsx' ); ?> - <span class="price">$29.00</span></a>
34
-						<p><?php esc_html_e( 'The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx' ); ?></p>
33
+						<a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Testimonials', 'lsx'); ?> - <span class="price">$29.00</span></a>
34
+						<p><?php esc_html_e('The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx'); ?></p>
35 35
 					</div>
36 36
 				</div>
37 37
 			</div>
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
 			<div class="row">
40 40
 				<div class="col-md-4">
41 41
 					<div class="box-clean">
42
-						<a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e( 'Team', 'lsx' ); ?> - <span class="price">$29.00</span></a>
43
-						<p><?php esc_html_e( 'The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx' ); ?></p>
42
+						<a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e('Team', 'lsx'); ?> - <span class="price">$29.00</span></a>
43
+						<p><?php esc_html_e('The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx'); ?></p>
44 44
 					</div>
45 45
 				</div>
46 46
 
47 47
 				<div class="col-md-4">
48 48
 					<div class="box-clean">
49
-						<a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e( 'Mega Menus', 'lsx' ); ?> - <span class="price">$39.00</span></a>
50
-						<p><?php esc_html_e( 'Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx' ); ?></p>
49
+						<a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e('Mega Menus', 'lsx'); ?> - <span class="price">$39.00</span></a>
50
+						<p><?php esc_html_e('Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx'); ?></p>
51 51
 					</div>
52 52
 				</div>
53 53
 
54 54
 				<div class="col-md-4">
55 55
 					<div class="box-clean">
56
-						<a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e( 'Login', 'lsx' ); ?> - <span class="price">$59.00</span></a>
57
-						<p><?php esc_html_e( 'The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx' ); ?></p>
56
+						<a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e('Login', 'lsx'); ?> - <span class="price">$59.00</span></a>
57
+						<p><?php esc_html_e('The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx'); ?></p>
58 58
 					</div>
59 59
 				</div>
60 60
 			</div>
Please login to merge, or discard this patch.
inc/sensei.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 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
 
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' ) && $query->is_main_query() ) {
140
-		wp_redirect( home_url() . '/courses-overview' );
138
+function lsx_sensei_redirect_to_home($query) {
139
+	if ( ! is_admin() && is_post_type_archive('lesson') && $query->is_main_query()) {
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.