ASTRA_THEME_SETTINGS . '[edd-archive-grids]', 'type' => 'control', 'control' => 'ast-responsive-slider', 'section' => 'section-edd-archive', 'default' => array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ), 'priority' => 10, 'title' => __( 'Archive Columns', 'astra' ), 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), ), /** * Option: EDD Archive Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-product-structure' ), 'priority' => 30, 'title' => __( 'Product Structure', 'astra' ), 'choices' => array( 'image' => __( 'Image', 'astra' ), 'category' => __( 'Category', 'astra' ), 'title' => __( 'Title', 'astra' ), 'price' => __( 'Price', 'astra' ), 'short_desc' => __( 'Short Description', 'astra' ), 'add_cart' => __( 'Add To Cart', 'astra' ), ), ), /** * Option: Add to Cart button text */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-add-to-cart-button-text]', 'type' => 'control', 'control' => 'text', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-add-to-cart-button-text' ), 'required' => array( ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'contains', 'add_cart' ), 'priority' => 31, 'title' => __( 'Cart Button Text', 'astra' ), ), /** * Option: Variable product button */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', 'type' => 'control', 'control' => 'select', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-variable-button' ), 'required' => array( ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'contains', 'add_cart' ), 'priority' => 31, 'title' => __( 'Variable Product Button', 'astra' ), 'choices' => array( 'button' => __( 'Button', 'astra' ), 'options' => __( 'Options', 'astra' ), ), ), /** * Option: Variable product button text */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-variable-button-text]', 'type' => 'control', 'control' => 'text', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-variable-button-text' ), 'required' => array( ASTRA_THEME_SETTINGS . '[edd-archive-variable-button]', '==', 'button' ), 'priority' => 31, 'title' => __( 'Variable Product Button Text', 'astra' ), ), /** * Option: Easy Digital Downloads Shop Archive Content Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-width-divider]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-edd-archive', 'priority' => 220, 'settings' => array(), ), /** * Option: Archive Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-width]', 'type' => 'control', 'control' => 'select', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-width' ), 'priority' => 220, 'title' => __( 'Archive Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-max-width]', 'type' => 'control', 'control' => 'ast-slider', 'section' => 'section-edd-archive', 'default' => 1200, 'priority' => 225, 'required' => array( ASTRA_THEME_SETTINGS . '[edd-archive-width]', '===', 'custom' ), 'title' => __( 'Enter Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Archive_Layout_Configs;