summaryrefslogtreecommitdiff
path: root/public/app/views/components/header_includes.php
blob: 1b528247bef483cfe588602031a6ad305c4380c1 (plain)
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
<?php 
    if (!isset($administration)) {
        $administration = false;
    }
?>

<!-- FONTS (CDN)
    /////////////////////////////////////////////////////////////////////////-->
<?php /* DEPRICATED:
    <!-- Roboto slab
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 
    <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400&display=swap" rel="stylesheet"> -->
    */
?>

<!-- Fira Sans -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500&display=swap" rel="stylesheet">

<!-- fontawesome icons (CDN) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />



<!-- LIBRARY (dependencies) CSS
    /////////////////////////////////////////////////////////////////////////-->

<!-- bootstap (CDN) -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">

<!-- datatables css -->
<link href="https://cdn.datatables.net/v/bs5/jszip-2.5.0/dt-1.13.4/b-2.3.6/b-colvis-2.3.6/b-html5-2.3.6/b-print-2.3.6/cr-1.6.2/date-1.4.0/fc-4.2.2/fh-3.3.2/kt-2.8.2/r-2.4.1/rr-1.3.3/sc-2.1.1/sl-1.6.2/sr-1.2.2/datatables.min.css" rel="stylesheet"/>

<!-- select2 css -->
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />



<!-- CUSTOM CSS
    /////////////////////////////////////////////////////////////////////////-->

<!-- bootstrap javascript (CDN) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"></script>

<!-- main css -->
<link href="/assets/css/class.css" rel="stylesheet">

<!-- overides  -->
<link href="/assets/css/overides.css" rel="stylesheet">


<!-- THEME CSS
    /////////////////////////////////////////////////////////////////////////-->

<?php   // decide a theme
    Render::view('components/theme');
?>

<!-- JAVASCRIPT 
    /////////////////////////////////////////////////////////////////////////-->

<!-- jQuery (CDN) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" integrity="sha512-pumBsjNRGGqkPzKHndZMaAG+bir374sORyzM3uulLV14lN5LyykqNk8eEeUlUkB3U0M4FApyaHraT65ihJhDpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

<!-- basic cookie handling (vanilla js) -->
<script src="/assets/js/cookie.js"></script>

<!-- pdfmake -->
<script src="<?=SITE_URL?>/assets/js/pdfmake/pdfmake.min.js"></script>
<script src="<?=SITE_URL?>/assets/js/pdfmake/vfs_fonts.js"></script>

<!-- datatables js -->
<script src="https://cdn.datatables.net/v/bs5/jszip-2.5.0/dt-1.13.4/b-2.3.6/b-colvis-2.3.6/b-html5-2.3.6/b-print-2.3.6/cr-1.6.2/date-1.4.0/fc-4.2.2/fh-3.3.2/kt-2.8.2/r-2.4.1/rr-1.3.3/sc-2.1.1/sl-1.6.2/sr-1.2.2/datatables.min.js"></script>

<!-- select2 js -->
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>   

<!-- marked -->
<script src="/assets/js/marked/marked.min.js"></script>

<?php /* NOTE:
    <!-- date handling in vanilla js ...
    https://stackoverflow.com/questions/27267565/javascript-returning-incorrect-date-from-an-input-type-date

    // convert to UTC to avoid "date minus one" issues where the supplied date is interpreted incorrectly as
    // the previous date.

    date = new Date(document.getElementById('date').value);
    console.log("original date: " + date.toString());
    console.log("UTC date string: " + date.toUTCString());

    //produces local machine timezone, and therefore incorrect date value

    date = new Date(date.toUTCString());
    console.log("UTC date string Date constructor: " + date.toString());

    utcDate = new Date(utcString.substr(0, utcString.indexOf("GMT")));
    console.log("UTC date string Date constructor (without 'GMT*'): " + utcDate.toString());
    console.log("UTC date number: " + date.getUTCDate());
    date.setDate(date.getUTCDate());
    date.setMonth(date.getUTCMonth());
    date.setFullYear(date.getUTCFullYear());
    console.log("UTC modified date: " + date.toString());

    Output:

    original date: Fri Jan 29 2021 23:16:11 GMT-0600 (Central Standard Time)
    UTC date string: Sat, 30 Jan 2021 05:16:11 GMT
    UTC date string Date constructor: Fri Jan 29 2021 23:16:11 GMT-0600 (Central Standard Time)
    UTC date string Date constructor (without 'GMT*'): Sat Jan 30 2021 23:16:11 GMT-0600 (Central Standard Time)
    UTC date number: 30
    UTC modified date: Sat Jan 30 2021 23:16:11 GMT-0600 (Central Standard Time)
    -->
*/