LLMS_Table_Student_Course::output_section_row_html( obj $lesson )
Output a section title row for each course Section
Parameters Parameters
- $lesson
-
(obj) (Required) the current lesson instance
Return Return
(void)
Source Source
File: includes/admin/reporting/tables/llms.table.student.course.php
public function output_section_row_html( $lesson ) { if ( $lesson instanceof LLMS_Lesson ) { $sid = $lesson->get_parent_section(); if ( $this->current_section !== $sid ) { echo '<tr><td class="id">' . $sid . '</td><td class="section-title" colspan="' . ( $this->get_columns_count() - 1 ) . '">' . sprintf( _x( 'Section: %s', 'section title', 'lifterlms' ), get_the_title( $sid ) ) . '</td></tr>'; $this->current_section = $sid; } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |