course-filter
2 months ago
dashboard
4 days ago
ecommerce
4 days ago
email
4 days ago
global
1 week ago
instructor
3 years ago
learning-area
4 days ago
loop
4 days ago
modal
2 months ago
profile
3 years ago
shared
1 day ago
shortcode
2 months ago
single
4 days ago
template-part
4 days ago
widget
3 years ago
account-header.php
4 days ago
account.php
4 days 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
4 days ago
dashboard.php
4 days ago
feature_disabled.php
3 years ago
login-form-legacy.php
4 days ago
login-form.php
4 days ago
login.php
4 days ago
permission-denied.php
4 days ago
public-profile.php
4 days ago
single-assignment.php
3 years ago
single-content-loader.php
2 months ago
single-course.php
4 days 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
4 days ago
permission-denied.php
76 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display Permission denied |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 1.0.0 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; |
| 13 | } |
| 14 | |
| 15 | $is_legacy_learning_mode = tutor_utils()->is_legacy_learning_mode(); |
| 16 | |
| 17 | tutor_utils()->tutor_custom_header(); |
| 18 | ?> |
| 19 | <?php if ( $is_legacy_learning_mode ) : ?> |
| 20 | <div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied"> |
| 21 | <div class="tutor-container"> |
| 22 | <div class="tutor-row tutor-justify-center"> |
| 23 | <div class="tutor-col-md-8 tutor-col-lg-6 tutor-col-xl-5"> |
| 24 | <div class="tutor-card"> |
| 25 | <div class="tutor-px-40 tutor-py-64 tutor-text-center"> |
| 26 | <div class="tutor-d-flex tutor-justify-center"> |
| 27 | <img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>"> |
| 28 | </div> |
| 29 | |
| 30 | <div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mt-n32 tutor-mb-12"><?php echo isset( $message ) ? esc_html( $message ) : esc_html__( 'You don\'t have permission to access this page', 'tutor' ); ?></div> |
| 31 | <div class="tutor-fs-6 tutor-color-muted tutor-mb-36"><?php echo isset( $description ) ? esc_html( $description ) : esc_html__( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?></div> |
| 32 | |
| 33 | <?php |
| 34 | if ( ! isset( $button ) ) { |
| 35 | $button = array( |
| 36 | 'url' => get_home_url(), |
| 37 | 'text' => 'Homepage', |
| 38 | ); |
| 39 | } |
| 40 | ?> |
| 41 | <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary"> |
| 42 | <?php echo esc_html( $button['text'] ); ?> |
| 43 | </a> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | <?php else : ?> |
| 51 | <div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied tutor-my-8 tutor-ml-auto tutor-mr-auto" style="max-width: 550px;"> |
| 52 | <div class="tutor-card tutor-text-center tutor-px-10 tutor-py-14 tutor-m-5"> |
| 53 | <div class="tutor-flex tutor-justify-center"> |
| 54 | <img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>"> |
| 55 | </div> |
| 56 | |
| 57 | <div class="tutor-h4"><?php echo isset( $message ) ? esc_html( $message ) : esc_html__( 'You don\'t have permission to access this page', 'tutor' ); ?></div> |
| 58 | <div class="tutor-text-medium tutor-text-muted tutor-mt-5"><?php echo isset( $description ) ? esc_html( $description ) : esc_html__( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?></div> |
| 59 | |
| 60 | <?php |
| 61 | if ( ! isset( $button ) ) { |
| 62 | $button = array( |
| 63 | 'url' => get_home_url(), |
| 64 | 'text' => 'Homepage', |
| 65 | ); |
| 66 | } |
| 67 | ?> |
| 68 | <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary tutor-mt-10"> |
| 69 | <?php echo esc_html( $button['text'] ); ?> |
| 70 | </a> |
| 71 | </div> |
| 72 | </div> |
| 73 | <?php endif ?> |
| 74 | <?php |
| 75 | tutor_utils()->tutor_custom_footer(); |
| 76 |