course-filter
2 months ago
dashboard
1 day ago
ecommerce
1 day ago
email
1 day ago
global
1 week ago
instructor
3 years ago
learning-area
1 day ago
loop
1 day ago
modal
2 months ago
profile
3 years ago
shared
1 day ago
shortcode
2 months ago
single
1 day ago
template-part
1 day ago
widget
3 years ago
account-header.php
1 day ago
account.php
1 day ago
archive-course-init.php
9 months ago
archive-course.php
3 years ago
course-embed.php
2 months ago
course-none.php
3 years ago
dashboard-isolated.php
1 day ago
dashboard.php
1 day ago
feature_disabled.php
3 years ago
login-form-legacy.php
1 day ago
login-form.php
1 day ago
login.php
1 day ago
permission-denied.php
1 day ago
public-profile.php
1 day ago
single-assignment.php
3 years ago
single-content-loader.php
2 months ago
single-course.php
1 day ago
single-lesson.php
3 years ago
single-preview-lesson.php
3 years ago
single-quiz.php
1 year ago
template.php
3 years ago
user-profile.php
1 day ago
account-header.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Base Template for Account |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | use TUTOR\Icon; |
| 14 | use Tutor\Components\Button; |
| 15 | use Tutor\Components\Constants\Size; |
| 16 | use Tutor\Components\Constants\Variant; |
| 17 | |
| 18 | |
| 19 | ?> |
| 20 | <div class="tutor-account-header"> |
| 21 | <div class="tutor-account-container"> |
| 22 | <div class="tutor-flex tutor-items-center tutor-justify-between"> |
| 23 | <?php |
| 24 | Button::make() |
| 25 | ->label( __( 'Back', 'tutor' ) ) |
| 26 | ->variant( Variant::GHOST ) |
| 27 | ->size( Size::X_SMALL ) |
| 28 | ->tag( 'a' ) |
| 29 | ->icon( Icon::LEFT, 'left', 20 ) |
| 30 | ->icon_only() |
| 31 | ->flip_rtl() |
| 32 | ->attr( 'href', esc_url( $back_url ) ) |
| 33 | ->render(); |
| 34 | ?> |
| 35 | <h4 class="tutor-account-header-title"> |
| 36 | <?php echo esc_html( $page_data['title'] ?? '' ); ?> |
| 37 | </h4> |
| 38 | <?php |
| 39 | Button::make() |
| 40 | ->label( __( 'Close', 'tutor' ) ) |
| 41 | ->variant( Variant::GHOST ) |
| 42 | ->size( Size::X_SMALL ) |
| 43 | ->tag( 'a' ) |
| 44 | ->icon( Icon::CROSS, 'left', 20 ) |
| 45 | ->icon_only() |
| 46 | ->attr( 'href', esc_url( $close_url ) ) |
| 47 | ->render(); |
| 48 | ?> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 |