LLMS_Abstract_Notification_View_Quiz_Completion::set_body_email()
Setup body for email notification
Return Return
(string)
Source Source
File: includes/abstracts/llms.abstract.notification.view.quiz.completion.php
protected function set_body_email() { $mailer = llms()->mailer(); $btn_style = $mailer->get_button_style(); $rows = array( 'STUDENT_NAME' => __( 'Student', 'lifterlms' ), 'QUIZ_TITLE' => __( 'Quiz', 'lifterlms' ), 'LESSON_TITLE' => __( 'Lesson', 'lifterlms' ), 'COURSE_TITLE' => __( 'Course', 'lifterlms' ), 'GRADE' => __( 'Grade', 'lifterlms' ), 'STATUS' => __( 'Status', 'lifterlms' ), ); ob_start(); echo $mailer->get_table_html( $rows ); ?> <p><a href="{{REVIEW_URL}}" style="<?php echo $btn_style; ?>"><?php _e( 'View the quiz attempt and leave remarks', 'lifterlms' ); ?></a></p> <p><small><?php _e( 'Trouble clicking? Copy and paste this URL into your browser:', 'lifterlms' ); ?><br><a href="{{REVIEW_URL}}">{{REVIEW_URL}}</a></small></p> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Build the table with mailer helper. |
3.24.0 | Introduced. |