@@ 229-232 (lines=4) @@ | ||
226 | $url = add_query_arg( array( 'page' => $this->page_slug, 'course_id' => $course_id, 'view' => 'learners' ), admin_url( 'admin.php' ) ); |
|
227 | $title .= sprintf( ' <span class="course-title">> <a href="%s">%s</a></span>', esc_url( $url ), get_the_title( $course_id ) ); |
|
228 | } |
|
229 | if ( isset( $_GET['lesson_id'] ) ) { |
|
230 | $lesson_id = intval( $_GET['lesson_id'] ); |
|
231 | $title .= ' <span class="lesson-title">> ' . get_the_title( intval( $lesson_id ) ) . '</span>'; |
|
232 | } |
|
233 | ?> |
|
234 | <h2><?php echo apply_filters( 'sensei_learners_nav_title', $title ); ?></h2> |
|
235 | <?php |
@@ 279-282 (lines=4) @@ | ||
276 | $title .= sprintf( ' <span class="course-title">> %s</span>', get_the_title( $course_id ) ); |
|
277 | } |
|
278 | } |
|
279 | if ( isset( $_GET['lesson_id'] ) ) { |
|
280 | $lesson_id = intval( $_GET['lesson_id'] ); |
|
281 | $title .= ' <span class="lesson-title">> ' . get_the_title( intval( $lesson_id ) ) . '</span>'; |
|
282 | } |
|
283 | if ( isset( $_GET['user_id'] ) && 0 < intval( $_GET['user_id'] ) ) { |
|
284 | ||
285 | $user_name = Sensei_Learner::get_full_name( $_GET['user_id'] ); |