<?php /** * Frontend Wishlist Page * * @package Tutor\Templates * @subpackage Dashboard * @author Themeum <support@themeum.com> * @link https://themeum.com * @version 1.4.3 */ use TUTOR\Input; global $post; $per_page = tutor_utils()->get_option( 'pagination_per_page', 20 ); $current_page = max( 1, Input::get( 'current_page', 1, Input::TYPE_INT ) ); $offset = ( $current_page - 1 ) * $per_page; $wishlists = tutor_utils()->get_wishlist( null, $offset, $per_page ); $total_wishlists_count = count( tutor_utils()->get_wishlist( null ) ); ?> <div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'Wishlist', 'tutor' ); ?></div> <div class="tutor-dashboard-content-inner my-wishlist"> <?php if ( is_array( $wishlists ) && count( $wishlists ) ) : ?> <div class="tutor-grid tutor-grid-3"> <?php foreach ( $wishlists as $post ) : setup_postdata( $post ); ?> <div class="tutor-card tutor-course-card"> <?php tutor_load_template( 'loop.header' ); ?> <div class="tutor-card-body"> <?php tutor_load_template( 'loop.rating' ); ?> <div class="tutor-course-name tutor-fs-6 tutor-fw-bold"> <a href="<?php echo esc_url( get_the_permalink() ); ?>"> <?php the_title(); ?> </a> </div> <div class="tutor-mt-auto"> <?php tutor_load_template( 'loop.course-author' ); ?> </div> </div> <div class="tutor-card-footer"> <?php tutor_course_loop_price(); ?> </div> </div> <?php endforeach; wp_reset_postdata(); ?> </div> <?php else : ?> <?php tutor_utils()->tutor_empty_state( tutor_utils()->not_found_text() ); ?> <?php endif; ?> </div> <div class="tutor-mt-24"> <?php if ( $total_wishlists_count >= $per_page ) { $pagination_data = array( 'total_items' => $total_wishlists_count, 'per_page' => $per_page, 'paged' => $current_page, ); tutor_load_template_from_custom_path( tutor()->path . 'templates/dashboard/elements/pagination.php', $pagination_data ); } ?> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
announcements | Folder | 0755 |
|
|
assignments | Folder | 0755 |
|
|
elements | Folder | 0755 |
|
|
enrolled-courses | Folder | 0755 |
|
|
instructor | Folder | 0755 |
|
|
my-courses | Folder | 0755 |
|
|
my-quiz-attempts | Folder | 0755 |
|
|
notifications | Folder | 0755 |
|
|
question-answer | Folder | 0755 |
|
|
quiz-attempts | Folder | 0755 |
|
|
reviews | Folder | 0755 |
|
|
settings | Folder | 0755 |
|
|
withdraw-method-fields | Folder | 0755 |
|
|
announcements.php | File | 4.33 KB | 0644 |
|
assignments.php | File | 4.98 KB | 0644 |
|
create-course.php | File | 644 B | 0644 |
|
dashboard.php | File | 16.61 KB | 0644 |
|
enrolled-courses.php | File | 4.32 KB | 0644 |
|
index.php | File | 459 B | 0644 |
|
logged-in.php | File | 261 B | 0644 |
|
my-courses.php | File | 13.89 KB | 0644 |
|
my-profile.php | File | 2.07 KB | 0644 |
|
my-quiz-attempts.php | File | 1.79 KB | 0644 |
|
purchase_history.php | File | 10.45 KB | 0644 |
|
question-answer.php | File | 4.59 KB | 0644 |
|
quiz-attempts.php | File | 1.95 KB | 0644 |
|
registration.php | File | 6.16 KB | 0644 |
|
reviews.php | File | 3.84 KB | 0644 |
|
settings.php | File | 775 B | 0644 |
|
wishlist.php | File | 2.02 KB | 0644 |
|
withdraw.php | File | 13.21 KB | 0644 |
|