1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/plugins/Installation/templates/welcome.twig
Thomas Steur 73010596f0 Make matomo.js and matomo.php the default Tracking API endpoints used (#13596)
* Make matomo.js and matomo.php the default Tracking API endpoints used

* few fixes

* fix few tests

* update matomo php tracker in composer

* make sure to record install version

* do not overwrite ever install version

* trying to fix test

* more tweaks and fix tests

* prefer matomo endpoint in the ui, fix some tests

* file was still needed

* apply review feedback

* fix ui tests
2018-11-29 20:22:15 +13:00

35 خطوط
1001 B
Twig

{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_Welcome'|translate }}</h2>
{{ 'Installation_WelcomeHelp'|translate(totalNumberOfSteps)|raw }}
<script type="text/javascript">
<!--
$(function () {
// client-side test for broken tracker (e.g., mod_security rule)
$('.next-step').hide();
$.ajax({
url: 'matomo.php',
data: 'url=http://example.com',
complete: function () {
$('.next-step').show();
},
error: function (req) {
$('.next-step a').attr('href', $('.next-step a').attr('href') + '&trackerStatus=' + req.status);
}
});
});
//-->
</script>
{% if not showNextStep %}
<p class="next-step">
<a href="{{ url }}">{{ 'General_RefreshPage'|translate }} &raquo;</a>
</p>
{% endif %}
{% endblock %}