forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathincludes.php
More file actions
33 lines (27 loc) · 1.05 KB
/
Copy pathincludes.php
File metadata and controls
33 lines (27 loc) · 1.05 KB
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
<!-- Common header includes for all display pages -->
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="css/favicon.ico" />
<!-- Core CSS -->
<link rel="stylesheet" href="css/bootstrap.css">
<?php
global $master_account;
if(isset($_SESSION["userCakeUser"]) && is_object($_SESSION["userCakeUser"]) and $_SESSION["userCakeUser"]->user_id == $master_account){
echo '<link rel="stylesheet" href="css/sb-admin-master.css">';
} else {
echo '<link rel="stylesheet" href="css/sb-admin.css">';
}
?>
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Core JavaScript -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/userfrosting.js"></script>
<!-- Adjust padding for fixed navbars -->
<script>
$(document).ready(function(){
$(document.body).css('padding-top', $('.navbar-fixed-top').height() + 10);
$(window).resize(function(){
$(document.body).css('padding-top', $('.navbar-fixed-top').height() + 10);
});
});
</script>