Astra_Edd_Shop_Single_Configs
Description
Source
File: addons/edd/classes/sections/class-astra-edd-shop-single-configs.php
class Astra_Edd_Shop_Single_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads shop single Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Enable Ajax add to cart. */ array( 'name' => ASTRA_THEME_SETTINGS . '[disable-edd-single-product-add-to-cart]', 'default' => astra_get_option( 'disable-edd-single-product-add-to-cart' ), 'type' => 'control', 'section' => 'section-edd-single', 'title' => __( 'Disable Add To Cart Button', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'priority' => 18, 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: EDD Product Title Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'default' => astra_get_option( 'edd-single-product-title-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Title Font', 'astra-addon' ), 'section' => 'section-edd-single', 'transport' => 'postMessage', 'priority' => 233, 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), /** * Option: EDD Product Content Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'default' => astra_get_option( 'edd-single-product-content-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Content Font', 'astra-addon' ), 'section' => 'section-edd-single', 'transport' => 'postMessage', 'priority' => 233, ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } }
Expand full source code Collapse full source code View on Trac
Methods
- register_configuration — Register Easy Digital Downloads shop single Layout Configurations.