add_section( 'preloader_settings', array(
'title' => __( 'Preloader', 'businessdex' ),
'panel' => 'settings_options'
) );
////// Preloader - Options
businessdex_controller_info(
'preloader_info',
'preloader_settings',
__( 'Preloader Options', 'businessdex' ),
__( '
This displays a loading animation until the browser fetched the whole web content and will fade out the moment the page has been completely cached.
It is best to check this on the live website after you make changes and save.
', 'businessdex') );
businessdex_controller_checkbox(
'preloader_enable',
'preloader_settings',
esc_html__( 'Enable Preloader', 'businessdex' ), '', false );
businessdex_controller_color_picker(
'preloader_fill_color',
'preloader_settings',
esc_html__( 'Preloader fill color:', 'businessdex' ), '',
'#dd3333', false );
businessdex_controller_color_picker(
'preloader_bg_color',
'preloader_settings',
esc_html__( 'Preloader fill color:', 'businessdex' ), '',
'#ffffff', false );
businessdex_controller_simple_opacity(
'preloader_opacity',
'preloader_settings',
esc_html__( 'Preloader opacity:', 'businessdex' ), '', '0.9', false );
businessdex_controller_select(
'preloader_options',
'preloader_settings',
apply_filters( 'businessdex_preloader_options___filter', $items = array(
'balls' => esc_html__( 'Balls Beat', 'businessdex' ),
'balls2' => esc_html__( 'Balls Pulse', 'businessdex' ),
'balls3' => esc_html__( 'Balls Spinner', 'businessdex' ),
'loader1' => esc_html__( 'Loading #1', 'businessdex' ),
) ),
esc_html__( 'Preloader animation:', 'businessdex' ), '', 'balls', false );