<?php  

//$luzukSliderSingleChoice = getLuzukPostsType('slider');
$wp_customize->add_section(
    'dinero_slider_section',
    array(
        'title' => __( 'Slider', 'Luzuk' ),
        'panel' => 'luzuk_premium_home_panel1',
        'priority' =>18
    )
);

$wp_customize->add_setting('dinero_reset_slider_settings',array(
  'sanitize_callback'   => 'sanitize_text_field'
));
$wp_customize->add_control(new dinero_Reset_Custom_Control($wp_customize, 'dinero_reset_slider_settings',array(
  'type' => 'reset_control',
   'priority' => 1,
  'label' => __('Reset slider Section Settings', 'dinero'),
  'description' => 'dinero_slider_reset_settings',
  'section' => 'dinero_slider_section'
)));

    $wp_customize->add_setting('dinero_slider_section_option',array(
     'default' => 'Luzuk Slider Plugin',
     'sanitize_callback' => 'dinero_sanitize_choices'
    ));
    $wp_customize->add_control('dinero_slider_section_option',array(
      'type' => 'select',
      'label' => __('Slider Comes From Plugin','dinero'),
      'section' => 'dinero_slider_section',
      'choices' => array(
         'Luzuk Slider Plugin' => __('Luzuk Slider Plugin','dinero'),
         'Other Shortcode' => __('Other Shortcode','dinero')
      ),
    ));

    $wp_customize->add_setting('dinero_slider_shortcode',array(
        'default' => '',
        'sanitize_callback' => 'sanitize_text_field'
    ));
    $wp_customize->add_control('dinero_slider_shortcode',array(
    'type' => 'text',
    'label' => __('Add slider other shortcode here','dinero'),
    'section' => 'dinero_slider_section',
    'active_callback' => 'dinero_shortcode_slider_enabled'
    ));


    $wp_customize->add_setting('dinero_slider_image_opacity',array(
        'default' => 0.7,
        'sanitize_callback' => 'dinero_sanitize_float'
    ));
    $wp_customize->add_control(new dinero_Custom_Control( $wp_customize, 'dinero_slider_image_opacity',array(
    'label' => __('Slider Image Opacity','dinero'),
    'section' => 'dinero_slider_section',
    'input_attrs' => array(
            'min' => 0,
            'max' => 1,
            'step' => 0.1,
        ),
    )));


    $wp_customize->add_setting('dinero_slider_section_width',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'dinero_sanitize_choices',
    ));
    $wp_customize->add_control('dinero_slider_section_width',array(
        'type' => 'select',
        'label' => __('Section Width','dinero'),
        'choices' => array (
            'Box Width' => __('Box Width','dinero'),
            'Full Width' => __('Full Width','dinero')
        ),
        'section' => 'dinero_slider_section',
    ));
 ?>