-
Notifications
You must be signed in to change notification settings - Fork 0
/
student-portal-page.php
68 lines (61 loc) · 1.76 KB
/
student-portal-page.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
<?
defined('ABSPATH') OR exit;
/**
* Template Name: Student Portal Page
* @package WordPress
* @subpackage WP-Skeleton
*/
get_header();
if (!isset($_SESSION['Login_Status'])){
$url = "https://login.highland.edu/";
wp_redirect( $url);
die();
}
if ($_SESSION['Login_Status'] == "staff"){
$url = get_permalink(811);
wp_redirect( $url);
die();
}
global $client_type;
$client_type = $_SESSION['Login_Status'];
get_template_part( 'sub-header', 'index' ); //the header stuffs
get_template_part( 'menu', 'index' ); //the menu + logo/site title
?>
<div class="super-container title-holder">
<div class="container">
<div class="sixteen columns alpha omega primary-nav-holder">
<header>
<h1><? the_title(); ?></h1>
</header><!-- access -->
</div><!-- menu-holder -->
</div>
</div>
<div class="super-container portal-menu-holder">
<div class="container">
<div class="sixteen columns alpha omega primary-nav-holder">
<div id="more_access">
<? wp_nav_menu(array('theme_location' => 'resource-nav')); ?>
</div><!-- access -->
</div><!-- menu-holder -->
</div>
</div>
<div class="super-container interior-page">
<div class="container">
<div class="two-thirds column alpha omega" id="portal_page">
<div class="eight columns alpha omega portal-news-feed">
<? get_template_part('portal-newsfeed'); ?>
</div>
<div class="eight columns alpha omega portal-bulletin-board">
<? get_template_part('portal-bulletin-board'); ?>
</div>
<div class="sixteen columns alpha omega portal-events">
<div class="events-header">
<p>campus events</p>
</div>
<? get_template_part('events-feed'); ?>
</div>
</div>
<? get_template_part('sidebar'); ?>
</div>
</div>
<? get_footer(); ?>