LLMS_Lesson::get_preview_icon_html()
Get HTML of the icon to display in the .llms-lesson-preview element on the syllabus
Return Return
(string)
Source Source
File: includes/models/model.llms.lesson.php
public function get_preview_icon_html() { $html = ''; if ( llms_is_user_enrolled( get_current_user_id(), $this->get( 'id' ) ) ) { if ( $this->is_complete() || apply_filters( 'lifterlms_display_lesson_complete_placeholders', true ) ) { $html = '<span class="llms-lesson-complete"><i class="fa fa-' . apply_filters( 'lifterlms_lesson_complete_icon', 'check-circle' ) . '"></i></span>'; } } elseif ( $this->is_free() ) { $html = '<span class="llms-icon-free">' . __( 'FREE', 'lifterlms' ) . '</span>'; } return apply_filters( 'llms_get_preview_icon_html', $html ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |