1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/views/master.blade.php

120 lines
4.6 KiB
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
2014-06-02 18:21:47 +02:00
<title>Invoice Ninja | {{ isset($title) ? $title : ' Free Online Invoice Templates & Generator' }}</title>
<meta name="description" content="{{ isset($description) ? $description : 'Create and generate custom invoices online for free using Invoice Ninja. Use our templates or customize your own today.' }}"></meta>
2014-05-25 20:38:40 +02:00
<!-- Source: https://github.com/hillelcoren/invoice-ninja -->
<!-- Version: {{ NINJA_VERSION }} -->
2013-11-26 13:45:07 +01:00
<meta charset="utf-8">
2014-02-16 21:32:25 +01:00
<meta property="og:site_name" content="Invoice Ninja"></meta>
2014-03-17 19:05:01 +01:00
<meta property="og:url" content="https://www.invoiceninja.com"></meta>
2014-02-16 21:32:25 +01:00
<meta property="og:title" content="Invoice Ninja"></meta>
2014-03-23 16:59:30 +01:00
<meta property="og:image" content="https://www.invoiceninja.com/images/social.jpg"></meta>
2014-02-16 21:32:25 +01:00
<meta property="og:description" content="Simple, Intuitive Invoicing."></meta>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href='//fonts.googleapis.com/css?family=Roboto:400,700,900,100' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,300,700' rel='stylesheet' type='text/css'>
<link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon">
<link href="https://www.invoiceninja.com" rel="canonical"></link>
2014-05-06 10:50:17 +02:00
<script src="{{ asset('built.js') }}" type="text/javascript"></script>
2014-01-02 14:21:15 +01:00
<script type="text/javascript">
2014-04-22 17:10:41 +02:00
var NINJA = NINJA || {};
NINJA.isRegistered = {{ Utils::isRegistered() ? 'true' : 'false' }};
2014-04-22 22:10:14 +02:00
2014-01-02 14:21:15 +01:00
window.onerror = function(e) {
try {
$.ajax({
type: 'GET',
url: '{{ URL::to('log_error') }}',
2014-03-23 20:17:45 +01:00
data: 'error='+encodeURIComponent(e)+'&url='+encodeURIComponent(window.location)
2014-01-02 14:21:15 +01:00
});
} catch(err) {}
return false;
}
</script>
2013-11-26 13:45:07 +01:00
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
2013-12-27 10:10:32 +01:00
2013-12-07 19:45:00 +01:00
@yield('head')
2013-11-26 13:45:07 +01:00
</head>
<body>
2014-05-13 16:05:26 +02:00
@if (isset($_ENV['TAG_MANAGER_KEY']) && $_ENV['TAG_MANAGER_KEY'])
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id={{ $_ENV['TAG_MANAGER_KEY'] }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ $_ENV['TAG_MANAGER_KEY'] }}');</script>
<!-- End Google Tag Manager -->
2013-11-26 13:45:07 +01:00
2014-05-13 16:05:26 +02:00
<script>
function trackUrl(url) {
url = '/track' + url.replace('http:/', '');
dataLayer.push({'event':url, 'eventLabel':this.src});
}
</script>
@elseif (isset($_ENV['ANALYTICS_KEY']) && $_ENV['ANALYTICS_KEY'])
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}');
ga('send', 'pageview');
function trackUrl(url) {
url = '/track' + url.replace('http:/', '');
ga('send', 'pageview', url);
//ga('send', 'event', 'photo', 'hover', this.src);
}
</script>
2014-05-11 20:24:30 +02:00
@else
2014-05-13 16:05:26 +02:00
<script>
function trackUrl(url) {}
</script>
@endif
2014-05-13 16:05:26 +02:00
2013-12-07 19:45:00 +01:00
@yield('body')
2013-11-26 13:45:07 +01:00
<script type="text/javascript">
NINJA.formIsChanged = false;
$(function() {
2014-04-18 10:57:31 +02:00
$('form.warn-on-exit input, form.warn-on-exit textarea, form.warn-on-exit select').change(function() {
NINJA.formIsChanged = true;
});
});
2014-04-18 10:57:31 +02:00
$('form').submit(function() {
NINJA.formIsChanged = false;
});
$(window).on('beforeunload', function() {
if (NINJA.formIsChanged) {
return "{{ trans('texts.unsaved_changes') }}";
2014-04-25 15:04:57 +02:00
} else {
return undefined;
}
});
//$('a[rel!=ext]').click(function() { $(window).off('beforeunload') });
</script>
2013-11-26 13:45:07 +01:00
</body>
2013-12-07 19:45:00 +01:00
</html>