-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathpermission-denied.php
50 lines (44 loc) · 1.61 KB
/
permission-denied.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Display Permission denied
*
* @package Tutor\Templates
* @author Themeum <support@themeum.com>
* @link https://themeum.com
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
tutor_utils()->tutor_custom_header();
?>
<div class="tutor-wrap tutor-wrap-parent tutor-page-permission-denied">
<div class="tutor-container">
<div class="tutor-row tutor-justify-center">
<div class="tutor-col-md-8 tutor-col-lg-6 tutor-col-xl-5">
<div class="tutor-card">
<div class="tutor-px-40 tutor-py-64 tutor-text-center">
<div class="tutor-svg-img">
<img src="<?php echo esc_url( tutor()->url . 'assets/images/permission-denied.svg' ); ?>" alt="<?php esc_html_e( 'Permission Denied', 'tutor' ); ?>">
</div>
<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>
<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>
<?php
if ( ! isset( $button ) ) {
$button = array(
'url' => get_home_url(),
'text' => 'Homepage',
);
}
?>
<a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-btn tutor-btn-primary">
<?php echo esc_html( $button['text'] ); ?>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
tutor_utils()->tutor_custom_footer();