Skip to content

Commit

Permalink
Add support child theme
Browse files Browse the repository at this point in the history
Need to add support child theme
  • Loading branch information
cafeiklan authored Dec 6, 2016
1 parent 42cce9c commit 06f4e18
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions inc/customizer-controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*-----------------------------------------------------------------------------------*/
/* Screenr Customizer Controls
/*-----------------------------------------------------------------------------------*/

if(!class_exists('Screenr_Group_Settings_Heading_Control')):
class Screenr_Group_Settings_Heading_Control extends WP_Customize_Control {

public $settings = 'blogname';
Expand Down Expand Up @@ -47,7 +47,7 @@ public function render_content() {
}
}
}

endif;

/**
* Sanitize repeatable data
Expand All @@ -56,6 +56,7 @@ public function render_content() {
* @param $setting object $wp_customize
* @return bool|mixed|string|void
*/
if(!function_exists('screenr_sanitize_repeatable_data_field')):
function screenr_sanitize_repeatable_data_field( $input , $setting ){
$control = $setting->manager->get_control( $setting->id );

Expand Down Expand Up @@ -153,8 +154,9 @@ function screenr_sanitize_repeatable_data_field( $input , $setting ){

return $data;
}
endif;


if(!class_exists('Screenr_Alpha_Color_Control')):
class Screenr_Alpha_Color_Control extends WP_Customize_Control {

/**
Expand Down Expand Up @@ -217,7 +219,7 @@ public function render_content() {
<?php
}
}

endif;


/**
Expand All @@ -226,6 +228,7 @@ public function render_content() {
* @since 1.0.0
* @access public
*/
if(!class_exists('Screenr_Customize_Repeatable_Control')):
class Screenr_Customize_Repeatable_Control extends WP_Customize_Control {

/**
Expand Down Expand Up @@ -587,3 +590,5 @@ public function js_item( ){
}

}

endif;

0 comments on commit 06f4e18

Please sign in to comment.