<?php 

function portfolio_one_customizer_controller_scripts(){

	wp_enqueue_style( 'portfolio-one-controller-checkbox', get_theme_file_uri( '/inc/customizer/controllers/checkbox/checkbox.css' ), array(), PORTFOLIO_ONE_VER );

	wp_enqueue_style( 'portfolio-one-controller-heading', get_theme_file_uri( '/inc/customizer/controllers/controller-heading/controller-heading.css' ), array(), PORTFOLIO_ONE_VER );
	
	
	wp_enqueue_script( 'portfolio-one-controller-heading', get_theme_file_uri('/inc/customizer/controllers/controller-heading/controller-heading.js'), array('jquery','customize-controls'), PORTFOLIO_ONE_VER, true );

	

}
add_action('customize_controls_enqueue_scripts','portfolio_one_customizer_controller_scripts');



/**
* Load controllers for customizer
*
*/
$file_loc = get_template_directory().'/inc/customizer/controllers/';

$file_paths = array(

	$file_loc.'checkbox/checkbox',
	$file_loc.'controller-heading/controller-heading',
	$file_loc.'alpha-color-picker/alpha-color-control',
	$file_loc.'custom-controller',
	$file_loc.'custom-controls',

);

foreach ( $file_paths as $file_path ){

	require $file_path.'.php'; 
}