@@ -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 | } |