course-filter
1 year ago
dashboard
8 months ago
ecommerce
8 months ago
email
9 months ago
global
3 years ago
instructor
3 years ago
loop
9 months ago
modal
3 years ago
profile
3 years ago
shortcode
1 year ago
single
8 months ago
template-part
1 year ago
widget
3 years ago
archive-course-init.php
9 months ago
archive-course.php
3 years ago
course-embed.php
1 year ago
course-none.php
3 years ago
dashboard.php
1 year ago
feature_disabled.php
3 years ago
login-form.php
1 year ago
login.php
3 years ago
metabox-wrapper.php
3 years ago
permission-denied.php
3 years ago
public-profile.php
8 months ago
single-assignment.php
3 years ago
single-content-loader.php
2 years ago
single-course.php
9 months 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
permission-denied.php
51 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 | tutor_utils()->tutor_custom_header(); |
| 16 | ?> |
| 17 | |
| 18 | <div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied"> |
| 19 | <div class="tutor-container"> |
| 20 | <div class="tutor-row tutor-justify-center"> |
| 21 | <div class="tutor-col-md-8 tutor-col-lg-6 tutor-col-xl-5"> |
| 22 | <div class="tutor-card"> |
| 23 | <div class="tutor-px-40 tutor-py-64 tutor-text-center"> |
| 24 | <div class="tutor-svg-img"> |
| 25 | <img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>"> |
| 26 | </div> |
| 27 | |
| 28 | <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> |
| 29 | <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> |
| 30 | |
| 31 | <?php |
| 32 | if ( ! isset( $button ) ) { |
| 33 | $button = array( |
| 34 | 'url' => get_home_url(), |
| 35 | 'text' => 'Homepage', |
| 36 | ); |
| 37 | } |
| 38 | ?> |
| 39 | <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary"> |
| 40 | <?php echo esc_html( $button['text'] ); ?> |
| 41 | </a> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | |
| 49 | <?php |
| 50 | tutor_utils()->tutor_custom_footer(); |
| 51 |