3, 'tablet' => 2, 'mobile' => 1, ); // Container. $defaults['lifterlms-content-layout'] = 'plain-container'; // Sidebar. $defaults['lifterlms-sidebar-layout'] = 'no-sidebar'; $defaults['lifterlms-course-lesson-sidebar-layout'] = 'default'; return $defaults; } /** * This function handles the HTML output of the reviews and review form. * If the option is enabled, the review form will be output, * if not, nothing will happen. This function also checks to * see if a user is allowed to review more than once. * * @since 1.2.0 */ public function single_reviews() { /** * Check to see if we are supposed to output the code at all */ if ( get_post_meta( get_the_ID(), '_llms_display_reviews', true ) ) { ?>

get_post_meta( get_the_ID(), '_llms_num_reviews', true ), 'post_type' => 'llms_review', 'post_status' => 'publish', 'post_parent' => get_the_ID(), 'suppress_filters' => true, ); $posts_array = get_posts( $args ); $styles = array( 'background-color' => '#EFEFEF', 'title-color' => 'inherit', 'text-color' => 'inherit', 'custom-css' => '', ); if ( has_filter( 'llms_review_custom_styles' ) ) { $styles = apply_filters( 'llms_review_custom_styles', $styles ); } foreach ( $posts_array as $post ) { echo $styles['custom-css']; ?>
ID ) ); ?>
ID ) ) ); ?>

ID ); ?>


1, 'post_type' => 'llms_review', 'post_status' => 'publish', 'post_parent' => get_the_ID(), 'author' => get_current_user_id(), 'suppress_filters' => true, ); $posts_array = get_posts( $args ); /** * Check to see if we are allowed to write more than one review. * If we are not, check to see if we have written a review already. */ if ( get_post_meta( get_the_ID(), '_llms_multiple_reviews_disabled', true ) && $posts_array ) { ?>

array( 'color' => $btn_color, 'border-color' => $btn_bg_color, 'background-color' => $btn_bg_color, ), 'a.llms-button-primary, .llms-button-secondary, .llms-button-action, .llms-field-button' => array( 'border-radius' => astra_get_css_value( $btn_border_radius, 'px' ), 'padding' => astra_get_css_value( $btn_vertical_padding, 'px' ) . ' ' . astra_get_css_value( $btn_horizontal_padding, 'px' ), ), 'a.llms-button-primary:hover, a.llms-button-primary:focus, .llms-button-secondary:hover, .llms-button-secondary:focus, .llms-button-action:hover, .llms-button-action:focus, button.llms-field-button:hover, button.llms-field-button:focus, a.llms-field-button:hover, a.llms-field-button:focus' => array( 'color' => $btn_h_color, 'border-color' => $btn_bg_h_color, 'background-color' => $btn_bg_h_color, ), 'nav.llms-pagination ul li a:focus, nav.llms-pagination ul li a:hover, nav.llms-pagination ul li span.current' => array( 'background' => $theme_color, 'color' => $btn_color, ), 'nav.llms-pagination ul, nav.llms-pagination ul li, .llms-instructor-info .llms-instructors .llms-author, .llms-instructor-info .llms-instructors .llms-author .avatar' => array( 'border-color' => $theme_color, ), '.llms-progress .progress-bar-complete, .llms-instructor-info .llms-instructors .llms-author .avatar, h4.llms-access-plan-title, .llms-lesson-preview .llms-icon-free, .llms-access-plan .stamp, .llms-student-dashboard .llms-status.llms-active, .llms-student-dashboard .llms-status.llms-completed, .llms-student-dashboard .llms-status.llms-txn-succeeded, .color-full' => array( 'background' => $theme_color, ), '.llms-lesson-preview.is-complete .llms-lesson-complete, .llms-lesson-preview.is-free .llms-lesson-complete, .llms-widget-syllabus .lesson-complete-placeholder.done, .llms-widget-syllabus .llms-lesson-complete.done, .single-llms_quiz .llms-quiz-results .llms-donut.passing' => array( 'color' => $theme_color, ), '.single-llms_quiz .llms-quiz-results .llms-donut.passing svg path' => array( 'stroke' => $theme_color, ), 'h4.llms-access-plan-title, .llms-instructor-info .llms-instructors .llms-author .avatar, h4.llms-access-plan-title, .llms-lesson-preview .llms-icon-free, .llms-access-plan .stamp, .llms-student-dashboard .llms-status.llms-active, .llms-student-dashboard .llms-status.llms-completed, .llms-student-dashboard .llms-status.llms-txn-succeeded' => array( 'color' => $theme_forground_color, ), ); $course_id = get_the_ID(); if ( ! ! $course_id && is_course() ) { $course = new LLMS_Course( $course_id ); $course_progress = $course->get_percent_complete(); $css_output['.entry-content .progress-bar-complete:after'] = array( 'content' => "'" . round( $course_progress, 2 ) . "%'", 'color' => $theme_forground_color, ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); wp_add_inline_style( 'lifterlms-styles', apply_filters( 'astra_theme_lifterlms_dynamic_css', $css_output ) ); } /** * Add start of wrapper * * @since 1.2.0 * @return void */ function before_main_content_start() { $site_sidebar = astra_page_layout(); if ( 'left-sidebar' == $site_sidebar ) { get_sidebar(); } ?>