Astra_Ext_Edd_Loader::theme_defaults( array $defaults )
Set Options Default Values
Description
Parameters
- $defaults
-
(array) (Required) Astra options default value array.
Return
(array)
Source
File: addons/edd/classes/class-astra-ext-edd-loader.php
public function theme_defaults( $defaults ) {
// Shop page.
$defaults['edd-archive-style'] = 'edd-archive-page-grid-style';
$defaults['edd-archive-product-align'] = 'align-center';
$defaults['edd-archive-page-title-display'] = true;
$defaults['edd-archive-product-shadow'] = 0;
$defaults['edd-archive-product-shadow-hover'] = 0;
$defaults['edd-archive-button-v-padding'] = '';
$defaults['edd-archive-button-h-padding'] = '';
// Checkout.
$defaults['two-step-checkout'] = false;
$defaults['edd-checkout-coupon-display'] = true;
$defaults['edd-checkout-content-width'] = 'default';
$defaults['edd-checkout-content-max-width'] = 1200;
// General.
$defaults['edd-header-cart-icon'] = 'default';
$defaults['edd-header-cart-icon-style'] = 'none';
$defaults['edd-header-cart-icon-color'] = '';
$defaults['edd-header-cart-border-width'] = 1;
$defaults['edd-header-cart-icon-radius'] = 3;
$defaults['edd-header-cart-total-display'] = true;
$defaults['edd-header-cart-title-display'] = true;
$defaults['edd-header-cart-product-count-color'] = '';
// General Product Price Typo.
$defaults['font-family-product-price'] = 'inherit';
$defaults['font-weight-product-price'] = 'inherit';
// Single Product.
$defaults['disable-edd-single-product-add-to-cart'] = false;
// Single Product Title Typo.
$defaults['font-family-edd-product-title'] = 'inherit';
$defaults['font-weight-edd-product-title'] = 'inherit';
$defaults['text-transform-edd-product-title'] = '';
$defaults['line-height-edd-product-title'] = '';
$defaults['font-size-edd-product-title'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
$defaults['font-family-edd-product-content'] = 'inherit';
$defaults['font-weight-edd-product-content'] = 'inherit';
$defaults['text-transform-edd-product-content'] = '';
$defaults['line-height-edd-product-content'] = '';
$defaults['font-size-edd-product-content'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Shop Product Title Typo.
$defaults['font-family-edd-archive-product-title'] = 'inherit';
$defaults['font-weight-edd-archive-product-title'] = 'inherit';
$defaults['text-transform-edd-archive-product-title'] = '';
$defaults['line-height-edd-archive-product-title'] = '';
$defaults['font-size-edd-archive-product-title'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Shop Product Price Typo.
$defaults['font-family-edd-archive-product-price'] = 'inherit';
$defaults['font-weight-edd-archive-product-price'] = 'inherit';
$defaults['line-height-edd-archive-product-price'] = '';
$defaults['font-size-edd-archive-product-price'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Shop Product Category Typo.
$defaults['font-family-edd-archive-product-content'] = 'inherit';
$defaults['font-weight-edd-archive-product-content'] = 'inherit';
$defaults['text-transform-edd-archive-product-content'] = '';
$defaults['line-height-edd-archive-product-content'] = '';
$defaults['font-size-edd-archive-product-content'] = array(
'desktop' => '',
'tablet' => '',
'mobile' => '',
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
);
// Single Product Colors.
$defaults['edd-single-product-title-color'] = '';
$defaults['edd-single-product-content-color'] = '';
$defaults['edd-single-product-navigation-color'] = '';
// EDD Archive Product Colors.
$defaults['edd-archive-product-category-color'] = '';
$defaults['edd-archive-product-title-color'] = '';
$defaults['edd-archive-product-price-color'] = '';
$defaults['edd-archive-product-content-color'] = '';
// General Colors.
$defaults['single-product-rating-color'] = '';
return $defaults;
}
Expand full source code Collapse full source code View on Trac