Skip to content

Commit

Permalink
Merge pull request #123 from cafeiklan/master
Browse files Browse the repository at this point in the history
Add support child theme
  • Loading branch information
shrimp2t authored Dec 6, 2016
2 parents 9e9cba5 + 06f4e18 commit 75993a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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;
4 changes: 3 additions & 1 deletion inc/customizer-sections.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Plus customizer section.
*/
if(!class_exists('Screenr_Customize_Section_Plus')):
class Screenr_Customize_Section_Plus extends WP_Customize_Section {

/**
Expand Down Expand Up @@ -61,9 +62,10 @@ protected function render_template() { ?>
{{ data.title }}

<# if ( data.plus_text && data.plus_url ) { #>
<a href="{{ data.plus_url }}" class="" target="_blank">{{ data.plus_text }} </a>
<a href="{{ data.plus_url }}" class="" target="_blank">{{ data.plus_text }} →</a>
<# } #>
</h3>
</li>
<?php }
}
endif;

0 comments on commit 75993a7

Please sign in to comment.