$opt_name, ) ); require_once VAMTAM_DIR . 'customizer/compiler.php'; require_once VAMTAM_DIR . 'customizer/option-filters.php'; // load the option definitions $sections = array( 'core', 'general', 'top-level', ); foreach ( $sections as $section ) { include VAMTAM_OPTIONS . "$section/section.php"; } function vamtam_custom_css_options() { // extract compiler options from option definitions $type_map = array(); $options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_id(); foreach ( $options as $opt ) { if ( isset( $opt['compiler'] ) && $opt['compiler'] ) { $type_map[ 'vamtam_theme[' . $opt['id'] . ']' ] = $opt['type']; } } return $type_map; } function vamtam_option_types_used() { $options = $GLOBALS['vamtam_theme_customizer']->get_fields_by_id(); $types = array(); foreach ( $options as $opt ) { $types[] = $opt['type']; } sort( $types ); return array_unique( $types ); }