'', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Table Content. $defaults['font-family-learndash-table-content'] = 'inherit'; $defaults['font-weight-learndash-table-content'] = 'inherit'; $defaults['text-transform-learndash-table-content'] = ''; $defaults['font-size-learndash-table-content'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['learndash-course-link-color'] = ''; $defaults['learndash-course-highlight-text-color'] = ''; $defaults['learndash-course-highlight-color'] = ''; $defaults['learndash-course-progress-color'] = ''; $defaults['learndash-overwrite-colors'] = false; 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_new( $wp_customize ) { $active_ld_theme = ''; if ( is_callable( 'LearnDash_Theme_Register::get_active_theme_key' ) ) { $active_ld_theme = LearnDash_Theme_Register::get_active_theme_key(); } if ( 'ld30' !== $active_ld_theme ) { require_once ASTRA_ADDON_EXT_LEARNDASH_DIR . 'classes/sections/class-astra-customizer-learndash-general-configs.php'; require_once ASTRA_ADDON_EXT_LEARNDASH_DIR . 'classes/sections/class-astra-customizer-learndash-typo-configs.php'; } require_once ASTRA_ADDON_EXT_LEARNDASH_DIR . 'classes/sections/class-astra-customizer-learndash-color-configs.php'; } /** * Customizer Controls * * @see 'astra-customizer-preview-js' panel in parent theme */ public function preview_scripts() { if ( SCRIPT_DEBUG ) { $js_path = 'assets/js/unminified/customizer-preview.js'; } else { $js_path = 'assets/js/minified/customizer-preview.min.js'; } wp_register_script( 'ast-learndash-customizer-preview', ASTRA_ADDON_EXT_LEARNDASH_URI . $js_path, array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); wp_enqueue_script( 'ast-learndash-customizer-preview' ); } /** * Append inline style to learndash style. * * @since 1.8.6 */ public function add_inline_style() { $custom_style = astra_addon_ldrv3_dynamic_css(); wp_add_inline_style( 'learndash-front', $custom_style ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_LearnDash_Loader::get_instance();