.
├── themename
| ├── wpsf-framework
| | ├── config
| | | ├── customize.config.php
take a look customize.config.php example
if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// -----------------------------------------
// Customize Core Fields -
// -----------------------------------------
$options = array();
$options[] = array(
'name' => 'core_fields',
'title' => 'Core Fields',
'settings' => array(
array(
'name' => 'text_option',
'control' => array(
'label' => 'Text Field',
'type' => 'text',
),
),
array(
'name' => 'text_option_with_default',
'default' => 'bla bla bla',
'control' => array(
'label' => 'Text Field with Default',
'type' => 'text',
),
),
array(
'name' => 'textarea_option',
'transport' => 'postMessage', //Default Transport type for each setting is refresh, however, if you want to create live preview customization you can change it to 'postMessage'. Take a look at the example, we added trasport type to the color picker control.
'control' => array(
'label' => 'Textarea Field',
'type' => 'textarea',
),
),
)
);
WPSFFramework_Customize::instance( $panels );
echo wpsf_get_customize_option( 'text_option' );
echo wpsf_get_customize_option( 'text_option_with_default' );
echo wpsf_get_customize_option( 'textarea_option' );