File manager - Edit - /home/theblueo/tv/wp-content/plugins/sfwd-lms/themes/ld30/templates/modules/infobar.php
Back
<?php /** * Displays an informational bar * * Is contextulaized by passing in a $context variable that indicates post type * * $course_status : Course Status * * $user_id : Current User ID * $context : course, lesson, topic, quiz, etc... * $logged_in : User is logged in * $current_user : (object) Currently logged in user object * * @since 3.0 * * @package LearnDash\Course */ /** * Action to add custom content before the infobar * * @since 3.0 */ do_action( 'learndash-infobar-before', get_post_type(), $course_id, $user_id ); do_action( 'learndash-' . $context . '-infobar-before', $course_id, $user_id ); ?> <?php /** * Action to add custom content inside the infobar (before) * * @since 3.0 */ do_action( 'learndash-infobar-inside-before', get_post_type(), $course_id, $user_id ); do_action( 'learndash-' . $context . '-infobar-inside-before', $course_id, $user_id ); switch ( $context ) { case ( 'course' ): learndash_get_template_part( 'modules/infobar/course.php', array( 'has_access' => $has_access, 'user_id' => $user_id, 'course_id' => $course_id, 'course_status' => $course_status, 'post' => $post, ), true ); break; case ( 'lesson' ): ?> <div class="ld-lesson-status"> <div class="ld-breadcrumbs"> <?php learndash_get_template_part( 'modules/breadcrumbs.php', array( 'context' => 'lesson', 'user_id' => $user_id, 'course_id' => $course_id, ), true ); $status = ''; if ( is_user_logged_in() ) { $status = ( learndash_is_item_complete() ? 'complete' : 'incomplete' ); } learndash_status_bubble( $status ); ?> </div> </div> <?php break; case ( 'topic' ): ?> <div class="ld-topic-status"> <div class="ld-breadcrumbs"> <?php learndash_get_template_part( 'modules/breadcrumbs.php', array( 'context' => 'topic', 'user_id' => $user_id, 'course_id' => $course_id, ), true ); $status = ''; if ( is_user_logged_in() ) { $status = ( learndash_is_item_complete() ? 'complete' : 'incomplete' ); } learndash_status_bubble( $status ); ?> </div> <!--/.ld-breadcrumbs--> <?php learndash_get_template_part( 'modules/progress.php', array( 'context' => 'topic', 'user_id' => $user_id, 'course_id' => $course_id, ), true ); ?> </div> <?php break; default: // Fail silently break; } /** * Action to add custom content inside the infobar (after) * * @since 3.0 */ do_action( 'learndash-infobar-inside-after', get_post_type(), $course_id, $user_id ); do_action( 'learndash-' . $context . '-infobar-inside-after', $course_id, $user_id ); ?> <?php /** * Action to add custom content after the infobar * * @since 3.0 */ do_action( 'learndash-infobar-after', get_post_type(), $course_id, $user_id ); do_action( 'learndash-' . $context . '-infobar-after', $course_id, $user_id );
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings