Passed
Push — master ( 86dfed...3aa001 )
by Warwick
05:45
created
includes/sensei/class-lsx-sensei-course.php 1 patch
Indentation   +137 added lines, -137 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit; // Exit if accessed directly.
10
+     exit; // Exit if accessed directly.
11 11
 }
12 12
 
13 13
 /**
@@ -15,154 +15,154 @@  discard block
 block discarded – undo
15 15
  */
16 16
 class LSX_Sensei_Course {
17 17
 
18
-	/**
19
-	 * Instance of class.
20
-	 *
21
-	 * @var self
22
-	 */
23
-	private static $instance;
24
-
25
-	/**
26
-	 * Constructor.
27
-	 */
28
-	public function __construct() {
29
-		add_action( 'init', array( $this, 'init' ) );
30
-	} // End __construct()
31
-
32
-	/**
33
-	 * Fetches an instance of the class.
34
-	 *
35
-	 * @return self
36
-	 */
37
-	public static function instance() {
38
-		if ( ! self::$instance ) {
39
-			self::$instance = new self();
40
-		}
41
-		return self::$instance;
42
-	}
43
-
44
-	/**
45
-	 * Run our changes.
46
-	 */
47
-	public function init() {
48
-		global $sensei;
49
-		global $woothemes_sensei;
50
-
51
-		// Switching the course filters and the headers around.
52
-		remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 10, 0 );
53
-		remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_sorting' ) );
54
-		remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_filters' ) );
55
-		add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 11, 0 );
56
-		add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_sorting' ), 12 );
57
-		add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_filters' ), 12 );
58
-
59
-		// First add the thumbnail.
60
-		add_action( 'sensei_course_content_inside_before', array( $this, 'get_course_thumbnail' ), 1 );
61
-
62
-		// This is for our wrapper, we run it on 2, after the thumbnail we added.
63
-		add_action( 'sensei_course_content_inside_before', array( $this, 'course_body_div_open' ), 1 );
64
-		add_action( 'sensei_course_content_inside_after', array( $this, 'course_body_div_close' ), 50 );
65
-
66
-		// This is for our wrapper, we run it on 2, after the thumbnail we added.
67
-		add_action( 'sensei_course_content_inside_before', array( $this, 'course_body_div_results_open' ), 20 );
68
-		add_action( 'sensei_course_content_inside_after', array( $this, 'course_body_div_results_close' ), 49 );
69
-
70
-		add_action( 'sensei_single_course_content_inside_before', array( $this, 'display_course_amount' ), 20 );
71
-
72
-		// removes the course image above the content.
73
-		remove_action( 'sensei_course_content_inside_before', array( $woothemes_sensei->course, 'course_image' ), 30, 1 );
74
-		// add the course image to the left of the content.
75
-		add_action( 'lsx_sensei_course_content_inside_before', array( $woothemes_sensei->course, 'course_image' ), 30, 1 );
76
-
77
-		add_filter( 'attach_shortcode_hooks', 'lsx_attach_shortcode_hooks', 10, 1 );
78
-
79
-	}
80
-
81
-	/**
82
-	 * Gets the current courses thumbnail for content-course.php
83
-	 *
84
-	 * @return void
85
-	 */
86
-	public function get_course_thumbnail() {
87
-		?>
18
+     /**
19
+      * Instance of class.
20
+      *
21
+      * @var self
22
+      */
23
+     private static $instance;
24
+
25
+     /**
26
+      * Constructor.
27
+      */
28
+     public function __construct() {
29
+          add_action( 'init', array( $this, 'init' ) );
30
+     } // End __construct()
31
+
32
+     /**
33
+      * Fetches an instance of the class.
34
+      *
35
+      * @return self
36
+      */
37
+     public static function instance() {
38
+          if ( ! self::$instance ) {
39
+               self::$instance = new self();
40
+          }
41
+          return self::$instance;
42
+     }
43
+
44
+     /**
45
+      * Run our changes.
46
+      */
47
+     public function init() {
48
+          global $sensei;
49
+          global $woothemes_sensei;
50
+
51
+          // Switching the course filters and the headers around.
52
+          remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 10, 0 );
53
+          remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_sorting' ) );
54
+          remove_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_filters' ) );
55
+          add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 11, 0 );
56
+          add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_sorting' ), 12 );
57
+          add_action( 'sensei_archive_before_course_loop', array( 'Sensei_Course', 'course_archive_filters' ), 12 );
58
+
59
+          // First add the thumbnail.
60
+          add_action( 'sensei_course_content_inside_before', array( $this, 'get_course_thumbnail' ), 1 );
61
+
62
+          // This is for our wrapper, we run it on 2, after the thumbnail we added.
63
+          add_action( 'sensei_course_content_inside_before', array( $this, 'course_body_div_open' ), 1 );
64
+          add_action( 'sensei_course_content_inside_after', array( $this, 'course_body_div_close' ), 50 );
65
+
66
+          // This is for our wrapper, we run it on 2, after the thumbnail we added.
67
+          add_action( 'sensei_course_content_inside_before', array( $this, 'course_body_div_results_open' ), 20 );
68
+          add_action( 'sensei_course_content_inside_after', array( $this, 'course_body_div_results_close' ), 49 );
69
+
70
+          add_action( 'sensei_single_course_content_inside_before', array( $this, 'display_course_amount' ), 20 );
71
+
72
+          // removes the course image above the content.
73
+          remove_action( 'sensei_course_content_inside_before', array( $woothemes_sensei->course, 'course_image' ), 30, 1 );
74
+          // add the course image to the left of the content.
75
+          add_action( 'lsx_sensei_course_content_inside_before', array( $woothemes_sensei->course, 'course_image' ), 30, 1 );
76
+
77
+          add_filter( 'attach_shortcode_hooks', 'lsx_attach_shortcode_hooks', 10, 1 );
78
+
79
+     }
80
+
81
+     /**
82
+      * Gets the current courses thumbnail for content-course.php
83
+      *
84
+      * @return void
85
+      */
86
+     public function get_course_thumbnail() {
87
+          ?>
88 88
 		<div class="course-thumbnail">
89 89
 			<?php do_action( 'lsx_sensei_course_content_inside_before', get_the_ID() ); ?>
90 90
 		</div>
91 91
 		<?php
92
-	}
93
-
94
-	/**
95
-	 * <div class="course-body"> for content-course.php
96
-	 *
97
-	 * @return void
98
-	 */
99
-	public function course_body_div_open() {
100
-		global $post, $current_user;
101
-		$is_user_taking_course    = Sensei_Utils::has_started_course( $post->ID, $current_user->ID );
102
-		$user_taking_course_class = '';
103
-		if ( ! empty( $is_user_taking_course ) ) {
104
-			$user_taking_course_class = 'currently-in-course';
105
-		}
106
-		?>
92
+     }
93
+
94
+     /**
95
+      * <div class="course-body"> for content-course.php
96
+      *
97
+      * @return void
98
+      */
99
+     public function course_body_div_open() {
100
+          global $post, $current_user;
101
+          $is_user_taking_course    = Sensei_Utils::has_started_course( $post->ID, $current_user->ID );
102
+          $user_taking_course_class = '';
103
+          if ( ! empty( $is_user_taking_course ) ) {
104
+               $user_taking_course_class = 'currently-in-course';
105
+          }
106
+          ?>
107 107
 		<div class="course-body <?php echo esc_html( $user_taking_course_class ); ?>">
108 108
 		<?php
109
-	}
110
-
111
-	/**
112
-	 * The closing </div> for <div class="course-body"> content-course.php
113
-	 *
114
-	 * @return void
115
-	 */
116
-	public function course_body_div_close() {
117
-		?>
109
+     }
110
+
111
+     /**
112
+      * The closing </div> for <div class="course-body"> content-course.php
113
+      *
114
+      * @return void
115
+      */
116
+     public function course_body_div_close() {
117
+          ?>
118 118
 		</div>
119 119
 		<?php
120
-	}
121
-
122
-	/**
123
-	 * <div class="course-details-info"> for content-course.php, just for the info after the meta
124
-	 *
125
-	 * @return void
126
-	 */
127
-	public function course_body_div_results_open() {
128
-		?>
120
+     }
121
+
122
+     /**
123
+      * <div class="course-details-info"> for content-course.php, just for the info after the meta
124
+      *
125
+      * @return void
126
+      */
127
+     public function course_body_div_results_open() {
128
+          ?>
129 129
 		<div class="course-details-info">
130 130
 		<?php
131
-	}
132
-
133
-	/**
134
-	 * The closing </div> for <div class="course-details-info"> content-course.php, just for the info after the meta
135
-	 *
136
-	 * @return void
137
-	 */
138
-	public function course_body_div_results_close() {
139
-		?>
131
+     }
132
+
133
+     /**
134
+      * The closing </div> for <div class="course-details-info"> content-course.php, just for the info after the meta
135
+      *
136
+      * @return void
137
+      */
138
+     public function course_body_div_results_close() {
139
+          ?>
140 140
 		</div>
141 141
 		<?php
142
-	}
143
-
144
-	/**
145
-	 * Display the course price on a single course.
146
-	 *
147
-	 * @return void
148
-	 */
149
-	public function display_course_amount() {
150
-		global $post, $current_user;
151
-		$is_user_taking_course   = Sensei_Course::is_user_enrolled( $post->ID, $current_user->ID );
152
-		$is_user_starting_course = Sensei_Utils::has_started_course( $post->ID, $current_user->ID );
153
-		$wc_post_id              = absint( get_post_meta( $post->ID, '_course_woocommerce_product', true ) );
154
-		$course_purchasable      = '';
155
-		if ( class_exists( 'Sensei_WC' ) ) {
156
-			$course_purchasable = Sensei_WC::is_course_purchasable( $post->ID );
157
-			$currency           = get_woocommerce_currency_symbol();
158
-			$product            = new WC_Product( $wc_post_id );
159
-			if ( ( ! empty( $product->get_price() ) ) && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
160
-				echo '<span class="course-product-price price"><span>' . esc_html( $currency ) . ' </span>' . sprintf( '%0.2f', esc_html( $product->get_price() ) ) . '</span>';
161
-			} elseif ( ( '' === $product->get_price() || 0 == $product->get_price() ) && $course_purchasable && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
162
-				echo '<span class="course-product-price price">' . wp_kses_post( 'Free!', 'lsx' ) . '</span>';
163
-			}
164
-		}
165
-	}
142
+     }
143
+
144
+     /**
145
+      * Display the course price on a single course.
146
+      *
147
+      * @return void
148
+      */
149
+     public function display_course_amount() {
150
+          global $post, $current_user;
151
+          $is_user_taking_course   = Sensei_Course::is_user_enrolled( $post->ID, $current_user->ID );
152
+          $is_user_starting_course = Sensei_Utils::has_started_course( $post->ID, $current_user->ID );
153
+          $wc_post_id              = absint( get_post_meta( $post->ID, '_course_woocommerce_product', true ) );
154
+          $course_purchasable      = '';
155
+          if ( class_exists( 'Sensei_WC' ) ) {
156
+               $course_purchasable = Sensei_WC::is_course_purchasable( $post->ID );
157
+               $currency           = get_woocommerce_currency_symbol();
158
+               $product            = new WC_Product( $wc_post_id );
159
+               if ( ( ! empty( $product->get_price() ) ) && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
160
+                    echo '<span class="course-product-price price"><span>' . esc_html( $currency ) . ' </span>' . sprintf( '%0.2f', esc_html( $product->get_price() ) ) . '</span>';
161
+               } elseif ( ( '' === $product->get_price() || 0 == $product->get_price() ) && $course_purchasable && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
162
+                    echo '<span class="course-product-price price">' . wp_kses_post( 'Free!', 'lsx' ) . '</span>';
163
+               }
164
+          }
165
+     }
166 166
 
167 167
 } // End Class
168 168
 new LSX_Sensei_Course();
Please login to merge, or discard this patch.
includes/gutenberg.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 /**
14 14
  * Enqueue Admin styles on admin area
15 15
  */
16 16
 function load_gutenberg_admin_style() {
17
-	wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/assets/css/admin/gutenberg-admin.css', false, '1.0.0' );
17
+     wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/assets/css/admin/gutenberg-admin.css', false, '1.0.0' );
18 18
 }
19 19
 add_action( 'admin_enqueue_scripts', 'load_gutenberg_admin_style' );
20 20
 
@@ -25,32 +25,32 @@  discard block
 block discarded – undo
25 25
  * Add custom class for Gutenberg Compatible template
26 26
  */
27 27
 function add_gutenberg_compatible_body_class( $classes ) {
28
-	// if ( ! is_home() && ! is_front_page() ).
29
-	if ( is_page() || is_page_template() || is_single() )
30
-		$classes[] = 'gutenberg-compatible-template';
28
+     // if ( ! is_home() && ! is_front_page() ).
29
+     if ( is_page() || is_page_template() || is_single() )
30
+          $classes[] = 'gutenberg-compatible-template';
31 31
 
32
-	// Add a class if the page is using the Content and Media block.
33
-	$post = get_post();
34
-	if ( function_exists( 'has_blocks' ) && isset( $post->post_content ) && has_blocks( $post->post_content ) && ( ! is_search() ) && ( ! is_archive() ) ) {
35
-		$blocks = parse_blocks( $post->post_content );
32
+     // Add a class if the page is using the Content and Media block.
33
+     $post = get_post();
34
+     if ( function_exists( 'has_blocks' ) && isset( $post->post_content ) && has_blocks( $post->post_content ) && ( ! is_search() ) && ( ! is_archive() ) ) {
35
+          $blocks = parse_blocks( $post->post_content );
36 36
 
37
-		if ( 'core/media-text' === $blocks[0]['blockName'] ) {
38
-			$classes[] = 'has-block-media-text';
39
-		}
40
-		if ( 'core/cover' === $blocks[0]['blockName'] ) {
41
-			$classes[] = 'has-block-cover';
42
-		}
43
-	}
44
-	return $classes;
37
+          if ( 'core/media-text' === $blocks[0]['blockName'] ) {
38
+               $classes[] = 'has-block-media-text';
39
+          }
40
+          if ( 'core/cover' === $blocks[0]['blockName'] ) {
41
+               $classes[] = 'has-block-cover';
42
+          }
43
+     }
44
+     return $classes;
45 45
 }
46 46
 
47 47
 add_filter( 'body_class', __NAMESPACE__ . '\add_gutenberg_compatible_body_class' );
48 48
 
49 49
 // Add custom class for templates that are using the Gutenberg editor.
50 50
 add_action('body_class', function( $classes ) {
51
-	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ( is_singular( 'post' ) || is_page() ) ) )
52
-		$classes[] = 'using-gutenberg';
53
-	return $classes;
51
+     if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ( is_singular( 'post' ) || is_page() ) ) )
52
+          $classes[] = 'using-gutenberg';
53
+     return $classes;
54 54
 });
55 55
 
56 56
 /**
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
  * @return void
60 60
  */
61 61
 function remove_lsx_page_banner_when_using_blocks() {
62
-	if ( function_exists( 'has_blocks' ) && ( ! class_exists( 'LSX_Banners' ) ) ) {
63
-		add_filter( 'lsx_page_banner_disable', '__return_true' );
64
-	}
62
+     if ( function_exists( 'has_blocks' ) && ( ! class_exists( 'LSX_Banners' ) ) ) {
63
+          add_filter( 'lsx_page_banner_disable', '__return_true' );
64
+     }
65 65
 }
66 66
 add_filter( 'init', 'remove_lsx_page_banner_when_using_blocks' );
Please login to merge, or discard this patch.
includes/nav-bootstrap-navwalker.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 if ( ! function_exists( 'lsx_wpml_nav_language_switcher_fix' ) ) :
15 15
 
16
-	/**
17
-	 * Add in our custom classes to the menus.
18
-	 *
19
-	 * @package    lsx
20
-	 * @subpackage navigation
21
-	 * @category   bootstrap-navigation-walker
22
-	 */
23
-	function lsx_wpml_nav_language_switcher_fix( $items, $args ) {
24
-		$items = str_replace( 'menu-item-language-current', 'menu-item-language-current dropdown', $items );
25
-		$items = str_replace( 'submenu-languages', 'submenu-languages dropdown-menu', $items );
26
-		return $items;
27
-	}
16
+     /**
17
+      * Add in our custom classes to the menus.
18
+      *
19
+      * @package    lsx
20
+      * @subpackage navigation
21
+      * @category   bootstrap-navigation-walker
22
+      */
23
+     function lsx_wpml_nav_language_switcher_fix( $items, $args ) {
24
+          $items = str_replace( 'menu-item-language-current', 'menu-item-language-current dropdown', $items );
25
+          $items = str_replace( 'submenu-languages', 'submenu-languages dropdown-menu', $items );
26
+          return $items;
27
+     }
28 28
 
29 29
 endif;
30 30
 
Please login to merge, or discard this patch.
includes/404-widget.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -7,39 +7,39 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! function_exists( 'lsx_widget_area_404_init' ) ) :
10
-	/**
11
-	 * Add Widget.
12
-	 *
13
-	 * @package    lsx
14
-	 * @subpackage 404-widget
15
-	 */
16
-	function lsx_widget_area_404_init() {
17
-		register_sidebar(
18
-			array(
19
-				'name'          => esc_html__( '404 page', 'lsx' ),
20
-				'id'            => 'sidebar-404',
21
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
22
-				'after_widget'  => '</aside>',
23
-				'before_title'  => '<h3 class="widget-title">',
24
-				'after_title'   => '</h3>',
25
-			)
26
-		);
27
-	}
10
+     /**
11
+      * Add Widget.
12
+      *
13
+      * @package    lsx
14
+      * @subpackage 404-widget
15
+      */
16
+     function lsx_widget_area_404_init() {
17
+          register_sidebar(
18
+               array(
19
+                    'name'          => esc_html__( '404 page', 'lsx' ),
20
+                    'id'            => 'sidebar-404',
21
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
22
+                    'after_widget'  => '</aside>',
23
+                    'before_title'  => '<h3 class="widget-title">',
24
+                    'after_title'   => '</h3>',
25
+               )
26
+          );
27
+     }
28 28
 
29 29
 endif;
30 30
 
31 31
 add_action( 'widgets_init', 'lsx_widget_area_404_init' );
32 32
 
33 33
 if ( ! function_exists( 'my_search_placeholder' ) ) :
34
-	/**
35
-	 * Placeholder.
36
-	 *
37
-	 * @package    lsx
38
-	 * @subpackage 404-widget
39
-	 */
40
-	function my_search_placeholder() {
41
-		return __( 'lsdev.biz', 'lsx' );
42
-	}
34
+     /**
35
+      * Placeholder.
36
+      *
37
+      * @package    lsx
38
+      * @subpackage 404-widget
39
+      */
40
+     function my_search_placeholder() {
41
+          return __( 'lsdev.biz', 'lsx' );
42
+     }
43 43
 
44 44
 endif;
45 45
 
Please login to merge, or discard this patch.
includes/popup-maker/class-lsx-popup-maker.php 1 patch
Indentation   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -7,70 +7,70 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! class_exists( 'LSX_Popup_Maker' ) ) :
14 14
 
15
-	/**
16
-	 * The LSX Popup_Maker integration class
17
-	 */
18
-	class LSX_Popup_Maker {
15
+     /**
16
+      * The LSX Popup_Maker integration class
17
+      */
18
+     class LSX_Popup_Maker {
19 19
 
20
-		/**
21
-		 * Holds class instance
22
-		 *
23
-		 * @since 1.0.0
24
-		 * @var      object
25
-		 */
26
-		protected static $instance = null;
20
+          /**
21
+           * Holds class instance
22
+           *
23
+           * @since 1.0.0
24
+           * @var      object
25
+           */
26
+          protected static $instance = null;
27 27
 
28
-		/**
29
-		 * Setup class.
30
-		 *
31
-		 * @since 1.0
32
-		 */
33
-		public function __construct() {
34
-			add_action( 'init', array( $this, 'remove_pop_up_controls_panel' ) );
35
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_popup_maker_scripts_add_styles' ) );
36
-		}
28
+          /**
29
+           * Setup class.
30
+           *
31
+           * @since 1.0
32
+           */
33
+          public function __construct() {
34
+               add_action( 'init', array( $this, 'remove_pop_up_controls_panel' ) );
35
+               add_action( 'wp_enqueue_scripts', array( $this, 'lsx_popup_maker_scripts_add_styles' ) );
36
+          }
37 37
 
38
-		/**
39
-		 * Return an instance of this class.
40
-		 *
41
-		 * @since 1.0.0
42
-		 * @return    object    A single instance of this class.
43
-		 */
44
-		public static function get_instance() {
45
-			// If the single instance hasn't been set, set it now.
46
-			if ( null === self::$instance ) {
47
-				self::$instance = new self();
48
-			}
49
-			return self::$instance;
50
-		}
38
+          /**
39
+           * Return an instance of this class.
40
+           *
41
+           * @since 1.0.0
42
+           * @return    object    A single instance of this class.
43
+           */
44
+          public static function get_instance() {
45
+               // If the single instance hasn't been set, set it now.
46
+               if ( null === self::$instance ) {
47
+                    self::$instance = new self();
48
+               }
49
+               return self::$instance;
50
+          }
51 51
 
52
-		/**
53
-		 * Popup_Maker enqueue styles.
54
-		 *
55
-		 * @package    lsx
56
-		 * @subpackage popup-maker
57
-		 */
58
-		public function lsx_popup_maker_scripts_add_styles() {
59
-			wp_enqueue_style( 'popup-maker-lsx', get_template_directory_uri() . '/assets/css/popup-maker/popup-maker.css', array( 'lsx_main' ), LSX_VERSION );
60
-		}
52
+          /**
53
+           * Popup_Maker enqueue styles.
54
+           *
55
+           * @package    lsx
56
+           * @subpackage popup-maker
57
+           */
58
+          public function lsx_popup_maker_scripts_add_styles() {
59
+               wp_enqueue_style( 'popup-maker-lsx', get_template_directory_uri() . '/assets/css/popup-maker/popup-maker.css', array( 'lsx_main' ), LSX_VERSION );
60
+          }
61 61
 
62
-		/**
63
-		 * This removes the PUM pop up controls box.
64
-		 *
65
-		 * @return void
66
-		 */
67
-		public function remove_pop_up_controls_panel() {
68
-			if ( is_admin() ) {
69
-				remove_action( 'enqueue_block_editor_assets', array( 'PUM_Site_Assets', 'register_styles' ) );
70
-				remove_action( 'enqueue_block_editor_assets', array( 'PUM_Admin_BlockEditor', 'register_editor_assets' ) );
71
-			}
72
-		}
73
-	}
62
+          /**
63
+           * This removes the PUM pop up controls box.
64
+           *
65
+           * @return void
66
+           */
67
+          public function remove_pop_up_controls_panel() {
68
+               if ( is_admin() ) {
69
+                    remove_action( 'enqueue_block_editor_assets', array( 'PUM_Site_Assets', 'register_styles' ) );
70
+                    remove_action( 'enqueue_block_editor_assets', array( 'PUM_Admin_BlockEditor', 'register_editor_assets' ) );
71
+               }
72
+          }
73
+     }
74 74
 
75 75
 endif;
76 76
 
Please login to merge, or discard this patch.
includes/widgets.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -7,62 +7,62 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! function_exists( 'lsx_widget_area_init' ) ) :
14 14
 
15
-	/**
16
-	 * Register widgetized area and update sidebar with default widgets.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage widgets
20
-	 */
21
-	function lsx_widget_area_init() {
22
-		register_sidebar(
23
-			array(
24
-				'name'          => esc_html__( 'Home', 'lsx' ),
25
-				'id'            => 'sidebar-home',
26
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
27
-				'after_widget'  => '</aside>',
28
-				'before_title'  => '<h3 class="widget-title">',
29
-				'after_title'   => '</h3>',
30
-			)
31
-		);
15
+     /**
16
+      * Register widgetized area and update sidebar with default widgets.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage widgets
20
+      */
21
+     function lsx_widget_area_init() {
22
+          register_sidebar(
23
+               array(
24
+                    'name'          => esc_html__( 'Home', 'lsx' ),
25
+                    'id'            => 'sidebar-home',
26
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
27
+                    'after_widget'  => '</aside>',
28
+                    'before_title'  => '<h3 class="widget-title">',
29
+                    'after_title'   => '</h3>',
30
+               )
31
+          );
32 32
 
33
-		register_sidebar(
34
-			array(
35
-				'name'          => esc_html__( 'Sidebar', 'lsx' ),
36
-				'id'            => 'sidebar-1',
37
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
38
-				'after_widget'  => '</aside>',
39
-				'before_title'  => '<h3 class="widget-title">',
40
-				'after_title'   => '</h3>',
41
-			)
42
-		);
33
+          register_sidebar(
34
+               array(
35
+                    'name'          => esc_html__( 'Sidebar', 'lsx' ),
36
+                    'id'            => 'sidebar-1',
37
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
38
+                    'after_widget'  => '</aside>',
39
+                    'before_title'  => '<h3 class="widget-title">',
40
+                    'after_title'   => '</h3>',
41
+               )
42
+          );
43 43
 
44
-		register_sidebar(
45
-			array(
46
-				'name'          => esc_html__( 'Footer', 'lsx' ),
47
-				'id'            => 'sidebar-footer',
48
-				'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
49
-				'after_widget'  => '</aside></div>',
50
-				'before_title'  => '<h3 class="widget-title">',
51
-				'after_title'   => '</h3>',
52
-			)
53
-		);
44
+          register_sidebar(
45
+               array(
46
+                    'name'          => esc_html__( 'Footer', 'lsx' ),
47
+                    'id'            => 'sidebar-footer',
48
+                    'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
49
+                    'after_widget'  => '</aside></div>',
50
+                    'before_title'  => '<h3 class="widget-title">',
51
+                    'after_title'   => '</h3>',
52
+               )
53
+          );
54 54
 
55
-		register_sidebar(
56
-			array(
57
-				'name'          => esc_html__( 'Footer Call to Action', 'lsx' ),
58
-				'id'            => 'sidebar-footer-cta',
59
-				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
60
-				'after_widget'  => '</aside>',
61
-				'before_title'  => '<h3 class="widget-title">',
62
-				'after_title'   => '</h3>',
63
-			)
64
-		);
65
-	}
55
+          register_sidebar(
56
+               array(
57
+                    'name'          => esc_html__( 'Footer Call to Action', 'lsx' ),
58
+                    'id'            => 'sidebar-footer-cta',
59
+                    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
60
+                    'after_widget'  => '</aside>',
61
+                    'before_title'  => '<h3 class="widget-title">',
62
+                    'after_title'   => '</h3>',
63
+               )
64
+          );
65
+     }
66 66
 
67 67
 endif;
68 68
 
@@ -70,24 +70,24 @@  discard block
 block discarded – undo
70 70
 
71 71
 if ( ! function_exists( 'lsx_sidebar_footer_params' ) ) :
72 72
 
73
-	/**
74
-	 * Register widgetized area and update sidebar with default widgets.
75
-	 *
76
-	 * @package    lsx
77
-	 * @subpackage widgets
78
-	 * @return $params
79
-	 */
80
-	function lsx_sidebar_footer_params( $params ) {
81
-		$sidebar_id = $params[0]['id'];
73
+     /**
74
+      * Register widgetized area and update sidebar with default widgets.
75
+      *
76
+      * @package    lsx
77
+      * @subpackage widgets
78
+      * @return $params
79
+      */
80
+     function lsx_sidebar_footer_params( $params ) {
81
+          $sidebar_id = $params[0]['id'];
82 82
 
83
-		if ( 'sidebar-footer' === $sidebar_id ) {
84
-			$total_widgets              = wp_get_sidebars_widgets();
85
-			$sidebar_widgets            = count( $total_widgets[ $sidebar_id ] );
86
-			$params[0]['before_widget'] = str_replace( 'class="styler', 'class="col-md-' . floor( 12 / $sidebar_widgets ), $params[0]['before_widget'] );
87
-		}
83
+          if ( 'sidebar-footer' === $sidebar_id ) {
84
+               $total_widgets              = wp_get_sidebars_widgets();
85
+               $sidebar_widgets            = count( $total_widgets[ $sidebar_id ] );
86
+               $params[0]['before_widget'] = str_replace( 'class="styler', 'class="col-md-' . floor( 12 / $sidebar_widgets ), $params[0]['before_widget'] );
87
+          }
88 88
 
89
-		return $params;
90
-	}
89
+          return $params;
90
+     }
91 91
 
92 92
 endif;
93 93
 
Please login to merge, or discard this patch.
includes/sanitize.php 1 patch
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -7,112 +7,112 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! function_exists( 'lsx_sanitize_choices' ) ) :
14 14
 
15
-	/**
16
-	 * Sanitize a value from a list of allowed values.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage sanitize
20
-	 *
21
-	 * @param mixed $value      The value to sanitize.
22
-	 * @param mixed $setting    The setting for which the sanitizing is occurring.
23
-	 * @return mixed                The sanitized value.
24
-	 */
25
-	function lsx_sanitize_choices( $value, $setting ) {
26
-		if ( is_object( $setting ) ) {
27
-			$setting = $setting->id;
28
-		}
29
-
30
-		$choices = lsx_customizer_sanitize_get_choices( $setting );
31
-
32
-		if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) {
33
-			$allowed_choices = array_keys( $choices );
34
-
35
-			if ( ! in_array( $value, $allowed_choices ) ) {
36
-				$value = lsx_customizer_sanitize_get_default( $setting );
37
-			}
38
-
39
-			return $value;
40
-		} else {
41
-			return $choices;
42
-		}
43
-	}
15
+     /**
16
+      * Sanitize a value from a list of allowed values.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage sanitize
20
+      *
21
+      * @param mixed $value      The value to sanitize.
22
+      * @param mixed $setting    The setting for which the sanitizing is occurring.
23
+      * @return mixed                The sanitized value.
24
+      */
25
+     function lsx_sanitize_choices( $value, $setting ) {
26
+          if ( is_object( $setting ) ) {
27
+               $setting = $setting->id;
28
+          }
29
+
30
+          $choices = lsx_customizer_sanitize_get_choices( $setting );
31
+
32
+          if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) {
33
+               $allowed_choices = array_keys( $choices );
34
+
35
+               if ( ! in_array( $value, $allowed_choices ) ) {
36
+                    $value = lsx_customizer_sanitize_get_default( $setting );
37
+               }
38
+
39
+               return $value;
40
+          } else {
41
+               return $choices;
42
+          }
43
+     }
44 44
 
45 45
 endif;
46 46
 
47 47
 if ( ! function_exists( 'lsx_customizer_sanitize_get_choices' ) ) :
48 48
 
49
-	/**
50
-	 * Helper function to return the choices for a field.
51
-	 *
52
-	 * @package    lsx
53
-	 * @subpackage sanitize
54
-	 *
55
-	 * @param string
56
-	 * @return mixed $field
57
-	 */
58
-	function lsx_customizer_sanitize_get_choices( $id ) {
59
-		global $lsx_customizer;
49
+     /**
50
+      * Helper function to return the choices for a field.
51
+      *
52
+      * @package    lsx
53
+      * @subpackage sanitize
54
+      *
55
+      * @param string
56
+      * @return mixed $field
57
+      */
58
+     function lsx_customizer_sanitize_get_choices( $id ) {
59
+          global $lsx_customizer;
60 60
 
61
-		$can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
62
-		$field        = $lsx_customizer->get_control( $id );
61
+          $can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
62
+          $field        = $lsx_customizer->get_control( $id );
63 63
 
64
-		if ( ! isset( $field['choices'] ) ) {
65
-			return $can_validate ? new WP_Error( 'notexists', esc_html__( 'Choice doesn\'t exist', 'lsx' ) ) : false;
66
-		}
64
+          if ( ! isset( $field['choices'] ) ) {
65
+               return $can_validate ? new WP_Error( 'notexists', esc_html__( 'Choice doesn\'t exist', 'lsx' ) ) : false;
66
+          }
67 67
 
68
-		return $field['choices'];
69
-	}
68
+          return $field['choices'];
69
+     }
70 70
 
71 71
 endif;
72 72
 
73 73
 if ( ! function_exists( 'lsx_customizer_sanitize_get_default' ) ) :
74 74
 
75
-	/**
76
-	 * Helper function to return defaults.
77
-	 *
78
-	 * @package    lsx
79
-	 * @subpackage sanitize
80
-	 *
81
-	 * @param string
82
-	 * @return mixed $default
83
-	 */
84
-	function lsx_customizer_sanitize_get_default( $id ) {
85
-		global $lsx_customizer;
86
-		$setting = $lsx_customizer->get_setting( $id );
87
-
88
-		if ( isset( $setting['default'] ) ) {
89
-			return $setting['default'];
90
-		}
91
-
92
-		return false;
93
-	}
75
+     /**
76
+      * Helper function to return defaults.
77
+      *
78
+      * @package    lsx
79
+      * @subpackage sanitize
80
+      *
81
+      * @param string
82
+      * @return mixed $default
83
+      */
84
+     function lsx_customizer_sanitize_get_default( $id ) {
85
+          global $lsx_customizer;
86
+          $setting = $lsx_customizer->get_setting( $id );
87
+
88
+          if ( isset( $setting['default'] ) ) {
89
+               return $setting['default'];
90
+          }
91
+
92
+          return false;
93
+     }
94 94
 
95 95
 endif;
96 96
 
97 97
 if ( ! function_exists( 'lsx_sanitize_checkbox' ) ) :
98 98
 
99
-	/**
100
-	 * Sanitizes an single or multiple checkbox input.
101
-	 *
102
-	 * @package    lsx
103
-	 * @subpackage sanitize
104
-	 *
105
-	 * @param array $input
106
-	 * @return array $output
107
-	 */
108
-	function lsx_sanitize_checkbox( $input ) {
109
-		$can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
110
-
111
-		if ( ! is_bool( $input ) ) {
112
-			return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false;
113
-		}
114
-
115
-		return $input;
116
-	}
99
+     /**
100
+      * Sanitizes an single or multiple checkbox input.
101
+      *
102
+      * @package    lsx
103
+      * @subpackage sanitize
104
+      *
105
+      * @param array $input
106
+      * @return array $output
107
+      */
108
+     function lsx_sanitize_checkbox( $input ) {
109
+          $can_validate = method_exists( 'WP_Customize_Setting', 'validate' );
110
+
111
+          if ( ! is_bool( $input ) ) {
112
+               return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false;
113
+          }
114
+
115
+          return $input;
116
+     }
117 117
 
118 118
 endif;
Please login to merge, or discard this patch.
includes/yoast/class-lsx-yoast.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,59 +7,59 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! class_exists( 'LSX_Yoast' ) ) :
14 14
 
15
-	/**
16
-	 * The LSX Yoast integration class
17
-	 */
18
-	class LSX_Yoast {
15
+     /**
16
+      * The LSX Yoast integration class
17
+      */
18
+     class LSX_Yoast {
19 19
 
20
-		/**
21
-		 * Holds class instance
22
-		 *
23
-		 * @since 1.0.0
24
-		 * @var      object
25
-		 */
26
-		protected static $instance = null;
20
+          /**
21
+           * Holds class instance
22
+           *
23
+           * @since 1.0.0
24
+           * @var      object
25
+           */
26
+          protected static $instance = null;
27 27
 
28
-		/**
29
-		 * Setup class.
30
-		 *
31
-		 * @since 1.0
32
-		 */
33
-		public function __construct() {
28
+          /**
29
+           * Setup class.
30
+           *
31
+           * @since 1.0
32
+           */
33
+          public function __construct() {
34 34
 
35
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_yoast_scripts_add_styles' ) );
36
-		}
35
+               add_action( 'wp_enqueue_scripts', array( $this, 'lsx_yoast_scripts_add_styles' ) );
36
+          }
37 37
 
38
-		/**
39
-		 * Return an instance of this class.
40
-		 *
41
-		 * @since 1.0.0
42
-		 * @return    object    A single instance of this class.
43
-		 */
44
-		public static function get_instance() {
45
-			// If the single instance hasn't been set, set it now.
46
-			if ( null === self::$instance ) {
47
-				self::$instance = new self();
48
-			}
49
-			return self::$instance;
50
-		}
38
+          /**
39
+           * Return an instance of this class.
40
+           *
41
+           * @since 1.0.0
42
+           * @return    object    A single instance of this class.
43
+           */
44
+          public static function get_instance() {
45
+               // If the single instance hasn't been set, set it now.
46
+               if ( null === self::$instance ) {
47
+                    self::$instance = new self();
48
+               }
49
+               return self::$instance;
50
+          }
51 51
 
52
-		/**
53
-		 * Yoast enqueue styles.
54
-		 *
55
-		 * @package    lsx
56
-		 * @subpackage yoast
57
-		 */
58
-		public function lsx_yoast_scripts_add_styles() {
59
-			wp_enqueue_script( 'lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array( 'jquery' ), LSX_VERSION, true );
60
-			wp_enqueue_style( 'lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array( 'lsx_main' ), LSX_VERSION );
61
-		}
62
-	}
52
+          /**
53
+           * Yoast enqueue styles.
54
+           *
55
+           * @package    lsx
56
+           * @subpackage yoast
57
+           */
58
+          public function lsx_yoast_scripts_add_styles() {
59
+               wp_enqueue_script( 'lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array( 'jquery' ), LSX_VERSION, true );
60
+               wp_enqueue_style( 'lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array( 'lsx_main' ), LSX_VERSION );
61
+          }
62
+     }
63 63
 
64 64
 endif;
65 65
 
Please login to merge, or discard this patch.
includes/hooks.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 /**
14 14
  * This is the 1st action in the theme that fires after <head>.
15 15
  */
16 16
 function lsx_head_top() {
17
-	do_action( 'lsx_head_top' );
17
+     do_action( 'lsx_head_top' );
18 18
 }
19 19
 
20 20
 /**
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
  * @return void
24 24
  */
25 25
 function lsx_head_bottom() {
26
-	do_action( 'lsx_head_bottom' );
26
+     do_action( 'lsx_head_bottom' );
27 27
 }
28 28
 
29 29
 /**
30 30
  * The 3rd action thta fires after <body>
31 31
  */
32 32
 function lsx_body_top() {
33
-	do_action( 'lsx_body_top' );
33
+     do_action( 'lsx_body_top' );
34 34
 }
35 35
 
36 36
 /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  * $lsx_supports[] = 'header';
40 40
  */
41 41
 function lsx_header_before() {
42
-	do_action( 'lsx_header_before' );
42
+     do_action( 'lsx_header_before' );
43 43
 }
44 44
 
45 45
 /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  * @return void
49 49
  */
50 50
 function lsx_header_top() {
51
-	do_action( 'lsx_header_top' );
51
+     do_action( 'lsx_header_top' );
52 52
 }
53 53
 
54 54
 /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  * @return void
58 58
  */
59 59
 function lsx_nav_before() {
60
-	do_action( 'lsx_nav_before' );
60
+     do_action( 'lsx_nav_before' );
61 61
 }
62 62
 
63 63
 /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
  * @return void
67 67
  */
68 68
 function lsx_nav_after() {
69
-	do_action( 'lsx_nav_after' );
69
+     do_action( 'lsx_nav_after' );
70 70
 }
71 71
 
72 72
 /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
  * @return void
76 76
  */
77 77
 function lsx_header_bottom() {
78
-	do_action( 'lsx_header_bottom' );
78
+     do_action( 'lsx_header_bottom' );
79 79
 }
80 80
 
81 81
 /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
  * @return void
85 85
  */
86 86
 function lsx_header_after() {
87
-	do_action( 'lsx_header_after' );
87
+     do_action( 'lsx_header_after' );
88 88
 }
89 89
 
90 90
 /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
  * @return void
94 94
  */
95 95
 function lsx_header_wrap_after() {
96
-	do_action( 'lsx_header_wrap_after' );
96
+     do_action( 'lsx_header_wrap_after' );
97 97
 }
98 98
 
99 99
 /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
  * @return void
103 103
  */
104 104
 function lsx_header_wrap_container_top() {
105
-	do_action( 'lsx_header_wrap_container_top' );
105
+     do_action( 'lsx_header_wrap_container_top' );
106 106
 }
107 107
 
108 108
 /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  * @return void
112 112
  */
113 113
 function lsx_body_bottom() {
114
-	do_action( 'lsx_body_bottom' );
114
+     do_action( 'lsx_body_bottom' );
115 115
 }
116 116
 
117 117
 /**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
  * $lsx_supports[] = 'banner';
121 121
  */
122 122
 function lsx_banner_content() {
123
-	do_action( 'lsx_banner_content' );
123
+     do_action( 'lsx_banner_content' );
124 124
 }
125 125
 
126 126
 /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
  * @return void
130 130
  */
131 131
 function lsx_banner_inner_top() {
132
-	do_action( 'lsx_banner_inner_top' );
132
+     do_action( 'lsx_banner_inner_top' );
133 133
 }
134 134
 
135 135
 /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
  * @return void
139 139
  */
140 140
 function lsx_banner_inner_bottom() {
141
-	do_action( 'lsx_banner_inner_bottom' );
141
+     do_action( 'lsx_banner_inner_bottom' );
142 142
 }
143 143
 
144 144
 /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
  * $lsx_supports[] = 'global_header';
148 148
  */
149 149
 function lsx_global_header_inner_bottom() {
150
-	do_action( 'lsx_global_header_inner_bottom' );
150
+     do_action( 'lsx_global_header_inner_bottom' );
151 151
 }
152 152
 
153 153
 /**
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
  * $lsx_supports[] = 'content';
157 157
  */
158 158
 function lsx_content_wrap_before() {
159
-	do_action( 'lsx_content_wrap_before' );
159
+     do_action( 'lsx_content_wrap_before' );
160 160
 }
161 161
 
162 162
 /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
  * @return void
166 166
  */
167 167
 function lsx_content_wrap_after() {
168
-	do_action( 'lsx_content_wrap_after' );
168
+     do_action( 'lsx_content_wrap_after' );
169 169
 }
170 170
 
171 171
 /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @return void
175 175
  */
176 176
 function lsx_content_before() {
177
-	do_action( 'lsx_content_before' );
177
+     do_action( 'lsx_content_before' );
178 178
 }
179 179
 
180 180
 /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
  * @return void
184 184
  */
185 185
 function lsx_content_after() {
186
-	do_action( 'lsx_content_after' );
186
+     do_action( 'lsx_content_after' );
187 187
 }
188 188
 
189 189
 /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
  * @return void
193 193
  */
194 194
 function lsx_content_top() {
195
-	do_action( 'lsx_content_top' );
195
+     do_action( 'lsx_content_top' );
196 196
 }
197 197
 
198 198
 /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * @return void
202 202
  */
203 203
 function lsx_content_bottom() {
204
-	do_action( 'lsx_content_bottom' );
204
+     do_action( 'lsx_content_bottom' );
205 205
 }
206 206
 
207 207
 /**
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
  * @return void
211 211
  */
212 212
 function lsx_content_post_tags() {
213
-	do_action( 'lsx_content_post_tags' );
213
+     do_action( 'lsx_content_post_tags' );
214 214
 }
215 215
 
216 216
 /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
  * @return void
220 220
  */
221 221
 function lsx_content_sharing() {
222
-	do_action( 'lsx_content_sharing' );
222
+     do_action( 'lsx_content_sharing' );
223 223
 }
224 224
 
225 225
 /**
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
  * $lsx_supports[] = 'entry';
229 229
  */
230 230
 function lsx_entry_before() {
231
-	do_action( 'lsx_entry_before' );
231
+     do_action( 'lsx_entry_before' );
232 232
 }
233 233
 
234 234
 /**
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
  * @return void
238 238
  */
239 239
 function lsx_entry_after() {
240
-	do_action( 'lsx_entry_after' );
240
+     do_action( 'lsx_entry_after' );
241 241
 }
242 242
 
243 243
 /**
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
  * @return void
247 247
  */
248 248
 function lsx_entry_top() {
249
-	do_action( 'lsx_entry_top' );
249
+     do_action( 'lsx_entry_top' );
250 250
 }
251 251
 
252 252
 /**
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
  * @return void
256 256
  */
257 257
 function lsx_entry_inside_top() {
258
-	do_action( 'lsx_entry_inside_top' );
258
+     do_action( 'lsx_entry_inside_top' );
259 259
 }
260 260
 
261 261
 /**
@@ -264,14 +264,14 @@  discard block
 block discarded – undo
264 264
  * @return void
265 265
  */
266 266
 function lsx_entry_bottom() {
267
-	do_action( 'lsx_entry_bottom' );
267
+     do_action( 'lsx_entry_bottom' );
268 268
 }
269 269
 
270 270
 /**
271 271
  * Semantic <entry> hooks
272 272
  */
273 273
 function lsx_post_meta_top() {
274
-	do_action( 'lsx_post_meta_top' );
274
+     do_action( 'lsx_post_meta_top' );
275 275
 }
276 276
 
277 277
 /**
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * $lsx_supports[] = 'entry';
281 281
  */
282 282
 function lsx_widget_entry_before() {
283
-	do_action( 'lsx_widget_entry_before' );
283
+     do_action( 'lsx_widget_entry_before' );
284 284
 }
285 285
 
286 286
 /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
  * @return void
290 290
  */
291 291
 function lsx_widget_entry_after() {
292
-	do_action( 'lsx_widget_entry_after' );
292
+     do_action( 'lsx_widget_entry_after' );
293 293
 }
294 294
 
295 295
 /**
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
  * @return void
299 299
  */
300 300
 function lsx_widget_entry_top() {
301
-	do_action( 'lsx_widget_entry_top' );
301
+     do_action( 'lsx_widget_entry_top' );
302 302
 }
303 303
 
304 304
 /**
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
  * @return void
308 308
  */
309 309
 function lsx_widget_entry_bottom() {
310
-	do_action( 'lsx_widget_entry_bottom' );
310
+     do_action( 'lsx_widget_entry_bottom' );
311 311
 }
312 312
 
313 313
 /**
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
  * @return void
317 317
  */
318 318
 function lsx_widget_entry_content_top() {
319
-	do_action( 'lsx_widget_entry_content_top' );
319
+     do_action( 'lsx_widget_entry_content_top' );
320 320
 }
321 321
 
322 322
 /**
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
  * @return void
326 326
  */
327 327
 function lsx_widget_entry_content_bottom() {
328
-	do_action( 'lsx_widget_entry_content_bottom' );
328
+     do_action( 'lsx_widget_entry_content_bottom' );
329 329
 }
330 330
 
331 331
 /**
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
  * $lsx_supports[] = 'comments';
335 335
  */
336 336
 function lsx_comments_before() {
337
-	do_action( 'lsx_comments_before' );
337
+     do_action( 'lsx_comments_before' );
338 338
 }
339 339
 
340 340
 /**
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
  * @return void
344 344
  */
345 345
 function lsx_comments_after() {
346
-	do_action( 'lsx_comments_after' );
346
+     do_action( 'lsx_comments_after' );
347 347
 }
348 348
 
349 349
 /**
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
  * $lsx_supports[] = 'sidebar';
353 353
  */
354 354
 function lsx_sidebars_before() {
355
-	do_action( 'lsx_sidebars_before' );
355
+     do_action( 'lsx_sidebars_before' );
356 356
 }
357 357
 
358 358
 /**
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
  * @return void
362 362
  */
363 363
 function lsx_sidebars_after() {
364
-	do_action( 'lsx_sidebars_after' );
364
+     do_action( 'lsx_sidebars_after' );
365 365
 }
366 366
 
367 367
 /**
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
  * @return void
371 371
  */
372 372
 function lsx_sidebar_top() {
373
-	do_action( 'lsx_sidebar_top' );
373
+     do_action( 'lsx_sidebar_top' );
374 374
 }
375 375
 
376 376
 /**
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
  * @return void
380 380
  */
381 381
 function lsx_sidebar_bottom() {
382
-	do_action( 'lsx_sidebar_bottom' );
382
+     do_action( 'lsx_sidebar_bottom' );
383 383
 }
384 384
 
385 385
 /**
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
  * $lsx_supports[] = 'footer';
389 389
  */
390 390
 function lsx_footer_before() {
391
-	do_action( 'lsx_footer_before' );
391
+     do_action( 'lsx_footer_before' );
392 392
 }
393 393
 
394 394
 /**
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
  * @return void
398 398
  */
399 399
 function lsx_footer_after() {
400
-	do_action( 'lsx_footer_after' );
400
+     do_action( 'lsx_footer_after' );
401 401
 }
402 402
 
403 403
 /**
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
  * @return void
407 407
  */
408 408
 function lsx_footer_top() {
409
-	do_action( 'lsx_footer_top' );
409
+     do_action( 'lsx_footer_top' );
410 410
 }
411 411
 
412 412
 /**
@@ -415,5 +415,5 @@  discard block
 block discarded – undo
415 415
  * @return void
416 416
  */
417 417
 function lsx_footer_bottom() {
418
-	do_action( 'lsx_footer_bottom' );
418
+     do_action( 'lsx_footer_bottom' );
419 419
 }
Please login to merge, or discard this patch.