-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathpermission-denied.php
69 lines (56 loc) · 1.34 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Display Permission denied
*
* @since v.1.0.0
* @author themeum
* @url https://themeum.com
*
* @package TutorLMS/Templates
* @version 1.4.3
*
* Template content and design updated
*
* @version 1.9.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header();
?>
<div class="tutor-denied-wrapper">
<div class="image-wrapper">
<img src="<?php echo esc_url( tutor()->url . 'assets/images/denied.png' ); ?>" alt="denied">
</div>
<div class="tutor-denied-content-wrapper">
<div>
<img src="<?php echo esc_url( tutor()->url . 'assets/images/tutor-logo.png' ); ?>" alt="tutor-logo">
</div>
<div>
<h2>
<?php echo isset( $headline ) ? $headline : __( 'Permission Denied', 'tutor' ); ?>
</h2>
<p>
<?php echo isset( $message ) ? $message : __( 'You don\'t have enough privilege to access this page', 'tutor' ); ?>
</p>
<p>
<?php echo isset( $description ) ? $description : __( 'Please make sure you are logged in to correct account if the content needs authorization.', 'tutor' ); ?>
</p>
</div>
<div>
<?php
if ( ! isset( $button ) ) {
$button = array(
'url' => get_home_url(),
'text' => 'Homepage',
);
}
?>
<a href="<?php echo esc_url( $button['url'] ); ?>" class="tutor-button">
<?php echo $button['text']; ?>
</a>
</div>
</div>
</div>
<?php
get_footer();