', esc_url( get_bloginfo( 'pingback_url' ) ) );
}
}
add_action( 'wp_head', 'all_cleaning_services_pingback_header' );
if(class_exists('WP_Customize_Control')){
class all_cleaning_services_Toggle_Checkbox_Custom_control extends WP_Customize_Control{
public $type = 'toogle_checkbox';
public function enqueue(){
wp_enqueue_style( 'custom_controls_css', get_template_directory_uri().'/inc/customizer/css/custom_controls.css');
}
public function render_content(){
?>
post_content;
if ( ! empty( $post_obj->post_excerpt ) ) {
$source_content = $post_obj->post_excerpt;
}
$source_content = preg_replace( '`\[[^\]]*\]`', '', $source_content );
$trimmed_content = wp_trim_words( $source_content, $length, '…' );
return $trimmed_content;
}
endif;
// Customizer Control
if (class_exists('WP_Customize_Control') && ! class_exists( 'all_cleaning_services_Image_Radio_Control' ) ) {
/**
* Customize sidebar layout control.
*/
class all_cleaning_services_Image_Radio_Control extends WP_Customize_Control {
public function render_content() {
if (empty($this->choices))
return;
$name = '_customize-radio-' . $this->id;
?>
label); ?>
add_setting(
$id,
array(
'default' => $color,
'sanitize_callback' => 'sanitize_hex_color',
'priority' => 1
)
);
$wpCustomizer->add_control(
new WP_Customize_Color_Control(
$wpCustomizer,
$id,
array(
'settings' => $id,
'section' => $section,
'label' => $label,
)
)
);
}