@@ -1,53 +1,53 @@ |
||
1 | 1 | <?php |
2 | 2 | if ( ! class_exists( 'LSX_Customizer_Core' ) ) { |
3 | 3 | |
4 | - /** |
|
5 | - * LSX Customizer Core Class |
|
6 | - * |
|
7 | - * @package LSX Customizer |
|
8 | - * @author LightSpeed |
|
9 | - * @license GPL3 |
|
10 | - * @link |
|
11 | - * @copyright 2016 LightSpeed |
|
12 | - */ |
|
13 | - class LSX_Customizer_Core extends LSX_Customizer { |
|
4 | + /** |
|
5 | + * LSX Customizer Core Class |
|
6 | + * |
|
7 | + * @package LSX Customizer |
|
8 | + * @author LightSpeed |
|
9 | + * @license GPL3 |
|
10 | + * @link |
|
11 | + * @copyright 2016 LightSpeed |
|
12 | + */ |
|
13 | + class LSX_Customizer_Core extends LSX_Customizer { |
|
14 | 14 | |
15 | - /** |
|
16 | - * Constructor. |
|
17 | - * |
|
18 | - * @since 1.0.0 |
|
19 | - */ |
|
20 | - public function __construct() { |
|
21 | - add_action( 'customize_register', array( $this, 'customize_register' ), 20 ); |
|
22 | - } |
|
15 | + /** |
|
16 | + * Constructor. |
|
17 | + * |
|
18 | + * @since 1.0.0 |
|
19 | + */ |
|
20 | + public function __construct() { |
|
21 | + add_action( 'customize_register', array( $this, 'customize_register' ), 20 ); |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * Customizer Controls and Settings. |
|
26 | - * |
|
27 | - * @param WP_Customize_Manager $wp_customize Theme Customizer object. |
|
28 | - * @since 1.0.0 |
|
29 | - */ |
|
30 | - public function customize_register( $wp_customize ) { |
|
31 | - /** |
|
32 | - * Core section: Theme Credit |
|
33 | - */ |
|
34 | - $wp_customize->add_setting( 'lsx_theme_credit_status', array( |
|
35 | - 'default' => true, |
|
36 | - 'sanitize_callback' => array( $this, 'sanitize_checkbox' ), |
|
37 | - ) ); |
|
24 | + /** |
|
25 | + * Customizer Controls and Settings. |
|
26 | + * |
|
27 | + * @param WP_Customize_Manager $wp_customize Theme Customizer object. |
|
28 | + * @since 1.0.0 |
|
29 | + */ |
|
30 | + public function customize_register( $wp_customize ) { |
|
31 | + /** |
|
32 | + * Core section: Theme Credit |
|
33 | + */ |
|
34 | + $wp_customize->add_setting( 'lsx_theme_credit_status', array( |
|
35 | + 'default' => true, |
|
36 | + 'sanitize_callback' => array( $this, 'sanitize_checkbox' ), |
|
37 | + ) ); |
|
38 | 38 | |
39 | - $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'lsx_theme_credit_status', array( |
|
40 | - 'label' => esc_html__( 'Theme Credit', 'lsx-customizer' ), |
|
41 | - // 'description' => esc_html__( 'Displays theme credit in footer.', 'lsx-customizer' ), |
|
42 | - 'section' => 'lsx-layout', |
|
43 | - 'settings' => 'lsx_theme_credit_status', |
|
44 | - 'type' => 'checkbox', |
|
45 | - 'priority' => 10, |
|
46 | - ) ) ); |
|
47 | - } |
|
39 | + $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'lsx_theme_credit_status', array( |
|
40 | + 'label' => esc_html__( 'Theme Credit', 'lsx-customizer' ), |
|
41 | + // 'description' => esc_html__( 'Displays theme credit in footer.', 'lsx-customizer' ), |
|
42 | + 'section' => 'lsx-layout', |
|
43 | + 'settings' => 'lsx_theme_credit_status', |
|
44 | + 'type' => 'checkbox', |
|
45 | + 'priority' => 10, |
|
46 | + ) ) ); |
|
47 | + } |
|
48 | 48 | |
49 | - } |
|
49 | + } |
|
50 | 50 | |
51 | - new LSX_Customizer_Core(); |
|
51 | + new LSX_Customizer_Core(); |
|
52 | 52 | |
53 | 53 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! class_exists( 'LSX_Customizer_Core' ) ) { |
|
2 | +if ( ! class_exists('LSX_Customizer_Core')) { |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * LSX Customizer Core Class |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @since 1.0.0 |
19 | 19 | */ |
20 | 20 | public function __construct() { |
21 | - add_action( 'customize_register', array( $this, 'customize_register' ), 20 ); |
|
21 | + add_action('customize_register', array($this, 'customize_register'), 20); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
@@ -27,23 +27,23 @@ discard block |
||
27 | 27 | * @param WP_Customize_Manager $wp_customize Theme Customizer object. |
28 | 28 | * @since 1.0.0 |
29 | 29 | */ |
30 | - public function customize_register( $wp_customize ) { |
|
30 | + public function customize_register($wp_customize) { |
|
31 | 31 | /** |
32 | 32 | * Core section: Theme Credit |
33 | 33 | */ |
34 | - $wp_customize->add_setting( 'lsx_theme_credit_status', array( |
|
34 | + $wp_customize->add_setting('lsx_theme_credit_status', array( |
|
35 | 35 | 'default' => true, |
36 | - 'sanitize_callback' => array( $this, 'sanitize_checkbox' ), |
|
37 | - ) ); |
|
36 | + 'sanitize_callback' => array($this, 'sanitize_checkbox'), |
|
37 | + )); |
|
38 | 38 | |
39 | - $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'lsx_theme_credit_status', array( |
|
40 | - 'label' => esc_html__( 'Theme Credit', 'lsx-customizer' ), |
|
39 | + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'lsx_theme_credit_status', array( |
|
40 | + 'label' => esc_html__('Theme Credit', 'lsx-customizer'), |
|
41 | 41 | // 'description' => esc_html__( 'Displays theme credit in footer.', 'lsx-customizer' ), |
42 | 42 | 'section' => 'lsx-layout', |
43 | 43 | 'settings' => 'lsx_theme_credit_status', |
44 | 44 | 'type' => 'checkbox', |
45 | 45 | 'priority' => 10, |
46 | - ) ) ); |
|
46 | + ))); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | } |