forked from jasonclark/BookMeUp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·67 lines (67 loc) · 3.2 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
<?php
//set value for title of page
$pageTitle = 'BookMeUp';
$subTitle = '@ The Library';
//set default tab and page view
$view = isset($_GET['view']) ? htmlentities($_GET['view']) : 'search';
//set filename for additional stylesheet - default is "none"
$customCSS = 'none';
//create an array with filepaths for multiple page scripts - default is meta/scripts/global.js
//$customScript[0] = './meta/scripts/global.js';
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- force latest IE rendering engine & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Cache-control" content="max-age=2592000, public" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title><?php echo $pageTitle.' '.$subTitle; ?></title>
<meta name="description" content="<?php echo $pageTitle.' '.$subTitle; ?>" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="http://www.jasonclark.info" />
<meta name="twitter:creator" content="@jaclark" />
<meta property="og:url" content="http://www.lib.montana.edu/beta/bookme/" />
<meta property="og:title" content="BookMeUp @ The Library" />
<meta property="og:description" content="BookMeUp uses the Amazon Product Advertising API to suggest related books to read based on a user's location and/or search query."/>
<meta property="og:image" content="http://www.lib.montana.edu/beta/bookme/meta/img/bookmeup-share-default.png" />
<link rel="apple-touch-icon" href="./meta/img/msu-mobile.png" />
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin />
<link href="https://experimental.worldcat.org/" rel="preconnect" crossorigin />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:700italic,400,700" rel="stylesheet" type="text/css" />
<link href="./meta/styles/m-app.css" media="screen" rel="stylesheet" type="text/css" />
<?php
if ($customCSS != 'none') {
echo '<link href="'.dirname($_SERVER['PHP_SELF']).'./meta/styles/'.$customCSS.'" media="screen" rel="stylesheet" type="text/css" />'."\n";
}
if ($customScript) {
$counted = count($customScript);
for ($i = 0; $i < $counted; $i++) {
echo '<script type="text/javascript" src="'.$customScript[$i].'"></script>'."\n";
}
}
?>
</head>
<body class="<?php echo $view; ?>">
<div id="doc">
<div id="hd">
<h1><?php echo $pageTitle.' '. $subTitle; ?></h1>
<ul id="nav">
<li id="tab1"><a accesskey="1" class="icon-search" href="./index?view=search">Suggest</a></li>
<li id="tab2"><a accesskey="2" class="icon-map" href="./index?view=where">Where</a></li>
<li id="tab3"><a accesskey="3" class="icon-info-circle" href="./index?view=about">What</a></li>
</ul><!-- end nav list -->
</div><!-- end hd div -->
<div id="main">
<?php include "switch.php"; ?>
</div><!-- end main div -->
<div id="ft">
<p class="info">
<a accesskey="4" class="site icon-browser" title="full site" href="/index.php">MSU Library</a>
<a accesskey="5" class="worldcat" title="powered by worldcat.org" href="http://www.worldcat.org/">Worldcat</a>
</p>
</div><!-- end ft div -->
</div><!-- end doc div -->
</body>
</html>