array( 'top' => 25, 'right' => 50, 'bottom' => 25, 'left' => 50, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['site-layout-fluid-lr-padding'] = 25; $defaults['site-layout-box-width'] = 1200; $defaults['site-layout-box-tb-margin'] = 0; $defaults['site-layout-box-bg-img'] = ''; return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { /** * Sections */ require_once ASTRA_ADDON_EXT_SITE_LAYOUTS_DIR . 'classes/sections/class-astra-site-layout-configuration.php'; } /** * Customizer Preview */ public function preview_scripts() { if ( SCRIPT_DEBUG ) { wp_enqueue_script( 'astra-ext-site-layouts-customize-preview-js', ASTRA_ADDON_EXT_SITE_LAYOUTS_URL . 'assets/js/unminified/customizer-preview.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } else { wp_enqueue_script( 'astra-ext-site-layouts-customize-preview-js', ASTRA_ADDON_EXT_SITE_LAYOUTS_URL . 'assets/js/minified/customizer-preview.min.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Site_Layouts_Loader::get_instance();