add_setting( 'botiga_section_hb_wrapper__footer_builder_goto_sections',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control( new Botiga_Text_Control( $wp_customize, 'botiga_section_hb_wrapper__footer_builder_goto_sections',
array(
'description' => '
Global Footer
',
'section' => 'botiga_section_fb_wrapper',
'priority' => 20
)
)
);
// List of options we'll need to move.
$opts_to_move = array(
'general' => array(
'footer_container'
),
'style' => array()
);
// Available Footer Components Area
$wp_customize->add_setting( 'botiga_section_fb_wrapper__footer_builder_available_footer_components',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control( new Botiga_Text_Control( $wp_customize, 'botiga_section_fb_wrapper__footer_builder_available_footer_components',
array(
'description' => ''. esc_html__( 'Available Components', 'botiga' ) .'',
'section' => 'botiga_section_fb_wrapper',
'priority' => 40
)
)
);
// Upsell
if( ! defined( 'BOTIGA_AWL_ACTIVE' ) && ! defined( 'BOTIGA_PRO_VERSION' ) ) {
$wp_customize->add_setting( 'botiga_section_fb_wrapper__footer_builder_upsell',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control( new Botiga_Text_Control( $wp_customize, 'botiga_section_fb_wrapper__footer_builder_upsell',
array(
'description' => '',
'section' => 'botiga_section_fb_wrapper',
'priority' => 40
)
)
);
}
// Move existing options.
$priority = 25;
foreach( $opts_to_move as $control_tabs ) {
foreach( $control_tabs as $option_name ) {
if( $wp_customize->get_control( $option_name ) === NULL ) {
continue;
}
$wp_customize->get_control( $option_name )->section = 'botiga_section_fb_wrapper';
$wp_customize->get_control( $option_name )->priority = $priority;
$priority++;
}
}
// @codingStandardsIgnoreEnd WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound