Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<?php
if(file_exists(__DIR__.'/config.php')) {
$configuration = require __DIR__ . '/config.php';
} else {
$configuration = require __DIR__ . '/config.dist.php';
}
session_start();
if(isset($configuration['environment']) && $configuration['environment'] == 'dev') {
$baseUrl = '';
} else {
$basePath = str_replace('index.php', '', $_SERVER['SCRIPT_NAME']);
$baseUrl = 'https://dv33nsqk9r6kp.cloudfront.net' . $basePath;
}
?>
<html lang="en" style="height:100%;" ng-app="webmenusFrontendApp">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
<script>
<?php
if(isset($configuration['environment']) && $configuration['environment'] == 'dev') {
?>
//var BASE_ASSET_URL = 'https://dv33nsqk9r6kp.cloudfront.net/webmenus2/';
var BASE_ASSET_URL = './';
<?php
} else {
?>
var BASE_ASSET_URL = './';
<?php
}
?>
</script>
<?php if(!isset($configuration['environment']) || $configuration['environment'] !== 'dev') { ?>
<script>
var _prum = [['id', '55c3afbfabe53d636c49dcde'],
['mark', 'firstbyte', (new Date()).getTime()]];
(function() {
var s = document.getElementsByTagName('script')[0]
, p = document.createElement('script');
p.async = 'async';
p.src = '//rum-static.pingdom.net/prum.min.js';
s.parentNode.insertBefore(p, s);
})();
</script>
<?php } ?>
<script>
window.paceOptions = {
ajax: {
trackMethods: ['GET', 'POST', 'DELETE', 'PUT', 'PATCH'],
ignoreURLs: ['autosave', 'keepAlive.php']
}
};
function imgLoaded(img){
var $img = $(img);
$img.parent().addClass('loaded');
};
</script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title ng-bind="pageTitle"></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<?php
if(isset($configuration['environment']) && $configuration['environment'] == 'dev') {
?><link rel="stylesheet" href="dist/main.css?<?=filemtime('dist/main.css')?>"><?php
} else {
/** not using CDN because CORs issue w/ ui.grid fonts in production */
?><link rel="stylesheet" href="dist/main.css?<?=filemtime('dist/main.css')?>"><?php
}
?>
</head>
<body class="{{page}}">
<div id="splashLoading" style="width:100%; height:100%;">
<table style="width:100%; height:100%;">
<tr>
<td valign="middle" style="text-align:center;">
<img src="share_image.png" style="max-width:100px;" alt="School Nutrition and Fitness Menus" />
<br />
<br />
<i class="fa fa-spinner fa-pulse"></i> Loading Web Menus
</td>
</tr>
</table>
</div>
<div ng-view id="ng-view"></div>
<div id="disclaimerFullScreen" style="overflow:auto;" ng-controller="disclaimerCntrl">
<div ng-include="'ng/library/disclaimer/disclaimer.html'"></div>
<div style="text-align:left;">
<input type="radio" ng-model="remember" ng-value="'1'" /> I'm the only one using this computer account. Remember if "I agree".
<br />
<input type="radio" ng-model="remember" ng-value="'0'" /> Other people use this computer account
<br />
</div>
<button class="btn btn-default pull-right" style=margin-right:5px;" ng-click="accept()">Accept</button>
</div>
<script src="../single-sign-on/dist/bower_components.js"></script>
<?php
if(isset($configuration['environment']) && $configuration['environment'] == 'dev') {
?><script src="dist/frontend.js?<?=filemtime('dist/frontend.js')?>"></script><?php
} else {
?><script src="<?=$baseUrl?>dist/frontend.min.js?<?=filemtime('dist/frontend.min.js')?>"></script><?php
}
?>
<?php
if(isset($configuration['environment']) && $configuration['environment'] == 'dev') {
?><script src="dist/templateCache.js?<?=filemtime('dist/templateCache.js')?>"></script><?php
} else {
?><script src="<?=$baseUrl?>dist/templateCache.js?<?=filemtime('dist/templateCache.js')?>"></script><?php
}
?>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script>
<script type="text/javascript" async src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<style type="text/css">
.isScreenshot iframe.goog-te-banner-frame {
display:none;
}
iframe.goog-te-banner-frame {
top: auto !important; bottom:0;
}
body {
position: static !important; top:0px !important;
}
</style>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.