1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/views/public/header.blade.php

495 lines
19 KiB
PHP
Raw Normal View History

2014-03-20 23:12:07 +01:00
@extends('master')
@section('head')
2014-05-20 23:40:09 +02:00
<meta name="csrf-token" content="<?= csrf_token() ?>">
2014-04-28 22:22:55 +02:00
<link href="{{ asset('built.public.css') }}" rel="stylesheet" type="text/css"/>
2014-04-28 22:05:37 +02:00
2014-04-28 22:22:55 +02:00
<!--
2014-03-20 23:12:07 +01:00
<link href="{{ asset('vendor/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('css/bootstrap.splash.css') }}" rel="stylesheet" type="text/css"/>
2014-06-12 18:58:19 +02:00
<link href="{{ asset('css/splash.css') }}" rel="stylesheet" type="text/css"/>
2014-06-13 17:11:46 +02:00
-->
2014-04-30 16:14:11 +02:00
<!--
2014-03-20 23:12:07 +01:00
<link href="{{ asset('images/apple-touch-icon-114x114-precomposed.png') }}" rel="apple-touch-icon-precomposed" sizes="114x114">
<link href="{{ asset('images/apple-touch-icon-72x72-precomposed.png') }}" rel="apple-touch-icon-precomposed" sizes="72x72">
<link href="{{ asset('images/apple-touch-icon-57x57-precomposed.png') }}" rel="apple-touch-icon-precomposed">
2014-06-12 18:58:19 +02:00
-->
2014-05-06 19:54:28 +02:00
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
2014-06-12 18:58:19 +02:00
<script src="{{ asset('js/simpleexpand.js') }}" type="text/javascript"></script>
2014-05-06 19:54:28 +02:00
<script src="{{ asset('js/valign.js') }}" type="text/javascript"></script>
2014-06-13 15:49:37 +02:00
<script src="{{ asset('js/bootstrap.min.js') }}" type="text/javascript"></script>
2014-05-06 19:54:28 +02:00
2014-04-29 10:32:18 +02:00
<style>
2014-05-14 00:17:33 +02:00
.hero {
2014-04-29 10:32:18 +02:00
background-image: url({{ asset('/images/hero-bg-1.jpg') }});
2014-05-14 00:17:33 +02:00
}
.hero-about {
2014-05-12 12:14:29 +02:00
background-image: url({{ asset('/images/hero-bg-3.jpg') }});
2014-05-14 00:17:33 +02:00
}
.hero-plans {
2014-05-06 19:54:28 +02:00
background-image: url({{ asset('/images/hero-bg-plans.jpg') }});
2014-05-14 00:17:33 +02:00
}
.hero-contact {
2014-05-06 19:54:28 +02:00
background-image: url({{ asset('/images/hero-bg-contact.jpg') }});
2014-05-14 00:17:33 +02:00
}
.hero-features {
2014-04-29 10:32:18 +02:00
background-image: url({{ asset('/images/hero-bg-3.jpg') }});
2014-05-14 00:17:33 +02:00
}
.hero-secure {
background-image: url({{ asset('/images/hero-bg-secure-pay.jpg') }});
2014-06-12 18:58:19 +02:00
}
.hero-faq {
background-image: url({{ asset('/images/hero-bg-faq.jpg') }});
}
2014-06-13 17:11:46 +02:00
.hero-testi {
background-image: url({{ asset('/images/hero-bg-testi.jpg') }});
}
2014-04-29 10:32:18 +02:00
</style>
2014-05-06 19:54:28 +02:00
2014-03-20 23:12:07 +01:00
@stop
@section('body')
2014-05-06 10:50:17 +02:00
<!--
2014-03-20 23:12:07 +01:00
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=635126583203143";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2014-05-06 10:50:17 +02:00
-->
2014-03-20 23:12:07 +01:00
{{ Form::open(array('url' => 'get_started', 'id' => 'startForm')) }}
{{ Form::hidden('guest_key') }}
{{ Form::close() }}
<script>
if (isStorageSupported()) {
$('[name="guest_key"]').val(localStorage.getItem('guest_key'));
}
@if (isset($invoiceNow) && $invoiceNow)
2014-05-14 00:17:33 +02:00
getStarted();
@endif
2014-03-20 23:12:07 +01:00
function isStorageSupported() {
2014-03-23 16:49:14 +01:00
if ('localStorage' in window && window['localStorage'] !== null) {
var storage = window.localStorage;
} else {
2014-03-20 23:12:07 +01:00
return false;
}
2014-03-23 16:49:14 +01:00
var testKey = 'test';
try {
storage.setItem(testKey, '1');
storage.removeItem(testKey);
return true;
} catch (error) {
return false;
}
2014-03-20 23:12:07 +01:00
}
function getStarted() {
$('#startForm').submit();
2014-03-23 16:49:14 +01:00
return false;
2014-03-20 23:12:07 +01:00
}
2014-06-12 18:58:19 +02:00
</script>
2014-06-13 15:49:37 +02:00
<div class="navbar-top navbar hidden-phone" style="margin-bottom:0px">
2014-03-20 23:12:07 +01:00
<div class="container">
<div class="navbar-inner">
2014-06-13 15:49:37 +02:00
<ul>
2014-06-15 22:54:58 +02:00
<li>{{ link_to('https://www.invoiceninja.com/about', 'About Us' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/contact', 'Contact Us' ) }}</li>
<li>{{ link_to('http://blog.invoiceninja.com', 'Blog' ) }}&nbsp;&nbsp;</li>
2014-06-13 15:49:37 +02:00
<li><a href="https://www.facebook.com/invoiceninja" target="_blank"><span class="socicon">b</span></a></li>
<li><a href="https://twitter.com/invoiceninja" target="_blank"><span class="socicon">a</span></a></li>
2014-06-15 22:54:58 +02:00
<li><a href="https://www.linkedin.com/company/invoice-ninja" target="_blank"><span class="socicon">j</span></a></li>
2014-06-13 15:49:37 +02:00
<li><a href="https://plus.google.com/104031016152831072143" target="_blank"><span class="socicon">c</span></a></li>
2014-06-15 22:54:58 +02:00
<li><a href="https://github.com/hillelcoren/invoice-ninja" target="_blank"><span class="socicon">Q</span></a></li>
2014-06-13 15:49:37 +02:00
<li><a href="https://www.pinterest.com/invoiceninja" target="_blank"><span class="socicon">d</span></a></li>
<li><a href="http://blog.invoiceninja.com/feed/rss2" target="_blank"><span class="socicon">,</span></a></li>
</ul>
</div>
</div>
</div>
<div class="navbar" style="margin-bottom:0px">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<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="https://www.invoiceninja.com/"><img src="{{ asset('images/invoiceninja-logo.png') }}"></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="hidden-desktop">{{ link_to('http://blog.invoiceninja.com', 'Blog' ) }}</li>
<li class="hidden-desktop">{{ link_to('https://www.invoiceninja.com/about', 'About Us' ) }}</li>
<li class="hidden-desktop">{{ link_to('https://www.invoiceninja.com/contact', 'Contact Us' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/features', 'Features' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/plans', 'Plans' ) }}</li>
2014-06-15 22:54:58 +02:00
<li>{{ link_to('https://www.invoiceninja.com/testimonials', 'Testimonials' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/faq', 'FAQ' ) }}</li>
2014-06-13 15:49:37 +02:00
<li><span class="glyphicon glyphicon-user"></span>
2014-06-15 22:54:58 +02:00
{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
2014-05-14 00:17:33 +02:00
</ul>
2014-03-20 23:12:07 +01:00
</div>
</div>
2014-05-14 00:17:33 +02:00
</div>
2014-03-20 23:12:07 +01:00
2014-05-22 20:29:29 +02:00
<div style="background-color:#211f1f; width:100%">
2014-05-20 23:40:09 +02:00
<div class="container">
@if (Session::has('warning'))
<div class="alert alert-warning">{{ Session::get('warning') }}</div>
@endif
@if (Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>
@endif
@if (Session::has('error'))
<div class="alert alert-danger">{{ Session::get('error') }}</div>
@endif
</div>
2014-05-22 20:29:29 +02:00
</div>
2014-03-20 23:12:07 +01:00
2014-05-14 00:17:33 +02:00
@yield('content')
2014-03-20 23:12:07 +01:00
2014-05-14 00:17:33 +02:00
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<!--<div class="fb-follow" data-href="https://www.facebook.com/invoiceninja" data-colorscheme="light" data-layout="button" data-show-faces="false"></div>-->
2014-03-23 12:11:04 +01:00
<!--<a href="https://twitter.com/invoiceninja" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @invoiceninja</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>-->
2014-03-27 13:25:31 +01:00
<!--<div class="fb-like" data-href="https://www.invoiceninja.com" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div> -->
2014-05-06 10:50:17 +02:00
<!--
2014-03-27 13:25:31 +01:00
<div class="fb-share-button" data-href="https://www.invoiceninja.com/" data-type="button"></div>
2014-03-23 14:36:18 +01:00
&nbsp;
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://www.invoiceninja.com/" data-via="invoiceninja" data-related="hillelcoren" data-count="none" data-text="Free online invoicing">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
&nbsp;
<div class="g-plusone" data-size="medium" data-width="300" data-href="https://www.invoiceninja.com/" data-annotation="none" data-count="false" data-recommendations="false"></div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
&nbsp;
2014-05-14 00:17:33 +02:00
-->
2014-03-23 14:36:18 +01:00
2014-03-23 20:39:18 +01:00
<!--
2014-03-23 17:02:33 +01:00
<script src="//platform.linkedin.com/in.js" type="text/javascript">
lang: en_US
</script>
<script type="IN/Share" data-url="https://www.invoiceninja.com/"></script>
2014-05-14 00:17:33 +02:00
-->
<!--<iframe src="http://ghbtns.com/github-btn.html?user=hillelcoren&repo=invoice-ninja&type=watch" allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe>-->
<img src="{{ asset('images/footer-logo.png') }}">
<hr>
<ul class="navbar-vertical">
2014-06-09 08:36:07 +02:00
<li>{{ link_to('https://www.invoiceninja.com/features', 'Features' ) }}</li>
2014-05-25 12:57:19 +02:00
<!-- <li>{{ link_to('https://www.invoiceninja.com/faq', 'FAQ' ) }}</li> -->
<li>{{ link_to('https://www.invoiceninja.com/about', 'About Us' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/plans', 'Plans' ) }}</li>
<li>{{ link_to('https://www.invoiceninja.com/contact', 'Contact Us' ) }}</li>
2014-05-14 00:17:33 +02:00
<li>{{ link_to('http://blog.invoiceninja.com', 'Blog' ) }}</li>
<li>{{ link_to('login', Auth::check() ? 'My Account' : 'Login' ) }}</li>
</ul>
</div>
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-share-alt"></span>Connect with Us</h3>
<div class="social">
<div class="row1">
<a href="https://www.facebook.com/invoiceninja" target="_blank"><img src="{{ asset('images/hex-facebook.png') }}"></a>
<a href="https://twitter.com/invoiceninja" target="_blank"><img src="{{ asset('images/hex-twitter.png') }}"></a>
<a href="https://www.linkedin.com/company/invoice-ninja" target="_blank"><img src="{{ asset('images/hex-linkedin.png') }}"></a>
<a href="https://plus.google.com/104031016152831072143" target="_blank"><img src="{{ asset('images/hex-gplus.png') }}"></a>
</div>
<div class="row2">
<a href="https://github.com/hillelcoren/invoice-ninja" target="_blank"><img src="{{ asset('images/hex-github.png') }}"></a>
<a href="https://www.pinterest.com/invoiceninja" target="_blank"><img src="{{ asset('images/hex-pinterest.png') }}"></a>
2014-06-15 20:51:22 +02:00
<a href="http://feeds.feedburner.com/invoiceninja" target="_blank"><img src="{{ asset('images/hex-rss.png') }}"></a>
2014-05-14 00:17:33 +02:00
</div>
</div>
<!--<h3><span class="glyphicon glyphicon-envelope"></span>Join Our Free Newsletter</h3>-->
<div class="form-group">
<!--
<input type="email" class="form-control" id="email" name="email" placeholder="Email Address">
{{ Button::submit('')->append_with_icon('chevron-right') }}
<span class="help-block" style="display: none;">Please enter a valid e-mail address.</span>
-->
<!--
<form accept-charset="UTF-8" action="https://madmimi.com/signups/subscribe/107799" id="mad_mimi_signup_form" method="post" target="_blank">
<div style="margin:0;padding:0;display:inline">
<input name="utf8" type="hidden" value=""/>
<input name="authenticity_token" type="hidden" value="jLAaWeg+Ew4gkbOUnMq+lv/Lt76bPCI/IGAWVitkFJ0="/>
</div>
<div class="mimi_field required">
<input id="signup_email" placeholder="Email" class="form-control" name="signup[email]" type="text" data-required-field="This field is required" placeholder="you@example.com"/>
<br/>
</div>
<div>
<input id="signup_first_name" placeholder="First Name" class="form-control" name="signup[first_name]" type="text" data-required-field="This field is required"/>
<br/>
</div>
<div>
<input id="signup_last_name" placeholder="Last Name" class="form-control" name="signup[last_name]" type="text" data-required-field="This field is required"/>
<br/>
</div>
2014-05-14 00:17:33 +02:00
<div>
<input type="submit" class="btn-lg btn-block submit" value="Subscribe" id="webform_submit_button" data-default-text="Subscribe" data-submitting-text="Sending…" data-invalid-text="↑ You forgot some required fields" data-choose-list="↑ Choose a list">
</input>
</div>
</form>
-->
<script type="text/javascript">
2014-05-25 15:40:09 +02:00
/*
2014-05-14 00:17:33 +02:00
(function() {
var form = document.getElementById('mad_mimi_signup_form'),
submit = document.getElementById('webform_submit_button'),
validEmail = /.+@.+\..+/,
isValid;
form.onsubmit = function(event) {
validate();
if(!isValid) {
revalidateOnChange();
return false;
}
};
function validate() {
isValid = true;
emailValidation();
fieldAndListValidation();
updateFormAfterValidation();
}
function emailValidation() {
var email = document.getElementById('signup_email');
if(!validEmail.test(email.value)) {
textFieldError(email);
isValid = false;
} else {
removeTextFieldError(email);
}
}
function fieldAndListValidation() {
var fields = form.querySelectorAll('.mimi_field.required');
for(var i = 0; i < fields.length; ++i) {
var field = fields[i],
type = fieldType(field);
if(type == 'checkboxes' || type == 'radio_buttons') {
checkboxAndRadioValidation(field);
} else {
textAndDropdownValidation(field, type);
}
}
}
function fieldType(field) {
var type = field.querySelectorAll('.field_type');
if(type.length > 0) {
return type[0].getAttribute('data-field-type');
} else if(field.className.indexOf('checkgroup') >= 0) {
return 'checkboxes';
} else {
return 'text_field';
}
}
function checkboxAndRadioValidation(field) {
var inputs = field.getElementsByTagName('input'),
selected = false;
for(var i = 0; i < inputs.length; ++i) {
var input = inputs[i];
if((input.type == 'checkbox' || input.type == 'radio') && input.checked) selected = true;
}
if(selected) {
field.className = field.className.replace(/ invalid/g, '');
} else {
if(field.className.indexOf('invalid') == -1) field.className += ' invalid';
isValid = false;
}
}
function textAndDropdownValidation(field, type) {
var inputs = field.getElementsByTagName('input');
for(var i = 0; i < inputs.length; ++i) {
var input = inputs[i];
if(input.name.indexOf('signup') >= 0) {
if(type == 'text_field') {
textValidation(input);
} else {
dropdownValidation(field, input);
}
}
}
htmlEmbedDropdownValidation(field);
}
function textValidation(input) {
if(input.id == 'signup_email') return;
var val = input.value;
if(val == '') {
textFieldError(input);
isValid = false;
return;
} else {
removeTextFieldError(input)
}
}
function dropdownValidation(field, input) {
var val = input.value;
if(val == '') {
if(field.className.indexOf('invalid') == -1) field.className += ' invalid';
onSelectCallback(input);
isValid = false;
return;
} else {
field.className = field.className.replace(/ invalid/g, '');
}
}
function htmlEmbedDropdownValidation(field) {
var dropdowns = field.querySelectorAll('.mimi_html_dropdown');
for(var i = 0; i < dropdowns.length; ++i) {
var dropdown = dropdowns[i],
val = dropdown.value;
if(val == '') {
if(field.className.indexOf('invalid') == -1) field.className += ' invalid';
isValid = false;
dropdown.onchange = validate;
return;
} else {
field.className = field.className.replace(/ invalid/g, '');
}
}
}
function textFieldError(input) {
input.className = 'required invalid';
input.placeholder = input.getAttribute('data-required-field');
}
function removeTextFieldError(input) {
input.className = 'required';
input.placeholder = '';
}
function onSelectCallback(input) {
if(typeof Widget != 'undefined' && Widget.BasicDropdown != undefined) {
var dropdownEl = input.parentNode,
instances = Widget.BasicDropdown.instances;
for(var i = 0; i < instances.length; ++i) {
var instance = instances[i];
if(instance.wrapperEl == dropdownEl) {
instance.onSelect = validate;
}
}
}
}
function updateFormAfterValidation() {
form.className = isValid ? '' : 'mimi_invalid';
submit.value = submitButtonText();
submit.disabled = !isValid;
submit.className = isValid ? 'submit' : 'disabled';
}
function submitButtonText() {
var invalidFields = document.querySelectorAll('.invalid'),
text;
if(isValid || invalidFields == undefined) {
text = submit.getAttribute('data-default-text');
} else {
if(invalidFields.length > 1 || invalidFields[0].className.indexOf('checkgroup') == -1) {
text = submit.getAttribute('data-invalid-text');
} else {
text = submit.getAttribute('data-choose-list');
}
}
return text;
}
function revalidateOnChange() {
var fields = form.querySelectorAll(".mimi_field.required");
for(var i = 0; i < fields.length; ++i) {
var inputs = fields[i].getElementsByTagName('input');
for(var j = 0; j < inputs.length; ++j) {
inputs[j].onchange = validate;
}
}
}
})();
2014-05-25 15:40:09 +02:00
*/
2014-05-14 00:17:33 +02:00
</script>
</div>
</form>
</div>
<div class="col-md-4">
<h3><img src="{{ asset('images/icon-secure-footer.png') }}" style="margin-right: 8px; margin-top: -5px;"></span>Safe & Secure</h3>
<img src="{{ asset('images/ssl-footer.png') }}">
<hr>
2014-05-25 20:38:40 +02:00
<a href="http://opensource.org/" target="_blank"><img src="{{ asset('images/opensource-footer.png') }}"></a>
2014-05-14 00:17:33 +02:00
</div>
2014-03-20 23:12:07 +01:00
<!--
<ul class="navbar-list">
<li><a href="#">For developers</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Terms &amp; Conditions</a></li>
<li><a href="#">Our Blog</a></li>
</ul>
-->
</div>
</div>
</div>
</div>
2014-04-06 11:41:35 +02:00
</footer>
2014-05-06 19:54:28 +02:00
<script type="text/javascript">
2014-05-14 00:17:33 +02:00
jQuery(document).ready(function($) {
$('.valign').vAlign();
});
2014-06-12 18:58:19 +02:00
</script>
2014-05-13 23:53:41 +02:00
2014-06-15 22:54:58 +02:00
<!--
2014-06-12 18:58:19 +02:00
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.expander').simpleexpand();
});
2014-05-06 19:54:28 +02:00
</script>
2014-06-15 22:54:58 +02:00
-->
2014-05-06 19:54:28 +02:00
2014-04-28 22:05:37 +02:00
<!--
2014-05-11 20:24:30 +02:00
All images in the site need to have retina versions otherwise the log fills up with requests for missing files
<script src="{{ asset('/js/retina-1.1.0.min.js') }}" type="text/javascript"></script>
2014-04-28 22:05:37 +02:00
-->
2014-03-20 23:12:07 +01:00
@stop