update( $post_id ); } /** * Add typography options for the LearnDash product title * * @since 1.0.0 */ public static function typography_settings( $settings ) { $settings['learndash_course_title'] = array( 'label' => esc_html__( 'LearnDash Titles', 'oceanwp' ), 'target' => '.single-sfwd-courses .entry-title, .single-sfwd-lessons .entry-title, .single-sfwd-topic .entry-title, .single-sfwd-quiz .entry-title, .single-sfwd-certificates .entry-title, .single-sfwd-assignment .entry-title', 'defaults' => array( 'font-size' => '34', 'color' => '#333', 'line-height' => '1.4', 'letter-spacing' => '0.6', ), ); $settings['learndash_table_heading'] = array( 'label' => esc_html__( 'LearnDash Table Heading', 'oceanwp' ), 'target' => '#learndash_lessons #lesson_heading, #learndash_profile .learndash_profile_heading, #learndash_quizzes #quiz_heading, #learndash_lesson_topics_list div>strong', 'defaults' => array( 'font-size' => '18', 'color' => '#fff', 'line-height' => '1.4', 'letter-spacing' => '0.6', ), ); $settings['learndash_table_item'] = array( 'label' => esc_html__( 'LearnDash Table Item', 'oceanwp' ), 'target' => '#lessons_list>div h4>a, #course_list>div h4>a, #quiz_list>div h4>a', 'defaults' => array( 'font-size' => '34', 'color' => '#333', 'line-height' => '1.4', 'letter-spacing' => '0.6', ), ); $settings['learndash_buy_button'] = array( 'label' => esc_html__( 'LearnDash Take Course Button', 'oceanwp' ), 'target' => '.learndash_checkout_button .btn-join', 'exclude' => array( 'font-color' ), 'defaults' => array( 'font-size' => '12', 'line-height' => '1', ), ); return $settings; } /** * Adds color accents for LLMS styles. * * @since 1.0.0 */ public static function primary_texts( $texts ) { return array_merge( array( '.learndash a:hover', '#learndash_lessons a:hover', '#learndash_quizzes a:hover', '.expand_collapse a:hover', '.learndash_topic_dots a:hover', '.learndash_topic_dots a:hover > span', '#learndash_lesson_topics_list span a:hover', '.learndash .completed:before', '.learndash .notcompleted:before', '#learndash_profile .completed:before', '#learndash_profile .notcompleted:before', ), $texts ); } /** * Adds border accents for LLMS styles. * * @since 1.0.0 */ public static function primary_borders( $borders ) { return array_merge( array( '.learndash-instructor-info .learndash-instructors .learndash-author' => array( 'top' ), '.learndash-notification' => array( 'top' ), '.learndash-instructor-info .learndash-instructors .learndash-author .avatar', ), $borders ); } /** * Adds background accents for LLMS styles. * * @since 1.0.0 */ public static function primary_backgrounds( $backgrounds ) { return array_merge( array( '.learndash-button-action', '#learndash_lessons #lesson_heading', '#learndash_profile .learndash_profile_heading', '#learndash_quizzes #quiz_heading', '#learndash_lesson_topics_list div>strong', 'dd.course_progress div.course_progress_blue', 'body #ld_course_list .btn', ), $backgrounds ); } /** * Adds background hover accents for LLMS styles. * * @since 1.0.0 */ public static function hover_primary_backgrounds( $hover ) { return array_merge( array( '.learndash-button-action:hover', 'body #ld_course_list .btn:hover', ), $hover ); } /** * Adds border color elements for LLMS styles. * * @since 1.0.0 */ public static function border_color_elements( $elements ) { return array_merge( array( '.learndash-sd-notification-center .learndash-notification', ), $elements ); } } endif; return new OceanWP_LearnDash();