LLMS_Notification_View_Quiz_Graded::set_body_email()
Setup body for email notification
Description Description
Return Return
(string)
Source Source
File: includes/notifications/views/class.llms.notification.view.quiz.graded.php
protected function set_body_email() { $mailer = LLMS()->mailer(); $btn_style = $mailer->get_button_style(); $table_style = sprintf( 'border-collapse:collapse;color:%1$s;font-family:%2$s;font-size:%3$s;Margin-bottom:15px;text-align:left;width:100%%;', $mailer->get_css( 'font-color', false ), $mailer->get_css( 'font-family', false ), $mailer->get_css( 'font-size', false ) ); $tr_style = 'color:inherit;font-family:inherit;font-size:inherit;'; $td_style = sprintf( 'border-bottom:1px solid %s;color:inherit;font-family:inherit;font-size:inherit;padding:10px;', $mailer->get_css( 'divider-color', false ) ); $rows = array( 'QUIZ_TITLE' => __( 'Quiz', 'lifterlms' ), 'LESSON_TITLE' => __( 'Lesson', 'lifterlms' ), 'COURSE_TITLE' => __( 'Course', 'lifterlms' ), 'GRADE' => __( 'Grade', 'lifterlms' ), 'STATUS' => __( 'Status', 'lifterlms' ), ); ob_start(); ?><table style="<?php echo $table_style; ?>"> <?php foreach ( $rows as $code => $name ) : ?> <tr style="<?php echo $tr_style; ?>"> <th style="<?php echo $td_style; ?>width:33.3333%;"><?php echo $name; ?></th> <td style="<?php echo $td_style; ?>">{{<?php echo $code; ?>}}</td> </tr> <?php endforeach; ?> </table> <p><a href="{{REVIEW_URL}}" style="<?php echo $btn_style; ?>"><?php _e( 'View the whole attempt', '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 |
---|---|
3.24.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: