is__premium_only() ) { add_action( 'customize_register', 'alley_themes_customize_container_width' ); function alley_themes_customize_container_width( $wp_customize ) { $wp_customize->add_section( 'alley_themes_container_width', array( 'title' => esc_html__( 'Container Width', 'alley-themes' ), 'description' => esc_html__( 'Container Width :', 'alley-themes' ), 'priority' => 17, ) ); $wp_customize->add_setting( 'container_width', array( 'default' => 1140, 'sanitize_callback' => 'absint', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new Alley_Themes_Slider_Control( $wp_customize, 'container_width', array( 'section' => 'alley_themes_container_width', 'settings' => 'container_width', 'label' => esc_html__( 'Container Width', 'alley-themes' ), 'choices' => array( 'min' => 1024, 'max' => 1600, 'step' => 1, ) ) ) ); } }