-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
136 lines (134 loc) · 4.6 KB
/
index.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php require_once('./config.php'); ?>
<!DOCTYPE html>
<html lang="en" class="" style="height: auto;">
<style>
#header{
height:70vh;
width:calc(100%);
position:relative;
top:-1em;
}
#header:before{
content:"";
position:absolute;
height:calc(100%);
width:calc(100%);
background-image:url(<?= validate_image($_settings->info("cover")) ?>);
background-size:cover;
background-repeat:no-repeat;
background-position: center center;
}
#header>div{
position:absolute;
height:calc(100%);
width:calc(100%);
z-index:2;
}
#top-Nav a.nav-link.active {
color: #001f3f;
font-weight: 900;
position: relative;
}
#top-Nav a.nav-link.active:before {
content: "";
position: absolute;
border-bottom: 2px solid #001f3f;
width: 33.33%;
left: 33.33%;
bottom: 0;
}
</style>
<?php require_once('inc/header.php') ?>
<body class="layout-top-nav layout-fixed layout-navbar-fixed" style="height: auto;">
<div class="wrapper">
<?php $page = isset($_GET['page']) ? $_GET['page'] : 'home'; ?>
<?php require_once('inc/topBarNav.php') ?>
<?php if($_settings->chk_flashdata('success')): ?>
<script>
alert_toast("<?php echo $_settings->flashdata('success') ?>",'success')
</script>
<?php endif;?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper pt-5" style="">
<?php if($page == "home" || $page == "about_us"): ?>
<div id="header" class="shadow mb-4">
<div class="d-flex justify-content-center h-100 w-100 align-items-center flex-column px-3">
<h1 class="w-100 text-center site-title"><?php echo $_settings->info('name') ?></h1>
<a href="./?page=projects" class="btn btn-lg btn-light rounded-pill w-25" id="enrollment"><b>Explore Projects</b></a>
</div>
</div>
<?php endif; ?>
<!-- Main content -->
<section class="content ">
<div class="container">
<?php
if(!file_exists($page.".php") && !is_dir($page)){
include '404.html';
}else{
if(is_dir($page))
include $page.'/index.php';
else
include $page.'.php';
}
?>
</div>
</section>
<!-- /.content -->
<div class="modal fade" id="confirm_modal" role='dialog'>
<div class="modal-dialog modal-md modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
</div>
<div class="modal-body">
<div id="delete_content"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='confirm' onclick="">Continue</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal" role='dialog'>
<div class="modal-dialog modal-md modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='submit' onclick="$('#uni_modal form').submit()">Save</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal_right" role='dialog'>
<div class="modal-dialog modal-full-height modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="fa fa-arrow-right"></span>
</button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<div class="modal fade" id="viewer_modal" role='dialog'>
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<button type="button" class="btn-close" data-dismiss="modal"><span class="fa fa-times"></span></button>
<img src="" alt="">
</div>
</div>
</div>
</div>
<!-- /.content-wrapper -->
<?php require_once('inc/footer.php') ?>
</body>
</html>