Updating texts

This commit is contained in:
Hillel Coren 2014-05-11 21:24:30 +03:00
parent 0fcd6bf9fa
commit 113665da1e
13 changed files with 47 additions and 31 deletions

View File

@ -334,5 +334,8 @@ return array(
'archived_product' => 'Produkt erfolgreich archiviert', 'archived_product' => 'Produkt erfolgreich archiviert',
'product_library' => 'Produktbibliothek', 'product_library' => 'Produktbibliothek',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -333,4 +333,7 @@ return array(
'created_product' => 'Successfully created product', 'created_product' => 'Successfully created product',
'archived_product' => 'Successfully archived product', 'archived_product' => 'Successfully archived product',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -334,4 +334,7 @@ return array(
'created_product' => 'Successfully created product', 'created_product' => 'Successfully created product',
'archived_product' => 'Successfully archived product', 'archived_product' => 'Successfully archived product',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -334,4 +334,7 @@ return array(
'created_product' => 'Successfully created product', 'created_product' => 'Successfully created product',
'archived_product' => 'Successfully archived product', 'archived_product' => 'Successfully archived product',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -335,4 +335,7 @@ return array(
'created_product' => 'Successfully created product', 'created_product' => 'Successfully created product',
'archived_product' => 'Successfully archived product', 'archived_product' => 'Successfully archived product',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -323,5 +323,8 @@ return array(
'created_product' => 'Successfully created product', 'created_product' => 'Successfully created product',
'archived_product' => 'Successfully archived product', 'archived_product' => 'Successfully archived product',
'chart_builder' => 'Chart Builder',
'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!',
); );

View File

@ -73,6 +73,11 @@
} }
} }
function gatewayLink(url) {
//if (url.match('authorize'))
openUrl(url, '/affiliate/' + new URL(url).hostname);
}
$(document).ready(function() { $(document).ready(function() {
$('.recommended-gateway').change( $('.recommended-gateway').change(
function(){ function(){
@ -95,7 +100,7 @@
var contents = $(this).parent().contents(); var contents = $(this).parent().contents();
contents[contents.length - 1].nodeValue = ''; contents[contents.length - 1].nodeValue = '';
$(this).after('<img src="' +$(this).attr('data-imageUrl') + '" /><br />'); $(this).after('<img src="' +$(this).attr('data-imageUrl') + '" /><br />');
$(this).parent().children().last().after('<a href="#" onclick="openUrl(\'' + $(this).attr('data-siteUrl') + '\')">Create an account</a>'); $(this).parent().children().last().after('<a href="#" onclick="gatewayLink(\'' + $(this).attr('data-siteUrl') + '\')">Create an account</a>');
}); });

View File

@ -492,6 +492,7 @@ Want something changed? We're {{ link_to('https://github.com/hillelcoren/invoice
trackUrl('/signed_up'); trackUrl('/signed_up');
if (result) { if (result) {
localStorage.setItem('guest_key', ''); localStorage.setItem('guest_key', '');
trackUrl('/user/sign_up');
NINJA.isRegistered = true; NINJA.isRegistered = true;
$('#signUpButton').hide(); $('#signUpButton').hide();
$('#myAccountButton').html(result); $('#myAccountButton').html(result);

View File

@ -51,17 +51,24 @@
<body> <body>
<script>
@if (isset($_ENV['ANALYTICS_KEY']) && $_ENV['ANALYTICS_KEY']) @if (isset($_ENV['ANALYTICS_KEY']) && $_ENV['ANALYTICS_KEY'])
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(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),
(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)
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');
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}'); ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}');
ga('send', 'pageview'); ga('send', 'pageview');
</script>
function trackUrl(url) {
url = '/track' + url.replace('http:/', '');
ga('send', 'pageview', url);
}
@else
function trackUrl(url) {}
@endif @endif
</script>
@yield('body') @yield('body')

View File

@ -181,15 +181,10 @@ jQuery(document).ready(function($) {
}); });
</script> </script>
<script src="{{ asset('/js/retina-1.1.0.min.js') }}" type="text/javascript"></script>
<!-- <!--
<script type="text/javascript"> All images in the site need to have retina versions otherwise the log fills up with requests for missing files
$('.expander').simpleexpand(); <script src="{{ asset('/js/retina-1.1.0.min.js') }}" type="text/javascript"></script>
</script>
--> -->
@stop @stop

View File

@ -39444,12 +39444,7 @@ function setDocHexDraw(doc, hex) {
return doc.setDrawColor(r, g, b); return doc.setDrawColor(r, g, b);
} }
function openUrl(url) { function openUrl(url, track) {
trackUrl(url); trackUrl(track ? track : url);
window.open(url, '_blank'); window.open(url, '_blank');
} }
function trackUrl(url) {
url = '/track' + url.replace('http:/', '');
ga('send', 'pageview', url);
}

View File

@ -1728,12 +1728,7 @@ function setDocHexDraw(doc, hex) {
return doc.setDrawColor(r, g, b); return doc.setDrawColor(r, g, b);
} }
function openUrl(url) { function openUrl(url, track) {
trackUrl(url); trackUrl(track ? track : url);
window.open(url, '_blank'); window.open(url, '_blank');
} }
function trackUrl(url) {
url = '/track' + url.replace('http:/', '');
ga('send', 'pageview', url);
}