-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.php
More file actions
225 lines (193 loc) · 7.86 KB
/
index.php
File metadata and controls
225 lines (193 loc) · 7.86 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?php
$page_title = "Benner Library - Olivet Nazarene University";
$body_class = "no-side-bar";
$body_id = "home";
$css = "<link rel='stylesheet' type='text/css' href='/css/home.css'>";
$js = "";
?>
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/top.php";
include_once($path);
?>
<!-- ===== content below here ======================================================== -->
<!-- following code allow home hero image to be randomized -->
<?php
$imgDir = 'img/home-page/'; //directory of image files
$imgs = glob($imgDir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE); // array of images
$ranImg = $imgs[array_rand($imgs)]; //set random image
$info = pathinfo($ranImg);
$file = basename($ranImg,'.'.$info['extension']);
//$img = array('img_2392.jpg', 'img_2400.jpg', 'img_2412.jpg', 'chess-cut.jpg', "books.png" ); // array of filenames
//$i = rand(0, count($img)-1); // generate random number size of the array
//$selHomeHeroImg = "$img[$i]"; // set variable equal to which random filename was chosen
?>
<!-- if would like to go back to static picture comment out style portion below and modify home-hero.less file -->
<div id="home-hero" class="" style="background: url(<?php echo $ranImg; ?>)">
<ul>
<li>
<a href="/subject-guides/index_no_js.php" class="no-js-link">Subject Guides</a>
<div class="home-hero-section">
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/resource-navigator_drop-page/subject-guides.php";
include_once($path);
?>
</div>
</li>
<li>
<a href="/books-media/index.php">Books & Media</a>
<div class="home-hero-section">
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/resource-navigator_drop-page/books-media.php";
include_once($path);
?>
</div>
</li>
<li>
<a href="/journals-articles/index.php">Journals & Articles</a>
<div class="home-hero-section">
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/resource-navigator_drop-page/journals-articles.php";
include_once($path);
?>
</div>
</li>
<li>
<a href="/services/index.php">Services</a>
<div class="home-hero-section">
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/resource-navigator_drop-page/services.php";
include_once($path);
?>
</div>
</li>
<li>
<a href="/help/index.php">Help</a>
<div class="home-hero-section">
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/resource-navigator_drop-page/help.php";
include_once($path);
?>
</div>
</li>
</ul>
<div class="cf"> </div>
<!-- end #home-hero --></div>
<div class="split l25-r75 cf">
<div class="left no-margin-top" >
<div id="googleCal" class="margin10-left">
<script>
$(document).ready(function() {
setInterval(timestamp, 5000);
});
function timestamp() {
$.ajax({
url: 'googleCalendar.php?try=2',
success: function(data) {
$('#googleCal').html(data);
},
});
}
</script>
<?php
include_once("googleCalendar.php");
?>
</div>
</div>
<div class="right">
<div id="bulletins">
<div id="window">
<div class="arrow left" style="width: 30px;"></div>
<div class="arrow right hover" style="width: 30px;"></div>
<div id="reel">
<div class="bulletin">
<a href="/departments/reference/desk/index.php"><img id="previewImg" src="https://library.olivet.edu/img/bulletins/220x260/research.png" alt="Reference Desk Status" title="click to see current Ref Status"></a>
</div>
<div class="bulletin">
<img id="previewImg" src="https://library.olivet.edu/img/bulletins/220x260/promote_archives_full.png" alt="University Archives" title="promote_archives_full.png">
</div>
<div class="bulletin">
<img id="previewImg" src="https://library.olivet.edu/img/bulletins/220x260/promote_green_screen.png" alt="green_screen" title="promote_green_screen.png">
</div>
<div class="bulletin">
<img id="previewImg" src="https://library.olivet.edu/img/bulletins/220x260/promote_dual_monitors.png" alt="Dual Monitors" title="promote_dual_monitors.png">
</div>
<div class="bulletin">
<img id="previewImg" src="https://library.olivet.edu/img/bulletins/220x260/promote_backdrops.png" alt="Photo Backdrops" title="promote_backdrops.png">
</div>
<!--<?php
include("bulletins/display.php");
?>-->
</div>
</div>
</div>
</div>
<!-- end #benner_bulletins --></div>
<!-- The following two lines of code will generate the Benner Bulletins
below these two lines of code is how we orginally did the Bulletins
in case there is an application failure to be able to get Bulletins
back -->
<!--Must have at least six bulletins or it leaves an awkward space-->
<!--1 This position should be reserved for the most pertinent, time sensitive, and important bulletin like closing announcements-->
<!--
<div class="bulletin">
<img src="/img/bulletins/220x130/lightning_usb.png" alt="New Items for Sale" title="For Sale">
<h6>
Lightning Cables<br />
$5 each<br /><br />
USB Power Adapters<br />
$6 each
</h6>
</div>
<!--2 Google Calendar is a permanent bulletin. It should always be in the second position.-->
<!--
<div class="bulletin">
<iframe src="https://www.google.com/calendar/embed?title=Benner%20Hours%20%26%20Events&showNav=0&showDate=0&showPrint=0&showTz=0&mode=AGENDA&height=240&wkst=1&bgcolor=%23FFFFFF&src=72ts5jjncg48q761l4bsl9589g%40group.calendar.google.com&color=%236B3304&ctz=America%2FChicago" style=" border-width:0 " width="220" height="240" frameborder="0" scrolling="no"></iframe>
<a href="/about/calendar/index.php">View Full Calendar</a>
</div>
<!--3-->
<!--
<div class="bulletin">
<a href="/about/calendar/index.php" title="library calendar" /><img src="img/bulletins/220x130/revival.png" alt="special hours" title="Link goes to library calendar" /></a>
<p class="title-font">The library will be closed for Winter Revival Evening Services. Please refer to our <a href="/about/calendar/index.php">calendar</a> or our <a id="pdf" href="/about/hours/doc/exceptions.pdf">exceptions pdf</a> for revised dates and times.</p>
</div>
<!--4-->
<!--
<div class="bulletin">
<a href="/about/calendar/index.php" title="library calendar" /><img src="img/bulletins/220x130/special_hours_winter_break.png" alt="special hours" title="Link goes to library calendar" /></a>
<p class="title-font">Please refer to our <a href="/about/calendar/index.php">calendar</a> or our <a id="pdf" href="/about/hours/doc/exceptions.pdf">exceptions pdf</a> for revised dates and times.</p>
</div>
<!--5-->
<!--
<div class="bulletin">
<a href="/services/faculty_services/index.php"><img src="/img/bulletins/220x260/faculty_resources.png" alt="Faculty Resources" title="Link to Faculty Resources page."></a>
</div>
<!--6-->
<!--7-->
<!--
<div class="bulletin">
<img src="/img/bulletins/220x130/special_events_fishbowl_meditations.png" alt="" title="">
<p>
Join us for Fishbowl Meditations every Friday from 10-11am in the Library Fishbowl.
</p>
</div>
<!--8-->
<!--
<div class="bulletin">
<img src="/img/bulletins/220x130/technical_difficulties.png" alt="" title="">
<p>
Some of our database suppliers no longer support Internet Explorer version 8 or older. If you are experiencing difficulties accessing our databases, try another browser such as Firefox or Chrome before contacting us.
</p>
</div>
-->
<!-- ===== content above here ========================================================== -->
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/scripts/bottom.php";
include_once($path);
?>