add_section( 'aleanta_footer_settings' , array( 'title' => esc_html__( 'Footer', 'aleanta' ), 'priority' => 75, ) ); $staticBlocks = aleanta_get_staticblock_option_array(); $wp_customize->add_setting( 'aleanta_footer_block_top' , array( 'default' => '0', 'transport' => 'refresh', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( 'aleanta_footer_block_top', array( 'label' => esc_html__( 'Top Footer Block', 'aleanta' ), 'section' => 'aleanta_footer_settings', 'settings' => 'aleanta_footer_block_top', 'type' => 'select', 'choices' => $staticBlocks, ) ); $wp_customize->add_setting( 'aleanta_footer_block' , array( 'default' => '0', 'transport' => 'refresh', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( 'aleanta_footer_block', array( 'label' => esc_html__( 'Bottom Footer Block', 'aleanta' ), 'section' => 'aleanta_footer_settings', 'settings' => 'aleanta_footer_block', 'type' => 'select', 'choices' => $staticBlocks, ) ); $wp_customize->add_setting( 'aleanta_footer_fixed' , array( 'default' => '0', 'transport' => 'refresh', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( 'aleanta_footer_fixed', array( 'label' => esc_html__( 'Fixed', 'aleanta' ), 'section' => 'aleanta_footer_settings', 'settings' => 'aleanta_footer_fixed', 'type' => 'select', 'choices' => array( '1' => esc_html__( 'On', 'aleanta' ), '0' => esc_html__( 'Off', 'aleanta' ), ), ) ); } ?>