course-filter
4 years ago
dashboard
4 years ago
email
4 years ago
global
4 years ago
loop
4 years ago
profile
4 years ago
shortcode
4 years ago
single
4 years ago
template-part
4 years ago
widget
4 years ago
archive-course-init.php
5 years ago
archive-course.php
4 years ago
course-none.php
5 years ago
dashboard.php
4 years ago
feature_disabled.php
4 years ago
instructor-setting.php
4 years ago
login.php
5 years ago
permission-denied.php
4 years ago
public-profile-setting.php
4 years ago
single-assignment.php
4 years ago
single-course-enrolled-announcements.php
5 years ago
single-course-enrolled-overview.php
5 years ago
single-course-enrolled-questions.php
5 years ago
single-course-enrolled-subpage.php
4 years ago
single-course-enrolled.php
5 years ago
single-course-instructor.php
5 years ago
single-course.php
4 years ago
single-lesson.php
4 years ago
single-preview-lesson.php
4 years ago
single-quiz.php
4 years ago
student-public-profile.php
4 years ago
template.php
5 years ago
permission-denied.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display Permission denied |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | * |
| 12 | * Template content and design updated |
| 13 | * |
| 14 | * @version 1.9.6 |
| 15 | */ |
| 16 | |
| 17 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | exit; |
| 19 | } |
| 20 | |
| 21 | get_header(); |
| 22 | |
| 23 | ?> |
| 24 | |
| 25 | <div class="tutor-denied-wrapper"> |
| 26 | |
| 27 | <div class="image-wrapper"> |
| 28 | <img src="<?php echo esc_url( tutor()->url . 'assets/images/denied.png' ); ?>" alt="denied"> |
| 29 | </div> |
| 30 | |
| 31 | <div class="tutor-denied-content-wrapper"> |
| 32 | |
| 33 | <div> |
| 34 | <img src="<?php echo esc_url( tutor()->url . 'assets/images/tutor-logo.png' ); ?>" alt="tutor-logo"> |
| 35 | </div> |
| 36 | |
| 37 | |
| 38 | <div> |
| 39 | <h2> |
| 40 | <?php echo isset( $headline ) ? $headline : __( 'Permission Denied', 'tutor' ); ?> |
| 41 | </h2> |
| 42 | <p> |
| 43 | <?php echo isset( $message ) ? $message : __( 'You don\'t have enough privilege to access this page', 'tutor' ); ?> |
| 44 | </p> |
| 45 | <p> |
| 46 | <?php echo isset( $description ) ? $description : __( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?> |
| 47 | </p> |
| 48 | </div> |
| 49 | |
| 50 | <div> |
| 51 | <?php |
| 52 | if ( ! isset( $button ) ) { |
| 53 | $button = array( |
| 54 | 'url' => get_home_url(), |
| 55 | 'text' => 'Homepage', |
| 56 | ); |
| 57 | } |
| 58 | ?> |
| 59 | <a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-button"> |
| 60 | <?php echo $button['text']; ?> |
| 61 | </a> |
| 62 | </div> |
| 63 | |
| 64 | </div> |
| 65 | |
| 66 | </div> |
| 67 | |
| 68 | <?php |
| 69 | get_footer(); |
| 70 |