summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/sscuttlizr/top.inc.php
blob: 7a355d6da9b3aa92f8bb4cf7a3f1e64787b9640d (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
<!DOCTYPE html>
<html class="no-js">
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<title><?php echo filter($GLOBALS['sitename'] .(isset($pagetitle) ? ' » ' . $pagetitle : '')); ?></title>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<link rel="icon" type="image/png" href="<?php echo $theme->resource('icon.png');?>"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $theme->resource('css/bootstrap.min.css');?>"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $theme->resource('css/font-awesome.min.css');?>"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $theme->resource('scuttle.css');?>"/>
	<link rel="search" type="application/opensearchdescription+xml" href="<?php echo ROOT ?>api/opensearch.php" title="<?php echo htmlspecialchars($GLOBALS['sitename']) ?>"/>
	<?php
	if (isset($rsschannels)) {
		$size = count($rsschannels);
		for ($i = 0; $i < $size; $i++) {
			echo '  <link rel="alternate" type="application/rss+xml" title="' . htmlspecialchars($rsschannels[$i][0]) . '"' . ' href="'. htmlspecialchars($rsschannels[$i][1]) .'" />' . "\n";
		}
	}
	?>
	
	<script type="text/javascript" src="<?php echo ROOT ?>js/sscuttlizr/modernizr.min.js"></script>
	<?php if (DEBUG_MODE) : ?>
		<script type="text/javascript" src="<?php echo ROOT ?>js/sscuttlizr/jquery-1.11.0.js"></script>
		<script type="text/javascript" src="<?php echo ROOT_JS ?>jquery.jstree.js"></script>
		<script type="text/javascript" src="<?php echo ROOT ?>js/sscuttlizr/bootstrap.js"></script>
	<?php else: ?>
		<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
		<script>
			window.jQuery || document.write('<script src="<?php echo ROOT ?>js/sscuttlizr/jquery-1.11.0.min.js"><\/script>')
		</script>
		<script type="text/javascript" src="<?php echo ROOT_JS ?>jquery.jstree.min.js"></script>
		<script type="text/javascript" src="<?php echo ROOT ?>js/sscuttlizr/bootstrap.min.js"></script>
	<?php endif ?>
	<?php
	if ( isset($bookmarks) && ! empty($bookmarks) && isset($GLOBALS['enableQrCodes']) && $GLOBALS['enableQrCodes'] == true ) {
		?>
		<script type="text/javascript" src="<?php echo ROOT ?>js/sscuttlizr/jquery.qrcode.min.js"></script>
		<?php
	}
	?>
	<script type="text/javascript" src="<?php echo ROOT ?>jsScuttle.php"></script>
	
</head>
<body>
	<!--[if lt IE 8]>
	<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
	<![endif]-->
	<div id="page">
		<?php
		$headerstyle = '';
		if(isset($_GET['popup'])) {
			$headerstyle = ' popup';
		}
		?>
		<nav id="header" class="navbar navbar-default<?php echo $headerstyle; ?>" role="navigation">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#sscuttlizr-navbar">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="<?php echo ROOT ?>"><?php echo $GLOBALS['sitename']; ?></a>
			</div>
			<div class="collapse navbar-collapse" id="sscuttlizr-navbar">
				<?php
				if(!isset($_GET['popup'])) {
					$this->includeTemplate('toolbar.inc');
				}
				?>
			</div>
		</nav>
		<div class="container-full">
			<div class="row" id="subtitle">
				<div class="col-4 col-xs-12 col-sm-4 col-lg-4">
					<?php
					if (isset($subtitlehtml)) {
						echo '<div class="container-full">' . $subtitlehtml . "</div>";
					} else if (isset($subtitle)) {
								echo '<div class="container-full">' . htmlspecialchars($subtitle) . "</div>";
					}
					?>
				</div>
				<div class="col-4 col-xs-12 col-sm-4 col-lg-4"></div>
				<div class="col-4 col-xs-12 col-sm-4 col-lg-4">
					<?php
					if ( ! isset($_GET['popup']) && ($pageName == 'bookmarks' || $pageName == 'index') ) {
						include('search.menu.php');
					}
					?>
				</div>
			</div>
		</div>
		<div class="container-full">
			<div class="row">
				<div class="col-12 col-xs-12 col-sm-12 col-lg-12">
					<?php
					if(DEBUG_MODE) {
						echo '<p class="error">'. T_('Admins, your installation is in "Debug Mode" ($debugMode = true). To go in "Normal Mode" and hide debugging messages, change $debugMode to false into config.php.') ."</p>\n";
					}
					if (isset($error) && $error!='') {
						echo '<p class="error">'. $error ."</p>\n";
					}
					if (isset($msg) && $msg!='') {
						echo '<p class="success">'. $msg ."</p>\n";
					}
					if (isset($tipMsg) && $tipMsg!='') {
						echo '<p class="tipMsg">'. $tipMsg ."</p>\n";
					}
					?>
				</div>
			</div>
		</div>