<?php
/**
 * Register Custom Controls for the Customizer
 *
 * @package ella-parallax-one-page
 */

if ( ! function_exists( 'ella_parallax_one_page_register_custom_controls' ) ) :
    /**
     * Register Custom Controls
     */
    function ella_parallax_one_page_register_custom_controls( $wp_customize ) {
        
        // Load our custom controls (child theme paths)
        require_once get_stylesheet_directory() . '/inc/custom-controls/note/class-note-control.php';
        require_once get_stylesheet_directory() . '/inc/custom-controls/radioimg/class-radio-image-control.php';

        // Register the control type with prefixed class name
        $wp_customize->register_control_type( 'Ella_Parallax_One_Page_Radio_Image_Control' );
    }
endif;

add_action( 'customize_register', 'ella_parallax_one_page_register_custom_controls' );