in public/class-amazonpolly-public.php [384:490]
public function customize_register( $wp_customize ) {
$wp_customize->add_section(
'amazonpolly', array(
'title' => __( 'Amazon Polly', 'amazonpolly' ),
'priority' => 30,
)
);
$wp_customize->add_setting(
'amazon_polly_podcast_icon', array(
'default' => 'image.jpg',
'capability' => 'edit_theme_options',
'type' => 'option',
)
);
$wp_customize->add_setting(
'amazon_polly_podcast_email', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
)
);
$wp_customize->add_setting(
'amazon_polly_podcast_category', array(
'default' => 'News & Politics',
'capability' => 'edit_theme_options',
'type' => 'option',
)
);
$wp_customize->add_setting(
'amazon_polly_podcast_explicit', array(
'default' => 'no',
'capability' => 'edit_theme_options',
'type' => 'option',
)
);
$wp_customize->add_control(
new WP_Customize_Cropped_Image_Control(
$wp_customize, 'podcast_icon', array(
'settings' => 'amazon_polly_podcast_icon',
'section' => 'amazonpolly',
'label' => __( 'iTunes image' ),
'flex_width' => false,
'flex_height' => false,
'width' => 1400,
'height' => 1400,
)
)
);
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize, 'podcast_email', array(
'settings' => 'amazon_polly_podcast_email',
'section' => 'amazonpolly',
'label' => __( 'iTunes contact email' ),
'flex_width' => false,
'flex_height' => false,
'width' => 1400,
'height' => 1400,
)
)
);
$wp_customize->add_control(
'amazon_polly_podcast_category', array(
'type' => 'select',
'priority' => 10,
'section' => 'amazonpolly',
'label' => __( 'iTunes category' ),
'choices' => array(
'Arts' => 'Arts',
'Business' => 'Business',
'Comedy' => 'Comedy',
'Education' => 'Education',
'Games & Hobbies' => 'Games & Hobbies',
'Government & Organizations' => 'Government & Organizations',
'Health' => 'Health',
'Kids' => 'Kids',
'Music' => 'Music',
'News & Politics' => 'News & Politics',
'Religion & Spirituality' => 'Religion & Spirituality',
'Science & Medicine' => 'Science & Medicine',
'Society & Culture' => 'Society & Culture',
'Sports & Recreation' => 'Sports & Recreation',
'Technology' => 'Technology',
'TV & Film' => 'TV & Film',
),
)
);
$wp_customize->add_control(
'amazon_polly_podcast_explicit', array(
'type' => 'select',
'priority' => 10,
'section' => 'amazonpolly',
'label' => __( 'iTunes explicit content' ),
'choices' => array(
'yes' => 'Yes',
'no' => 'No',
),
)
);
}