Finish framework, include W3.css build web site via templates and jQuery
[infodrom/musiikki-web.git] / templates / index.phtml
1 <!DOCTYPE html>
2 <!-- Source: https://www.w3schools.com/w3css/tryw3css_templates_interior_design.htm -->
3 <html class="ui-mobile">
4 <head>
5 <title><?=Config::main()->get('title')?></title>
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <?=Utilities::formatCSS('w3.css')?>
9 <?=Utilities::formatCSS('musiikki.css')?>
10 <link rel="shortcut icon" href="<?php echo Config::main()->get('favicon')?>">
11 <?=Utilities::formatScript('jquery-1.10.2.min.js')?>
12 <?=Utilities::formatScript('musiikki.js')?>
13 </head>
14
15 <body>
16
17 <!-- Sidebar/menu -->
18 <nav class="w3-sidebar w3-blue w3-collapse w3-top w3-large w3-padding" style="z-index: 3; width: 300px; font-weight: bold; display: none;" id="mySidebar"><br>
19   <a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-hide-large w3-display-topleft" style="width:100%;font-size:22px">Close Menu</a>
20   <div class="w3-container">
21     <h3 class="w3-padding-64"><b><?=Config::main()->get('title')?></b></h3>
22   </div>
23   <div class="w3-bar-block" style="padding-top:5px;">
24     <a href="#" onclick="open_page('home')" class="w3-bar-item w3-button w3-hover-white">Home</a> 
25     <a href="#" onclick="open_page('datetime')" class="w3-bar-item w3-button w3-hover-white">Date/Time</a> 
26     <a href="#" onclick="open_page('wifi')" class="w3-bar-item w3-button w3-hover-white">WiFi</a> 
27     <a href="#" onclick="open_page('shares')" class="w3-bar-item w3-button w3-hover-white">Shares</a> 
28     <a href="#" onclick="open_page('halt')" class="w3-bar-item w3-button w3-hover-white">Shutdown</a> 
29   </div>
30 </nav>
31
32 <!-- Top menu on small screens -->
33 <header class="w3-container w3-top w3-hide-large w3-blue w3-xlarge w3-padding">
34   <a href="javascript:void(0)" class="w3-button w3-blue w3-margin-right" onclick="w3_open()" title="Menu"><b>=</b></a>
35    <span><?=Config::main()->get('title')?></span>
36 </header>
37
38 <!-- Overlay effect when opening sidebar on small screens -->
39 <div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor: pointer; display: none;" title="close side menu" id="myOverlay"></div>
40
41 <!-- !PAGE CONTENT! -->
42 <div class="w3-main" style="margin-left:340px;margin-right:40px">
43
44 <?php echo Template::html('home'); ?>
45 <?php echo Template::html('datetime'); ?>
46 <?php echo Template::html('wifi'); ?>
47 <?php echo Template::html('shares'); ?>
48 <?php echo Template::html('halt'); ?>
49 <?php echo Template::html('response'); ?>
50
51 <!-- End page content -->
52 </div>
53
54 </body>
55 </html>