continue-learning.php
1 day ago
dashboard-empty.php
1 day ago
dashboard.php
1 day ago
stat-card.php
1 day ago
stats.php
1 day ago
time-spent-modal.php
1 day ago
dashboard-empty.php
100 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Frontend Empty Dashboard Template |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Dashboard |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 4.0.0 |
| 10 | */ |
| 11 | |
| 12 | use Tutor\Components\Button; |
| 13 | use Tutor\Components\Constants\Color; |
| 14 | use Tutor\Components\Constants\Size; |
| 15 | use Tutor\Components\Constants\Variant; |
| 16 | use Tutor\Components\SvgIcon; |
| 17 | use Tutor\Helpers\UrlHelper; |
| 18 | use TUTOR\Icon; |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | $quick_tips = array( |
| 23 | __( 'Use notes to save key ideas as you watch', 'tutor' ), |
| 24 | __( 'Check the calendar for upcoming live sessions', 'tutor' ), |
| 25 | __( 'Discussions are a great place to ask questions', 'tutor' ), |
| 26 | __( 'You can pause and resume courses any time', 'tutor' ), |
| 27 | ); |
| 28 | ?> |
| 29 | <div class="tutor-dashboard-welcome-card"> |
| 30 | <div class="tutor-dashboard-welcome-content"> |
| 31 | <div class="tutor-dashboard-welcome-badge"> |
| 32 | <span> |
| 33 | <?php |
| 34 | /* translators: %s: site title */ |
| 35 | echo esc_html( sprintf( __( 'Welcome to %s', 'tutor' ), get_bloginfo( 'name' ) ) ); |
| 36 | ?> |
| 37 | </span> |
| 38 | <img src="<?php echo esc_attr( UrlHelper::asset( 'images/illustrations/confetti.svg' ) ); ?>" alt="<?php esc_html_e( 'Confetti', 'tutor' ); ?>" style="width: 16px; height: 16px;" /> |
| 39 | </div> |
| 40 | <h3 class="tutor-h3 tutor-my-4"> |
| 41 | <?php |
| 42 | printf( |
| 43 | // translators: %s: <br />. |
| 44 | esc_html__( 'You haven\'t enrolled in %s a course yet.', 'tutor' ), |
| 45 | '<br />' |
| 46 | ); |
| 47 | ?> |
| 48 | </h3> |
| 49 | <p class="tutor-p2 tutor-mb-8"> |
| 50 | <?php |
| 51 | printf( |
| 52 | // translators: %s: <br />. |
| 53 | esc_html__( 'Explore course and start building your %s skills today.', 'tutor' ), |
| 54 | '<br />' |
| 55 | ); |
| 56 | ?> |
| 57 | </p> |
| 58 | <?php |
| 59 | Button::make() |
| 60 | ->label( __( 'Explore Courses', 'tutor' ) ) |
| 61 | ->variant( Variant::PRIMARY ) |
| 62 | ->size( Size::X_SMALL ) |
| 63 | ->icon( Icon::ARROW_RIGHT_2, 'right' ) |
| 64 | ->flip_rtl() |
| 65 | ->tag( 'a' ) |
| 66 | ->attr( 'href', tutor_utils()->course_archive_page_url() ) |
| 67 | ->render(); |
| 68 | ?> |
| 69 | </div> |
| 70 | <div class="tutor-dashboard-welcome-banner"> |
| 71 | <?php tutor_utils()->render_themed_svg( 'images/illustrations/dashboard-empty.svg' ); ?> |
| 72 | </div> |
| 73 | </div> |
| 74 | |
| 75 | <div class="tutor-dashboard-quick-tips-card"> |
| 76 | <div class="tutor-flex tutor-items-start tutor-gap-5"> |
| 77 | <div class="tutor-flex tutor-p-4 tutor-surface-brand-tertiary tutor-rounded-lg"> |
| 78 | <?php SvgIcon::make()->name( Icon::BULB_LINE )->size( Size::SIZE_32 )->color( Color::BRAND )->render(); ?> |
| 79 | </div> |
| 80 | <div class="tutor-flex tutor-flex-column tutor-gap-2" style="max-width: 220px;"> |
| 81 | <div class="tutor-medium tutor-font-semibold"> |
| 82 | <?php esc_html_e( 'Quick Tips', 'tutor' ); ?> |
| 83 | </div> |
| 84 | <div class="tutor-small tutor-text-secondary"> |
| 85 | <?php esc_html_e( 'Make the most of your learning experience', 'tutor' ); ?> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | <div class="tutor-flex tutor-flex-column tutor-gap-4"> |
| 90 | <?php foreach ( $quick_tips as $key => $value ) : ?> |
| 91 | <div class="tutor-flex tutor-items-start tutor-gap-4"> |
| 92 | <?php SvgIcon::make()->name( Icon::CHECK_2 )->color( Color::BRAND )->attr( 'class', 'tutor-mt-1' )->render(); ?> |
| 93 | <div class="tutor-small tutor-text-secondary"> |
| 94 | <?php echo esc_html( $value ); ?> |
| 95 | </div> |
| 96 | </div> |
| 97 | <?php endforeach; ?> |
| 98 | </div> |
| 99 | </div> |
| 100 |