Passed
Push — master ( 75e191...a30d07 )
by Virginia
03:55
created
includes/scripts.php 2 patches
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@  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_scripts' ) ) :
14 14
 
15
-	/**
16
-	 * Enqueue scripts, fonts and styles.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage scripts
20
-	 */
21
-	function lsx_scripts() {
22
-		lsx_scripts_add_styles();
23
-		lsx_scripts_add_scripts();
24
-	}
15
+     /**
16
+      * Enqueue scripts, fonts and styles.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage scripts
20
+      */
21
+     function lsx_scripts() {
22
+          lsx_scripts_add_styles();
23
+          lsx_scripts_add_scripts();
24
+     }
25 25
 
26 26
 endif;
27 27
 
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 
30 30
 if ( ! function_exists( 'lsx_admin_scripts' ) ) :
31 31
 
32
-	/**
33
-	 * Enqueue scripts (admin).
34
-	 *
35
-	 * @package    lsx
36
-	 * @subpackage scripts
37
-	 */
38
-	function lsx_admin_scripts() {
39
-		wp_enqueue_script( 'lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array( 'jquery' ), LSX_VERSION, true );
40
-	}
32
+     /**
33
+      * Enqueue scripts (admin).
34
+      *
35
+      * @package    lsx
36
+      * @subpackage scripts
37
+      */
38
+     function lsx_admin_scripts() {
39
+          wp_enqueue_script( 'lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array( 'jquery' ), LSX_VERSION, true );
40
+     }
41 41
 
42 42
 endif;
43 43
 
@@ -45,84 +45,84 @@  discard block
 block discarded – undo
45 45
 
46 46
 if ( ! function_exists( 'lsx_scripts_add_styles' ) ) :
47 47
 
48
-	/**
49
-	 * Enqueue styles.
50
-	 *
51
-	 * @package    lsx
52
-	 * @subpackage scripts
53
-	 */
54
-	function lsx_scripts_add_styles() {
55
-		wp_enqueue_style( 'lsx_fonts', get_template_directory_uri() . '/assets/css/lsx-fonts.css', array(), LSX_VERSION );
48
+     /**
49
+      * Enqueue styles.
50
+      *
51
+      * @package    lsx
52
+      * @subpackage scripts
53
+      */
54
+     function lsx_scripts_add_styles() {
55
+          wp_enqueue_style( 'lsx_fonts', get_template_directory_uri() . '/assets/css/lsx-fonts.css', array(), LSX_VERSION );
56 56
 
57
-		wp_register_style( 'fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION );
58
-		wp_style_add_data( 'fontawesome', 'rtl', 'replace' );
57
+          wp_register_style( 'fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION );
58
+          wp_style_add_data( 'fontawesome', 'rtl', 'replace' );
59 59
 
60
-		wp_register_style( 'bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION );
61
-		wp_style_add_data( 'bootstrap', 'rtl', 'replace' );
60
+          wp_register_style( 'bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION );
61
+          wp_style_add_data( 'bootstrap', 'rtl', 'replace' );
62 62
 
63
-		wp_enqueue_style( 'lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array( 'lsx_fonts', 'fontawesome', 'bootstrap'/*, 'slick'*/ ), LSX_VERSION );
64
-		wp_enqueue_style( 'lsx_gutenberg', get_template_directory_uri() . '/assets/css/gutenberg.css', array( 'lsx_main' ), LSX_VERSION );
63
+          wp_enqueue_style( 'lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array( 'lsx_fonts', 'fontawesome', 'bootstrap'/*, 'slick'*/ ), LSX_VERSION );
64
+          wp_enqueue_style( 'lsx_gutenberg', get_template_directory_uri() . '/assets/css/gutenberg.css', array( 'lsx_main' ), LSX_VERSION );
65 65
 
66
-		wp_style_add_data( 'lsx_main', 'rtl', 'replace' );
67
-	}
66
+          wp_style_add_data( 'lsx_main', 'rtl', 'replace' );
67
+     }
68 68
 
69 69
 endif;
70 70
 
71 71
 if ( ! function_exists( 'lsx_scripts_add_scripts' ) ) :
72 72
 
73
-	/**
74
-	 * Enqueue scripts.
75
-	 *
76
-	 * @package    lsx
77
-	 * @subpackage scripts
78
-	 */
79
-	function lsx_scripts_add_scripts() {
80
-		if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
81
-			wp_enqueue_script( 'comment-reply' );
82
-		}
83
-
84
-		wp_enqueue_script( 'platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true );
85
-		wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array( 'jquery' ), LSX_VERSION, true );
86
-
87
-		wp_enqueue_script( 'imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array( 'masonry' ), LSX_VERSION, true );
88
-		wp_enqueue_script( 'scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array( 'jquery' ), LSX_VERSION, true );
89
-		wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array( 'jquery' ), LSX_VERSION, true );
90
-		wp_enqueue_script( 'slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array( 'jquery', 'slick' ), LSX_VERSION, true );
91
-		wp_enqueue_script( 'picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true );
92
-
93
-		if ( defined( 'SCRIPT_DEBUG' ) ) {
94
-			$prefix = 'src/';
95
-			$suffix = '';
96
-		} else {
97
-			$prefix = '';
98
-			$suffix = '.min';
99
-		}
100
-		wp_enqueue_script( 'lsx_script', get_template_directory_uri() . '/assets/js/' . $prefix . 'lsx' . $suffix . '.js', array( 'jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill' ), LSX_VERSION, true );
101
-
102
-		$param_array = array(
103
-			'columns'            => apply_filters( 'lsx_archive_column_number', 3 ),
104
-			'stickyMenuSelector' => apply_filters( 'lsx_sticky_menu_selector', 'header.navbar' ),
105
-		);
106
-
107
-		wp_localize_script( 'lsx_script', 'lsx_params', $param_array );
108
-	}
73
+     /**
74
+      * Enqueue scripts.
75
+      *
76
+      * @package    lsx
77
+      * @subpackage scripts
78
+      */
79
+     function lsx_scripts_add_scripts() {
80
+          if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
81
+               wp_enqueue_script( 'comment-reply' );
82
+          }
83
+
84
+          wp_enqueue_script( 'platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true );
85
+          wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array( 'jquery' ), LSX_VERSION, true );
86
+
87
+          wp_enqueue_script( 'imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array( 'masonry' ), LSX_VERSION, true );
88
+          wp_enqueue_script( 'scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array( 'jquery' ), LSX_VERSION, true );
89
+          wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array( 'jquery' ), LSX_VERSION, true );
90
+          wp_enqueue_script( 'slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array( 'jquery', 'slick' ), LSX_VERSION, true );
91
+          wp_enqueue_script( 'picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true );
92
+
93
+          if ( defined( 'SCRIPT_DEBUG' ) ) {
94
+               $prefix = 'src/';
95
+               $suffix = '';
96
+          } else {
97
+               $prefix = '';
98
+               $suffix = '.min';
99
+          }
100
+          wp_enqueue_script( 'lsx_script', get_template_directory_uri() . '/assets/js/' . $prefix . 'lsx' . $suffix . '.js', array( 'jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill' ), LSX_VERSION, true );
101
+
102
+          $param_array = array(
103
+               'columns'            => apply_filters( 'lsx_archive_column_number', 3 ),
104
+               'stickyMenuSelector' => apply_filters( 'lsx_sticky_menu_selector', 'header.navbar' ),
105
+          );
106
+
107
+          wp_localize_script( 'lsx_script', 'lsx_params', $param_array );
108
+     }
109 109
 
110 110
 endif;
111 111
 
112 112
 if ( ! function_exists( 'lsx_scripts_child_theme' ) ) :
113 113
 
114
-	/**
115
-	 * Enqueue scripts and styles (for child theme).
116
-	 *
117
-	 * @package    lsx
118
-	 * @subpackage scripts
119
-	 */
120
-	function lsx_scripts_child_theme() {
121
-		if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/assets/css/custom.css' ) ) {
122
-			wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array( 'lsx_main' ), LSX_VERSION );
123
-			wp_style_add_data( 'child-css', 'rtl', 'replace' );
124
-		}
125
-	}
114
+     /**
115
+      * Enqueue scripts and styles (for child theme).
116
+      *
117
+      * @package    lsx
118
+      * @subpackage scripts
119
+      */
120
+     function lsx_scripts_child_theme() {
121
+          if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/assets/css/custom.css' ) ) {
122
+               wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array( 'lsx_main' ), LSX_VERSION );
123
+               wp_style_add_data( 'child-css', 'rtl', 'replace' );
124
+          }
125
+     }
126 126
 
127 127
 endif;
128 128
 
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage scripts
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_scripts' ) ) :
13
+if ( ! function_exists('lsx_scripts')) :
14 14
 
15 15
 	/**
16 16
 	 * Enqueue scripts, fonts and styles.
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
 endif;
27 27
 
28
-add_action( 'wp_enqueue_scripts', 'lsx_scripts', 5 );
28
+add_action('wp_enqueue_scripts', 'lsx_scripts', 5);
29 29
 
30
-if ( ! function_exists( 'lsx_admin_scripts' ) ) :
30
+if ( ! function_exists('lsx_admin_scripts')) :
31 31
 
32 32
 	/**
33 33
 	 * Enqueue scripts (admin).
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
 	 * @subpackage scripts
37 37
 	 */
38 38
 	function lsx_admin_scripts() {
39
-		wp_enqueue_script( 'lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array( 'jquery' ), LSX_VERSION, true );
39
+		wp_enqueue_script('lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array('jquery'), LSX_VERSION, true);
40 40
 	}
41 41
 
42 42
 endif;
43 43
 
44
-add_action( 'admin_enqueue_scripts', 'lsx_admin_scripts' );
44
+add_action('admin_enqueue_scripts', 'lsx_admin_scripts');
45 45
 
46
-if ( ! function_exists( 'lsx_scripts_add_styles' ) ) :
46
+if ( ! function_exists('lsx_scripts_add_styles')) :
47 47
 
48 48
 	/**
49 49
 	 * Enqueue styles.
@@ -52,23 +52,23 @@  discard block
 block discarded – undo
52 52
 	 * @subpackage scripts
53 53
 	 */
54 54
 	function lsx_scripts_add_styles() {
55
-		wp_enqueue_style( 'lsx_fonts', get_template_directory_uri() . '/assets/css/lsx-fonts.css', array(), LSX_VERSION );
55
+		wp_enqueue_style('lsx_fonts', get_template_directory_uri() . '/assets/css/lsx-fonts.css', array(), LSX_VERSION);
56 56
 
57
-		wp_register_style( 'fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION );
58
-		wp_style_add_data( 'fontawesome', 'rtl', 'replace' );
57
+		wp_register_style('fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION);
58
+		wp_style_add_data('fontawesome', 'rtl', 'replace');
59 59
 
60
-		wp_register_style( 'bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION );
61
-		wp_style_add_data( 'bootstrap', 'rtl', 'replace' );
60
+		wp_register_style('bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION);
61
+		wp_style_add_data('bootstrap', 'rtl', 'replace');
62 62
 
63
-		wp_enqueue_style( 'lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array( 'lsx_fonts', 'fontawesome', 'bootstrap'/*, 'slick'*/ ), LSX_VERSION );
64
-		wp_enqueue_style( 'lsx_gutenberg', get_template_directory_uri() . '/assets/css/gutenberg.css', array( 'lsx_main' ), LSX_VERSION );
63
+		wp_enqueue_style('lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array('lsx_fonts', 'fontawesome', 'bootstrap'/*, 'slick'*/), LSX_VERSION);
64
+		wp_enqueue_style('lsx_gutenberg', get_template_directory_uri() . '/assets/css/gutenberg.css', array('lsx_main'), LSX_VERSION);
65 65
 
66
-		wp_style_add_data( 'lsx_main', 'rtl', 'replace' );
66
+		wp_style_add_data('lsx_main', 'rtl', 'replace');
67 67
 	}
68 68
 
69 69
 endif;
70 70
 
71
-if ( ! function_exists( 'lsx_scripts_add_scripts' ) ) :
71
+if ( ! function_exists('lsx_scripts_add_scripts')) :
72 72
 
73 73
 	/**
74 74
 	 * Enqueue scripts.
@@ -77,39 +77,39 @@  discard block
 block discarded – undo
77 77
 	 * @subpackage scripts
78 78
 	 */
79 79
 	function lsx_scripts_add_scripts() {
80
-		if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
81
-			wp_enqueue_script( 'comment-reply' );
80
+		if (is_singular() && comments_open() && get_option('thread_comments')) {
81
+			wp_enqueue_script('comment-reply');
82 82
 		}
83 83
 
84
-		wp_enqueue_script( 'platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true );
85
-		wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array( 'jquery' ), LSX_VERSION, true );
84
+		wp_enqueue_script('platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true);
85
+		wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array('jquery'), LSX_VERSION, true);
86 86
 
87
-		wp_enqueue_script( 'imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array( 'masonry' ), LSX_VERSION, true );
88
-		wp_enqueue_script( 'scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array( 'jquery' ), LSX_VERSION, true );
89
-		wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array( 'jquery' ), LSX_VERSION, true );
90
-		wp_enqueue_script( 'slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array( 'jquery', 'slick' ), LSX_VERSION, true );
91
-		wp_enqueue_script( 'picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true );
87
+		wp_enqueue_script('imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array('masonry'), LSX_VERSION, true);
88
+		wp_enqueue_script('scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array('jquery'), LSX_VERSION, true);
89
+		wp_enqueue_script('slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array('jquery'), LSX_VERSION, true);
90
+		wp_enqueue_script('slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array('jquery', 'slick'), LSX_VERSION, true);
91
+		wp_enqueue_script('picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true);
92 92
 
93
-		if ( defined( 'SCRIPT_DEBUG' ) ) {
93
+		if (defined('SCRIPT_DEBUG')) {
94 94
 			$prefix = 'src/';
95 95
 			$suffix = '';
96 96
 		} else {
97 97
 			$prefix = '';
98 98
 			$suffix = '.min';
99 99
 		}
100
-		wp_enqueue_script( 'lsx_script', get_template_directory_uri() . '/assets/js/' . $prefix . 'lsx' . $suffix . '.js', array( 'jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill' ), LSX_VERSION, true );
100
+		wp_enqueue_script('lsx_script', get_template_directory_uri() . '/assets/js/' . $prefix . 'lsx' . $suffix . '.js', array('jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill'), LSX_VERSION, true);
101 101
 
102 102
 		$param_array = array(
103
-			'columns'            => apply_filters( 'lsx_archive_column_number', 3 ),
104
-			'stickyMenuSelector' => apply_filters( 'lsx_sticky_menu_selector', 'header.navbar' ),
103
+			'columns'            => apply_filters('lsx_archive_column_number', 3),
104
+			'stickyMenuSelector' => apply_filters('lsx_sticky_menu_selector', 'header.navbar'),
105 105
 		);
106 106
 
107
-		wp_localize_script( 'lsx_script', 'lsx_params', $param_array );
107
+		wp_localize_script('lsx_script', 'lsx_params', $param_array);
108 108
 	}
109 109
 
110 110
 endif;
111 111
 
112
-if ( ! function_exists( 'lsx_scripts_child_theme' ) ) :
112
+if ( ! function_exists('lsx_scripts_child_theme')) :
113 113
 
114 114
 	/**
115 115
 	 * Enqueue scripts and styles (for child theme).
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
 	 * @subpackage scripts
119 119
 	 */
120 120
 	function lsx_scripts_child_theme() {
121
-		if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/assets/css/custom.css' ) ) {
122
-			wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array( 'lsx_main' ), LSX_VERSION );
123
-			wp_style_add_data( 'child-css', 'rtl', 'replace' );
121
+		if (is_child_theme() && file_exists(get_stylesheet_directory() . '/assets/css/custom.css')) {
122
+			wp_enqueue_style('child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array('lsx_main'), LSX_VERSION);
123
+			wp_style_add_data('child-css', 'rtl', 'replace');
124 124
 		}
125 125
 	}
126 126
 
127 127
 endif;
128 128
 
129
-add_action( 'wp_enqueue_scripts', 'lsx_scripts_child_theme', 1999 );
129
+add_action('wp_enqueue_scripts', 'lsx_scripts_child_theme', 1999);
Please login to merge, or discard this patch.
includes/customizer.php 2 patches
Indentation   +192 added lines, -192 removed lines patch added patch discarded remove patch
@@ -7,115 +7,115 @@  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_customizer_layout_controls' ) ) :
14 14
 
15
-	/**
16
-	 * Returns an array of the layout panel.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage customizer
20
-	 *
21
-	 * @return $lsx_controls array()
22
-	 */
23
-	function lsx_customizer_layout_controls( $lsx_controls ) {
24
-		$lsx_controls['sections']['lsx-layout'] = array(
25
-			'title'       => esc_html__( 'Layout', 'lsx' ),
26
-			'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ),
27
-			'priority'    => 22,
28
-		);
29
-
30
-		$lsx_controls['settings']['lsx_header_layout'] = array(
31
-			'default'   => 'inline',
32
-			'type'      => 'theme_mod',
33
-			'transport' => 'postMessage',
34
-		);
35
-
36
-		$lsx_controls['fields']['lsx_header_layout'] = array(
37
-			'label'   => esc_html__( 'Header', 'lsx' ),
38
-			'section' => 'lsx-layout',
39
-			'control' => 'LSX_Customize_Header_Layout_Control',
40
-			'choices' => array(
41
-				'central',
42
-				'expanded',
43
-				'inline',
44
-			),
45
-		);
46
-
47
-		$lsx_controls['settings']['lsx_header_mobile_layout'] = array(
48
-			'default'   => 'navigation-bar',
49
-			'type'      => 'theme_mod',
50
-			'transport' => 'postMessage',
51
-		);
52
-
53
-		$lsx_controls['fields']['lsx_header_mobile_layout'] = array(
54
-			'label'   => esc_html__( 'Mobile Header', 'lsx' ),
55
-			'section' => 'lsx-layout',
56
-			'control' => 'LSX_Customize_Mobile_Header_Layout_Control',
57
-			'choices' => array(
58
-				'navigation-bar',
59
-				'hamburger',
60
-			),
61
-		);
62
-
63
-		$lsx_controls['settings']['lsx_layout'] = array(
64
-			'default'   => '1c',
65
-			'type'      => 'theme_mod',
66
-			'transport' => 'refresh',
67
-		);
68
-
69
-		$lsx_controls['fields']['lsx_layout'] = array(
70
-			'label'   => esc_html__( 'Body', 'lsx' ),
71
-			'section' => 'lsx-layout',
72
-			'control' => 'LSX_Customize_Layout_Control',
73
-			'choices' => array(
74
-				'1c',
75
-				'2cr',
76
-				'2cl',
77
-			),
78
-		);
79
-
80
-		$lsx_controls['settings']['lsx_header_fixed'] = array(
81
-			'default'           => false,
82
-			'sanitize_callback' => 'lsx_sanitize_checkbox',
83
-			'transport'         => 'postMessage',
84
-		);
85
-
86
-		$lsx_controls['fields']['lsx_header_fixed'] = array(
87
-			'label'   => esc_html__( 'Fixed Header', 'lsx' ),
88
-			'section' => 'lsx-layout',
89
-			'type'    => 'checkbox',
90
-		);
91
-
92
-		$lsx_controls['settings']['lsx_header_search'] = array(
93
-			'default'           => false,
94
-			'sanitize_callback' => 'lsx_sanitize_checkbox',
95
-			'transport'         => 'postMessage',
96
-		);
97
-
98
-		$lsx_controls['fields']['lsx_header_search'] = array(
99
-			'label'   => esc_html__( 'Search Box in Header', 'lsx' ),
100
-			'section' => 'lsx-layout',
101
-			'type'    => 'checkbox',
102
-		);
103
-
104
-		$lsx_controls['selective_refresh']['lsx_header_search'] = array(
105
-			'selector'        => '#lsx-header-search-css',
106
-			'render_callback' => function() {
107
-				$search_form = get_theme_mod( 'lsx_header_search' );
108
-
109
-				if ( false !== $search_form ) {
110
-					echo 'body #searchform { display: block; }';
111
-				} else {
112
-					echo 'body #searchform { display: none; }';
113
-				}
114
-			},
115
-		);
116
-
117
-		return $lsx_controls;
118
-	}
15
+     /**
16
+      * Returns an array of the layout panel.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage customizer
20
+      *
21
+      * @return $lsx_controls array()
22
+      */
23
+     function lsx_customizer_layout_controls( $lsx_controls ) {
24
+          $lsx_controls['sections']['lsx-layout'] = array(
25
+               'title'       => esc_html__( 'Layout', 'lsx' ),
26
+               'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ),
27
+               'priority'    => 22,
28
+          );
29
+
30
+          $lsx_controls['settings']['lsx_header_layout'] = array(
31
+               'default'   => 'inline',
32
+               'type'      => 'theme_mod',
33
+               'transport' => 'postMessage',
34
+          );
35
+
36
+          $lsx_controls['fields']['lsx_header_layout'] = array(
37
+               'label'   => esc_html__( 'Header', 'lsx' ),
38
+               'section' => 'lsx-layout',
39
+               'control' => 'LSX_Customize_Header_Layout_Control',
40
+               'choices' => array(
41
+                    'central',
42
+                    'expanded',
43
+                    'inline',
44
+               ),
45
+          );
46
+
47
+          $lsx_controls['settings']['lsx_header_mobile_layout'] = array(
48
+               'default'   => 'navigation-bar',
49
+               'type'      => 'theme_mod',
50
+               'transport' => 'postMessage',
51
+          );
52
+
53
+          $lsx_controls['fields']['lsx_header_mobile_layout'] = array(
54
+               'label'   => esc_html__( 'Mobile Header', 'lsx' ),
55
+               'section' => 'lsx-layout',
56
+               'control' => 'LSX_Customize_Mobile_Header_Layout_Control',
57
+               'choices' => array(
58
+                    'navigation-bar',
59
+                    'hamburger',
60
+               ),
61
+          );
62
+
63
+          $lsx_controls['settings']['lsx_layout'] = array(
64
+               'default'   => '1c',
65
+               'type'      => 'theme_mod',
66
+               'transport' => 'refresh',
67
+          );
68
+
69
+          $lsx_controls['fields']['lsx_layout'] = array(
70
+               'label'   => esc_html__( 'Body', 'lsx' ),
71
+               'section' => 'lsx-layout',
72
+               'control' => 'LSX_Customize_Layout_Control',
73
+               'choices' => array(
74
+                    '1c',
75
+                    '2cr',
76
+                    '2cl',
77
+               ),
78
+          );
79
+
80
+          $lsx_controls['settings']['lsx_header_fixed'] = array(
81
+               'default'           => false,
82
+               'sanitize_callback' => 'lsx_sanitize_checkbox',
83
+               'transport'         => 'postMessage',
84
+          );
85
+
86
+          $lsx_controls['fields']['lsx_header_fixed'] = array(
87
+               'label'   => esc_html__( 'Fixed Header', 'lsx' ),
88
+               'section' => 'lsx-layout',
89
+               'type'    => 'checkbox',
90
+          );
91
+
92
+          $lsx_controls['settings']['lsx_header_search'] = array(
93
+               'default'           => false,
94
+               'sanitize_callback' => 'lsx_sanitize_checkbox',
95
+               'transport'         => 'postMessage',
96
+          );
97
+
98
+          $lsx_controls['fields']['lsx_header_search'] = array(
99
+               'label'   => esc_html__( 'Search Box in Header', 'lsx' ),
100
+               'section' => 'lsx-layout',
101
+               'type'    => 'checkbox',
102
+          );
103
+
104
+          $lsx_controls['selective_refresh']['lsx_header_search'] = array(
105
+               'selector'        => '#lsx-header-search-css',
106
+               'render_callback' => function() {
107
+                    $search_form = get_theme_mod( 'lsx_header_search' );
108
+
109
+                    if ( false !== $search_form ) {
110
+                         echo 'body #searchform { display: block; }';
111
+                    } else {
112
+                         echo 'body #searchform { display: none; }';
113
+                    }
114
+               },
115
+          );
116
+
117
+          return $lsx_controls;
118
+     }
119 119
 
120 120
 endif;
121 121
 
@@ -123,80 +123,80 @@  discard block
 block discarded – undo
123 123
 
124 124
 if ( ! function_exists( 'lsx_customizer_template_cover_controls' ) ) :
125 125
 
126
-	/**
127
-	 * Returns an array of the Cover Template panel.
128
-	 *
129
-	 * @package    lsx
130
-	 * @subpackage customizer
131
-	 *
132
-	 * @return $lsx_controls array()
133
-	 */
134
-	function lsx_customizer_template_cover_controls( $lsx_controls ) {
135
-		$lsx_controls['sections']['lsx-cover-template'] = array(
136
-			'title'       => esc_html__( 'Cover Template Settings', 'lsx' ),
137
-			'description' => esc_html__( 'Change the cover template settings.', 'lsx' ),
138
-			'priority'    => 23,
139
-		);
140
-
141
-		$lsx_controls['settings']['lsx_cover_template_fixed_background'] = array(
142
-			'default'           => '1',
143
-			'sanitize_callback' => 'lsx_sanitize_checkbox',
144
-			'transport'         => 'postMessage',
145
-		);
146
-
147
-		$lsx_controls['fields']['lsx_cover_template_fixed_background'] = array(
148
-			'label'   => esc_html__( 'Fixed Background Image', 'lsx' ),
149
-			'section' => 'lsx-cover-template',
150
-			'type'    => 'checkbox',
151
-		);
152
-
153
-		$lsx_controls['settings']['lsx_cover_template_overlay_background_color'] = array(
154
-			'default'           => '#000000',
155
-			'sanitize_callback' => 'sanitize_hex_color',
156
-			'type'              => 'theme_mod',
157
-			'transport'         => 'postMessage',
158
-		);
159
-
160
-		$lsx_controls['fields']['lsx_cover_template_overlay_background_color'] = array(
161
-			'label'       => esc_html__( 'Overlay Background Color', 'lsx' ),
162
-			'description' => __( 'The color used for the overlay. Defaults to black.', 'lsx' ),
163
-			'section'     => 'lsx-cover-template',
164
-			'control'     => 'WP_Customize_Color_Control',
165
-		);
166
-
167
-		$lsx_controls['settings']['lsx_cover_template_overlay_text_color'] = array(
168
-			'default'           => '#ffffff',
169
-			'sanitize_callback' => 'sanitize_hex_color',
170
-			'type'              => 'theme_mod',
171
-			'transport'         => 'postMessage',
172
-		);
173
-
174
-		$lsx_controls['fields']['lsx_cover_template_overlay_text_color'] = (
175
-			array(
176
-				'label'       => __( 'Overlay Text Color', 'lsx' ),
177
-				'description' => __( 'The color used for the text in the overlay.', 'lsx' ),
178
-				'section'     => 'lsx-cover-template',
179
-				'control'     => 'WP_Customize_Color_Control',
180
-			)
181
-		);
182
-
183
-		$lsx_controls['settings']['lsx_cover_template_overlay_opacity'] = array(
184
-			'default'           => 80,
185
-			'sanitize_callback' => 'absint',
186
-			'transport'         => 'postMessage',
187
-		);
188
-
189
-		$lsx_controls['fields']['lsx_cover_template_overlay_opacity'] = (
190
-			array(
191
-				'label'       => __( 'Overlay Opacity', 'lsx' ),
192
-				'description' => __( 'Make sure that the contrast is high enough so that the text is readable.', 'lsx' ),
193
-				'section'     => 'lsx-cover-template',
194
-				'type'        => 'range',
195
-			)
196
-		);
197
-
198
-		return $lsx_controls;
199
-	}
126
+     /**
127
+      * Returns an array of the Cover Template panel.
128
+      *
129
+      * @package    lsx
130
+      * @subpackage customizer
131
+      *
132
+      * @return $lsx_controls array()
133
+      */
134
+     function lsx_customizer_template_cover_controls( $lsx_controls ) {
135
+          $lsx_controls['sections']['lsx-cover-template'] = array(
136
+               'title'       => esc_html__( 'Cover Template Settings', 'lsx' ),
137
+               'description' => esc_html__( 'Change the cover template settings.', 'lsx' ),
138
+               'priority'    => 23,
139
+          );
140
+
141
+          $lsx_controls['settings']['lsx_cover_template_fixed_background'] = array(
142
+               'default'           => '1',
143
+               'sanitize_callback' => 'lsx_sanitize_checkbox',
144
+               'transport'         => 'postMessage',
145
+          );
146
+
147
+          $lsx_controls['fields']['lsx_cover_template_fixed_background'] = array(
148
+               'label'   => esc_html__( 'Fixed Background Image', 'lsx' ),
149
+               'section' => 'lsx-cover-template',
150
+               'type'    => 'checkbox',
151
+          );
152
+
153
+          $lsx_controls['settings']['lsx_cover_template_overlay_background_color'] = array(
154
+               'default'           => '#000000',
155
+               'sanitize_callback' => 'sanitize_hex_color',
156
+               'type'              => 'theme_mod',
157
+               'transport'         => 'postMessage',
158
+          );
159
+
160
+          $lsx_controls['fields']['lsx_cover_template_overlay_background_color'] = array(
161
+               'label'       => esc_html__( 'Overlay Background Color', 'lsx' ),
162
+               'description' => __( 'The color used for the overlay. Defaults to black.', 'lsx' ),
163
+               'section'     => 'lsx-cover-template',
164
+               'control'     => 'WP_Customize_Color_Control',
165
+          );
166
+
167
+          $lsx_controls['settings']['lsx_cover_template_overlay_text_color'] = array(
168
+               'default'           => '#ffffff',
169
+               'sanitize_callback' => 'sanitize_hex_color',
170
+               'type'              => 'theme_mod',
171
+               'transport'         => 'postMessage',
172
+          );
173
+
174
+          $lsx_controls['fields']['lsx_cover_template_overlay_text_color'] = (
175
+               array(
176
+                    'label'       => __( 'Overlay Text Color', 'lsx' ),
177
+                    'description' => __( 'The color used for the text in the overlay.', 'lsx' ),
178
+                    'section'     => 'lsx-cover-template',
179
+                    'control'     => 'WP_Customize_Color_Control',
180
+               )
181
+          );
182
+
183
+          $lsx_controls['settings']['lsx_cover_template_overlay_opacity'] = array(
184
+               'default'           => 80,
185
+               'sanitize_callback' => 'absint',
186
+               'transport'         => 'postMessage',
187
+          );
188
+
189
+          $lsx_controls['fields']['lsx_cover_template_overlay_opacity'] = (
190
+               array(
191
+                    'label'       => __( 'Overlay Opacity', 'lsx' ),
192
+                    'description' => __( 'Make sure that the contrast is high enough so that the text is readable.', 'lsx' ),
193
+                    'section'     => 'lsx-cover-template',
194
+                    'type'        => 'range',
195
+               )
196
+          );
197
+
198
+          return $lsx_controls;
199
+     }
200 200
 
201 201
 endif;
202 202
 
@@ -205,19 +205,19 @@  discard block
 block discarded – undo
205 205
 
206 206
 if ( ! function_exists( 'lsx_get_customizer_controls' ) ) :
207 207
 
208
-	/**
209
-	 * Returns an array of $controls for the customizer class to generate.
210
-	 *
211
-	 * @package    lsx
212
-	 * @subpackage customizer
213
-	 *
214
-	 * @return $lsx_controls array()
215
-	 */
216
-	function lsx_get_customizer_controls() {
217
-		$lsx_controls = array();
218
-		$lsx_controls = apply_filters( 'lsx_customizer_controls', $lsx_controls );
219
-		return $lsx_controls;
220
-	}
208
+     /**
209
+      * Returns an array of $controls for the customizer class to generate.
210
+      *
211
+      * @package    lsx
212
+      * @subpackage customizer
213
+      *
214
+      * @return $lsx_controls array()
215
+      */
216
+     function lsx_get_customizer_controls() {
217
+          $lsx_controls = array();
218
+          $lsx_controls = apply_filters( 'lsx_customizer_controls', $lsx_controls );
219
+          return $lsx_controls;
220
+     }
221 221
 
222 222
 endif;
223 223
 
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage customizer
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_customizer_layout_controls' ) ) :
13
+if ( ! function_exists('lsx_customizer_layout_controls')) :
14 14
 
15 15
 	/**
16 16
 	 * Returns an array of the layout panel.
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 	 *
21 21
 	 * @return $lsx_controls array()
22 22
 	 */
23
-	function lsx_customizer_layout_controls( $lsx_controls ) {
23
+	function lsx_customizer_layout_controls($lsx_controls) {
24 24
 		$lsx_controls['sections']['lsx-layout'] = array(
25
-			'title'       => esc_html__( 'Layout', 'lsx' ),
26
-			'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ),
25
+			'title'       => esc_html__('Layout', 'lsx'),
26
+			'description' => esc_html__('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'),
27 27
 			'priority'    => 22,
28 28
 		);
29 29
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		);
35 35
 
36 36
 		$lsx_controls['fields']['lsx_header_layout'] = array(
37
-			'label'   => esc_html__( 'Header', 'lsx' ),
37
+			'label'   => esc_html__('Header', 'lsx'),
38 38
 			'section' => 'lsx-layout',
39 39
 			'control' => 'LSX_Customize_Header_Layout_Control',
40 40
 			'choices' => array(
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		);
52 52
 
53 53
 		$lsx_controls['fields']['lsx_header_mobile_layout'] = array(
54
-			'label'   => esc_html__( 'Mobile Header', 'lsx' ),
54
+			'label'   => esc_html__('Mobile Header', 'lsx'),
55 55
 			'section' => 'lsx-layout',
56 56
 			'control' => 'LSX_Customize_Mobile_Header_Layout_Control',
57 57
 			'choices' => array(
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		);
68 68
 
69 69
 		$lsx_controls['fields']['lsx_layout'] = array(
70
-			'label'   => esc_html__( 'Body', 'lsx' ),
70
+			'label'   => esc_html__('Body', 'lsx'),
71 71
 			'section' => 'lsx-layout',
72 72
 			'control' => 'LSX_Customize_Layout_Control',
73 73
 			'choices' => array(
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		);
85 85
 
86 86
 		$lsx_controls['fields']['lsx_header_fixed'] = array(
87
-			'label'   => esc_html__( 'Fixed Header', 'lsx' ),
87
+			'label'   => esc_html__('Fixed Header', 'lsx'),
88 88
 			'section' => 'lsx-layout',
89 89
 			'type'    => 'checkbox',
90 90
 		);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		);
97 97
 
98 98
 		$lsx_controls['fields']['lsx_header_search'] = array(
99
-			'label'   => esc_html__( 'Search Box in Header', 'lsx' ),
99
+			'label'   => esc_html__('Search Box in Header', 'lsx'),
100 100
 			'section' => 'lsx-layout',
101 101
 			'type'    => 'checkbox',
102 102
 		);
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
 		$lsx_controls['selective_refresh']['lsx_header_search'] = array(
105 105
 			'selector'        => '#lsx-header-search-css',
106 106
 			'render_callback' => function() {
107
-				$search_form = get_theme_mod( 'lsx_header_search' );
107
+				$search_form = get_theme_mod('lsx_header_search');
108 108
 
109
-				if ( false !== $search_form ) {
109
+				if (false !== $search_form) {
110 110
 					echo 'body #searchform { display: block; }';
111 111
 				} else {
112 112
 					echo 'body #searchform { display: none; }';
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
 
120 120
 endif;
121 121
 
122
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_layout_controls' );
122
+add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls');
123 123
 
124
-if ( ! function_exists( 'lsx_customizer_template_cover_controls' ) ) :
124
+if ( ! function_exists('lsx_customizer_template_cover_controls')) :
125 125
 
126 126
 	/**
127 127
 	 * Returns an array of the Cover Template panel.
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 	 *
132 132
 	 * @return $lsx_controls array()
133 133
 	 */
134
-	function lsx_customizer_template_cover_controls( $lsx_controls ) {
134
+	function lsx_customizer_template_cover_controls($lsx_controls) {
135 135
 		$lsx_controls['sections']['lsx-cover-template'] = array(
136
-			'title'       => esc_html__( 'Cover Template Settings', 'lsx' ),
137
-			'description' => esc_html__( 'Change the cover template settings.', 'lsx' ),
136
+			'title'       => esc_html__('Cover Template Settings', 'lsx'),
137
+			'description' => esc_html__('Change the cover template settings.', 'lsx'),
138 138
 			'priority'    => 23,
139 139
 		);
140 140
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 		);
146 146
 
147 147
 		$lsx_controls['fields']['lsx_cover_template_fixed_background'] = array(
148
-			'label'   => esc_html__( 'Fixed Background Image', 'lsx' ),
148
+			'label'   => esc_html__('Fixed Background Image', 'lsx'),
149 149
 			'section' => 'lsx-cover-template',
150 150
 			'type'    => 'checkbox',
151 151
 		);
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 		);
159 159
 
160 160
 		$lsx_controls['fields']['lsx_cover_template_overlay_background_color'] = array(
161
-			'label'       => esc_html__( 'Overlay Background Color', 'lsx' ),
162
-			'description' => __( 'The color used for the overlay. Defaults to black.', 'lsx' ),
161
+			'label'       => esc_html__('Overlay Background Color', 'lsx'),
162
+			'description' => __('The color used for the overlay. Defaults to black.', 'lsx'),
163 163
 			'section'     => 'lsx-cover-template',
164 164
 			'control'     => 'WP_Customize_Color_Control',
165 165
 		);
@@ -173,8 +173,8 @@  discard block
 block discarded – undo
173 173
 
174 174
 		$lsx_controls['fields']['lsx_cover_template_overlay_text_color'] = (
175 175
 			array(
176
-				'label'       => __( 'Overlay Text Color', 'lsx' ),
177
-				'description' => __( 'The color used for the text in the overlay.', 'lsx' ),
176
+				'label'       => __('Overlay Text Color', 'lsx'),
177
+				'description' => __('The color used for the text in the overlay.', 'lsx'),
178 178
 				'section'     => 'lsx-cover-template',
179 179
 				'control'     => 'WP_Customize_Color_Control',
180 180
 			)
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 
189 189
 		$lsx_controls['fields']['lsx_cover_template_overlay_opacity'] = (
190 190
 			array(
191
-				'label'       => __( 'Overlay Opacity', 'lsx' ),
192
-				'description' => __( 'Make sure that the contrast is high enough so that the text is readable.', 'lsx' ),
191
+				'label'       => __('Overlay Opacity', 'lsx'),
192
+				'description' => __('Make sure that the contrast is high enough so that the text is readable.', 'lsx'),
193 193
 				'section'     => 'lsx-cover-template',
194 194
 				'type'        => 'range',
195 195
 			)
@@ -200,10 +200,10 @@  discard block
 block discarded – undo
200 200
 
201 201
 endif;
202 202
 
203
-add_filter( 'lsx_customizer_controls', 'lsx_customizer_template_cover_controls' );
203
+add_filter('lsx_customizer_controls', 'lsx_customizer_template_cover_controls');
204 204
 
205 205
 
206
-if ( ! function_exists( 'lsx_get_customizer_controls' ) ) :
206
+if ( ! function_exists('lsx_get_customizer_controls')) :
207 207
 
208 208
 	/**
209 209
 	 * Returns an array of $controls for the customizer class to generate.
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
 	 */
216 216
 	function lsx_get_customizer_controls() {
217 217
 		$lsx_controls = array();
218
-		$lsx_controls = apply_filters( 'lsx_customizer_controls', $lsx_controls );
218
+		$lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls);
219 219
 		return $lsx_controls;
220 220
 	}
221 221
 
222 222
 endif;
223 223
 
224
-$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() );
224
+$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls());
Please login to merge, or discard this patch.
page-templates/template-cover.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 		<?php if ( have_posts() ) : ?>
25 25
 
26 26
 			<?php
27
-			while ( have_posts() ) :
28
-				the_post();
29
-				?>
27
+               while ( have_posts() ) :
28
+                    the_post();
29
+                    ?>
30 30
 
31 31
 				<?php get_template_part( 'partials/content', 'page-cover' ); ?>
32 32
 
@@ -41,15 +41,15 @@  discard block
 block discarded – undo
41 41
 	<?php lsx_content_after(); ?>
42 42
 
43 43
 	<?php
44
-	if ( is_singular( 'post' ) ) {
45
-		lsx_post_nav();
46
-	}
47
-	?>
44
+     if ( is_singular( 'post' ) ) {
45
+          lsx_post_nav();
46
+     }
47
+     ?>
48 48
 	<?php
49
-	if ( comments_open() ) {
50
-		comments_template();
51
-	}
52
-	?>
49
+     if ( comments_open() ) {
50
+          comments_template();
51
+     }
52
+     ?>
53 53
 
54 54
 </div><!-- #primary -->
55 55
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 
22 22
 		<?php lsx_content_top(); ?>
23 23
 
24
-		<?php if ( have_posts() ) : ?>
24
+		<?php if (have_posts()) : ?>
25 25
 
26 26
 			<?php
27
-			while ( have_posts() ) :
27
+			while (have_posts()) :
28 28
 				the_post();
29 29
 				?>
30 30
 
31
-				<?php get_template_part( 'partials/content', 'page-cover' ); ?>
31
+				<?php get_template_part('partials/content', 'page-cover'); ?>
32 32
 
33 33
 			<?php endwhile; ?>
34 34
 
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
 	<?php lsx_content_after(); ?>
42 42
 
43 43
 	<?php
44
-	if ( is_singular( 'post' ) ) {
44
+	if (is_singular('post')) {
45 45
 		lsx_post_nav();
46 46
 	}
47 47
 	?>
48 48
 	<?php
49
-	if ( comments_open() ) {
49
+	if (comments_open()) {
50 50
 		comments_template();
51 51
 	}
52 52
 	?>
Please login to merge, or discard this patch.