ASTRA_THEME_SETTINGS . '[edd-checkout-toggle-divider]', 'section' => 'section-edd-checkout-page', 'title' => __( 'Checkout Options', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'settings' => array(), ), /** * Option: Display Coupon on Checkout Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-coupon-display]', 'default' => astra_get_option( 'edd-checkout-coupon-display' ), 'type' => 'control', 'section' => 'section-edd-checkout-page', 'title' => __( 'Display Apply Coupon Field', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /* * Option: Distraction free Checkout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-distraction-free-checkout]', 'default' => astra_get_option( 'edd-distraction-free-checkout' ), 'type' => 'control', 'section' => 'section-edd-checkout-page', 'title' => __( 'Distraction Free Checkout', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Checkout Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-width]', 'default' => astra_get_option( 'edd-checkout-content-width' ), 'section' => 'section-edd-checkout-page', 'type' => 'control', 'control' => 'ast-selector', 'title' => __( 'Checkout Form Width', 'astra-addon' ), 'choices' => array( 'default' => __( 'Default', 'astra-addon' ), 'custom' => __( 'Custom', 'astra-addon' ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-max-width]', 'default' => astra_get_option( 'edd-checkout-content-max-width' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-width]', 'operator' => '==', 'value' => 'custom', ), ), 'section' => 'section-edd-checkout-page', 'title' => __( 'Custom Width', 'astra-addon' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Checkout_Configs();