nav.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying enrolled course view nav menu |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Course\Enrolled |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; |
| 14 | } |
| 15 | |
| 16 | do_action( 'tutor_course/single/enrolled/nav/before' ); |
| 17 | |
| 18 | ?> |
| 19 | <nav class="tutor-nav" tutor-priority-nav> |
| 20 | <?php |
| 21 | foreach ( $course_nav_item as $nav_key => $nav_item ) { |
| 22 | /** |
| 23 | * Apply filters to show default active tab |
| 24 | */ |
| 25 | $default_active_key = apply_filters( 'tutor_default_topics_active_tab', 'info' ); |
| 26 | ?> |
| 27 | <li class="tutor-nav-item"> |
| 28 | <a class="tutor-nav-link<?php echo $nav_key == $default_active_key ? ' is-active' : ''; ?>" href="#" data-tutor-nav-target="tutor-course-details-tab-<?php echo esc_attr( $nav_key ); ?>"><?php echo esc_html( $nav_item['title'] ); ?></a> |
| 29 | </li> |
| 30 | <?php |
| 31 | } |
| 32 | ?> |
| 33 | <li class="tutor-nav-item tutor-nav-more tutor-d-none"> |
| 34 | <a class="tutor-nav-link tutor-nav-more-item" href="#"><span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor' ); ?></span> <span class="tutor-nav-more-icon tutor-icon-times"></span></a> |
| 35 | <ul class="tutor-nav-more-list tutor-dropdown"></ul> |
| 36 | </li> |
| 37 | </nav> |
| 38 | <?php do_action( 'tutor_course/single/enrolled/nav/after' ); ?> |
| 39 |