removing dynamic slider settings
This commit is contained in:
parent
779d47405c
commit
ea969369d9
|
@ -32,50 +32,6 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
|
||||||
*/
|
*/
|
||||||
function understrap_theme_customize_register( $wp_customize ) {
|
function understrap_theme_customize_register( $wp_customize ) {
|
||||||
|
|
||||||
$wp_customize->add_section( 'understrap_theme_slider_options', array(
|
|
||||||
'title' => __( 'Slider Settings', 'understrap' ),
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_setting( 'understrap_theme_slider_count_setting', array(
|
|
||||||
'default' => '1',
|
|
||||||
'sanitize_callback' => 'absint',
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_control( 'understrap_theme_slider_count', array(
|
|
||||||
'label' => __( 'Number of slides displaying at once', 'understrap' ),
|
|
||||||
'section' => 'understrap_theme_slider_options',
|
|
||||||
'type' => 'text',
|
|
||||||
'settings' => 'understrap_theme_slider_count_setting',
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_setting( 'understrap_theme_slider_time_setting', array(
|
|
||||||
'default' => '5000',
|
|
||||||
'sanitize_callback' => 'absint',
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_control( 'understrap_theme_slider_time', array(
|
|
||||||
'label' => __( 'Slider Time (in ms)', 'understrap' ),
|
|
||||||
'section' => 'understrap_theme_slider_options',
|
|
||||||
'type' => 'text',
|
|
||||||
'settings' => 'understrap_theme_slider_time_setting',
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_setting( 'understrap_theme_slider_loop_setting', array(
|
|
||||||
'default' => 'true',
|
|
||||||
'sanitize_callback' => 'esc_textarea',
|
|
||||||
) );
|
|
||||||
|
|
||||||
$wp_customize->add_control( 'understrap_theme_loop', array(
|
|
||||||
'label' => __( 'Loop Slider Content', 'understrap' ),
|
|
||||||
'section' => 'understrap_theme_slider_options',
|
|
||||||
'type' => 'radio',
|
|
||||||
'choices' => array(
|
|
||||||
'true' => 'yes',
|
|
||||||
'false' => 'no',
|
|
||||||
),
|
|
||||||
'settings' => 'understrap_theme_slider_loop_setting',
|
|
||||||
) );
|
|
||||||
|
|
||||||
// Theme layout settings.
|
// Theme layout settings.
|
||||||
$wp_customize->add_section( 'understrap_theme_layout_options', array(
|
$wp_customize->add_section( 'understrap_theme_layout_options', array(
|
||||||
'title' => __( 'Theme Layout Settings', 'understrap' ),
|
'title' => __( 'Theme Layout Settings', 'understrap' ),
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
items:1,
|
items:1,
|
||||||
loop:true,
|
loop:true,
|
||||||
autoplay:true,
|
autoplay:true,
|
||||||
autoplayTimeout:(understrap_slider_variables.timeout),
|
autoplayTimeout:5000,
|
||||||
animateOut: 'fadeOut',
|
animateOut: 'fadeOut',
|
||||||
animateIn: 'fadeIn',
|
animateIn: 'fadeIn',
|
||||||
nav: false,
|
nav: false,
|
||||||
|
|
Reference in New Issue