-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-application.php
61 lines (45 loc) · 1.16 KB
/
archive-application.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
<?php
/**
* The Template for displaying all single posts.
*
* @package Sitepoint Base
* @since Sitepoint Base 1.0
*/
$user_role = zr_get_user_role();
get_header();
switch ($user_role) {
case 'zr_client':
get_sidebar('client');
break;
case 'zr_admin':
get_sidebar('admin');
break;
case 'zr_tech':
get_sidebar('tech');
break;
default:
get_sidebar();
break;
}
?>
<main class="main">
<div class="container-fluid">
<div class="animated fadeIn">
<?php
switch ($user_role) {
case 'zr_client':
get_template_part('partials/apparchive', 'client');
break;
case 'zr_tech':
get_template_part('partials/apparchive', 'tech');
break;
default:
get_template_part('partials/apparchive', 'tech');
break;
}
?>
</div>
</div>
</main> <!-- /#maincontentcontainer -->
<?php get_sidebar('aside'); ?>
<?php get_footer(); ?>