first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<script type="text/javascript">
(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', '{$ga_key}', 'auto');
ga('send', 'pageview');
{if isset($ga_conversion) && $ga_conversion}
ga('require', 'ecommerce');
{foreach $ga_conversion as $ga_item}
ga('{$ga_item.command}', {
{foreach $ga_item.properties as $key => $prop}
'{$key}': '{$prop}',
{/foreach}
});
{/foreach}
ga('ecommerce:send');
{/if}
</script>

View File

@@ -0,0 +1,8 @@
{extends file=$layout}
{block name='content'}
{capture name=path}{l s='Payment' mod='imoje'}{/capture}
<div class="text-center">{l s='Your order has been processed. You will be informed via e-mail about it end status' mod='imoje'}</div>
<br>
{/block}

View File

@@ -0,0 +1,9 @@
{extends file=$layout}
{block name='content'}
<div class="alert alert-danger" role="alert">
{foreach from=$imojeErrors key=key item=error}
<p class="text-center">{l s=$error mod='imoje'}</p>
{/foreach}
</div>
{/block}

View File

@@ -0,0 +1,9 @@
{extends file=$layout}
{block name='content'}
{capture name=path}{l s='Payment' mod='imoje'}{/capture}
<div class="text-center">{l s='Unable to complete your payment request. Try again later.' mod='imoje'}</div>
<br>
{if isset($ga_key) && $ga_key}{include file="module:imoje/views/templates/front/_ga.tpl" ga_key=$ga_key}{/if}
{/block}

View File

@@ -0,0 +1,17 @@
<?php
/*
* @author imoje
* @copyright Copyright (c) 2018 imoje
*
* https://imoje.pl
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,34 @@
{extends file=$layout}
{block name='content'}
<style>
#submit-payment-form {
display:none;
}
</style>
{capture name=path}{l s='Payment' mod='imoje'}{/capture}
<div class="text-center" style="text-align:center">
<span id="text-tip">
{if $blik_msg}
{l s='Please wait, you will be redirected to BLIK payment page.' mod='imoje'}
{else}
{l s='Please wait, in the next step you will choose a payment method.' mod='imoje'}
{/if}
</span>
</div>
<br>
{$form nofilter}
<br>
{if isset($ga_key) && $ga_key}{include file="module:imoje/views/templates/front/_ga.tpl" ga_key=$ga_key}{/if}
<script type="text/javascript">
if (window.location.hash === '#processed') {
window.location.replace("{$checkout_link}");
document.getElementById('text-tip').innerHTML = '{$text_return_to_checkout}';
} else {
window.location.hash = '#processed';
document.getElementById("submit-payment-form").click();
}
</script>
{/block}

View File

@@ -0,0 +1,108 @@
{extends file=$layout}
{block name='content'}
{capture name=path}{l s='Payment' mod='imoje'}{/capture}
<div class="text-center">{l s='Please wait, in the next step you will choose a payment method...' mod='imoje'}
<br>
<form action="{$payment_url}" id="imoje_method_form" method="post">
<input type="hidden" name="imoje_method" value="PAYMENTPAGE"/>
<input type="hidden" name="imoje_order_id" value="{$order_id}"/>
<input type="hidden" name="imoje_customer_id" value="{$customer_id}"/>
<input type="hidden" name="imoje_address_invoice_id" value="{$address_invoice_id}"/>
<input type="hidden" name="imoje_address_delivery_id" value="{$address_delivery_id}"/>
<input type="hidden" name="twisto_data" id="twisto_data" value=""/>
<br/>
<button style="display:none" type="submit" name="submit" id="twisto_submit">{$continue}</button>
</form>
<br>
<script type="text/javascript">
document.getElementById('twisto_submit').classList.add("btn", "btn-warning", "button-medium");
(function () {
var twistoConfig = {
public_key: '{$payment_methods.twisto.pk}',
script: '{$twisto_script_url}'
};
(function (e, g, a) {
function h(a) {
return function () {
b._.push([a, arguments])
}
}
var f = ["check"], b = e || {}, c = document.createElement(a);
a = document.getElementsByTagName(a)[0];
b._ = [];
for (var d = 0; d < f.length; d++) {
b[f[d]] = h(f[d]);
}
this[g] = b;
c.type = "text/javascript";
c.async = !0;
c.src = e.script;
a.parentNode.insertBefore(c, a);
delete e.script
}).call(window, twistoConfig, "Twisto", "script");
document.addEventListener("DOMContentLoaded", function (event) {
var twistoTimeout,
twistoTimeoutFlag = false,
timeBeforeCheck;
function timeout() {
return setTimeout(function () {
processForm({
"details": "timeout"
});
}, {$payment_methods.twisto.timeout});
}
function processForm(response) {
clearTimeout(twistoTimeout);
response.timeResponse = (new Date()).getTime() - timeBeforeCheck;
document.getElementById('twisto_data').value = JSON.stringify(response);
$("#twisto_submit").show().click();
}
timeBeforeCheck = (new Date()).getTime();
twistoTimeout = timeout();
Twisto.check("{$twisto_payload}", function (response) {
processForm(response);
}, function (response) {
if (!response) {
response = {
"details": "errorCallback"
}
}
processForm(response);
}, {
"processingStarted": function () {
if (twistoTimeoutFlag) {
return;
}
twistoTimeoutFlag = true;
clearTimeout(twistoTimeout);
twistoTimeout = timeout();
}
}
);
});
})();
</script>
</div>
{/block}

View File

@@ -0,0 +1,9 @@
{extends file=$layout}
{block name='content'}
{capture name=path}{l s='Payment' mod='imoje'}{/capture}
<div class="text-center">{l s='Your order has been processed. You will be informed via e-mail about it end status.' mod='imoje'}</div><br>
{if isset($ga_key) && $ga_key}{include file="module:imoje/views/templates/front/_ga.tpl" ga_key=$ga_key ga_conversion=$ga_conversion}{/if}
{/block}