|
@@ -1,4 +1,7 @@
|
|
|
<?php
|
|
|
+$this->RegisterJSFile("javascript.js");
|
|
|
+$this->RegisterJSFile("controllers/main.js");
|
|
|
+
|
|
|
function FormatURI(URI $uri, $base=""){
|
|
|
$image=$uri->GetImage();
|
|
|
$imageHTML="";
|
|
@@ -7,9 +10,11 @@ function FormatURI(URI $uri, $base=""){
|
|
|
return '<a href="'.$base.$uri->GetLinkLocation().'">'.$imageHTML.$uri->GetText().'</a>';
|
|
|
}
|
|
|
?>
|
|
|
-
|
|
|
+<?php
|
|
|
+{@Init}
|
|
|
+?>
|
|
|
<!DOCTYPE html>
|
|
|
-<html>
|
|
|
+<html ng-app="robware">
|
|
|
<head>
|
|
|
<title>
|
|
|
{@Title}<?php
|
|
@@ -20,9 +25,12 @@ function FormatURI(URI $uri, $base=""){
|
|
|
</title>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
|
|
- <link href="/css/style.css" rel="stylesheet" />
|
|
|
- <link href="/css/style-med.css" media="(max-width:1023px)" rel="stylesheet" />
|
|
|
- <link href="/css/style-small.css" media="(max-width:680px)" rel="stylesheet" />
|
|
|
+ <link href="/css/style.css?t=<?= filemtime("css/style.css") ?>" rel="stylesheet" />
|
|
|
+ <link href="/css/style-med.css?t=<?= filemtime("css/style-med.css") ?>" media="(max-width:1023px)" rel="stylesheet" />
|
|
|
+ <link href="/css/style-small.css?t=<?= filemtime("css/style-small.css") ?>" media="(max-width:680px)" rel="stylesheet" />
|
|
|
+ <?php foreach ($this->GetCSSFiles() as $css){
|
|
|
+ echo '<link href="/css/',$css,'?t=', filemtime('css/'.$css),'" rel="stylesheet" />';
|
|
|
+ }?>
|
|
|
<style type="text/css">
|
|
|
{@CSS}
|
|
|
</style>
|
|
@@ -32,9 +40,12 @@ function FormatURI(URI $uri, $base=""){
|
|
|
<style media="(max-width:680px)">
|
|
|
{@CSSSmall}
|
|
|
</style>
|
|
|
+ <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
|
|
- <script src="/javascript.js"></script>
|
|
|
+ <?php foreach ($this->GetJSFiles() as $js){
|
|
|
+ echo '<script src="/scripts/',$js,'?t=', filemtime('scripts/'.$js),'"></script>';
|
|
|
+ }?>
|
|
|
<script type="text/javascript">
|
|
|
{@JavaScript}
|
|
|
</script>
|
|
@@ -110,30 +121,6 @@ function FormatURI(URI $uri, $base=""){
|
|
|
</div>
|
|
|
<div id="footer">{@Footer}</div>
|
|
|
</div>
|
|
|
- <?php if (!isset($_COOKIE['cookiePopupConfirmed']) || $_COOKIE['cookiePopupConfirmed']!=true) { ?>
|
|
|
- <div id="cookiePopup">
|
|
|
- <p>This site uses cookies. Please leave if you're not OK with this.</p>
|
|
|
- <p>In a hilarious twist of irony, we have to store a cookie to stop this popup appearing on every page.</p>
|
|
|
- <div>
|
|
|
- <button>OK</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php }?>
|
|
|
<div class="backdrop"></div>
|
|
|
- <!-- Piwik -->
|
|
|
- <!--script type="text/javascript">
|
|
|
- var _paq = _paq || [];
|
|
|
- _paq.push(['trackPageView']);
|
|
|
- _paq.push(['enableLinkTracking']);
|
|
|
- (function() {
|
|
|
- var u="//piwik.robware.uk/";
|
|
|
- _paq.push(['setTrackerUrl', u+'piwik.php']);
|
|
|
- _paq.push(['setSiteId', 1]);
|
|
|
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
|
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
|
- })();
|
|
|
- </script>
|
|
|
- <noscript><p><img src="//piwik.robware.uk/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
|
- <!-- End Piwik Code -->
|
|
|
</body>
|
|
|
</html>
|