File: D:/web/matomo.vdk/tmp/templates_c/b6/b66fbc0fa3ba4a0bc318e114d5e93f0e.php
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @CoreUpdater/runUpdaterAndExit_done.twig */
class __TwigTemplate_c00dc472a8548c56f780e0661587b2ef extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@CoreUpdater/layout.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 2
$context["helpMessage"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 3
yield " ";
yield $this->env->getFilter('translate')->getCallable()("CoreUpdater_HelpMessageContent", $this->env->getFunction('externallink')->getCallable()("https://matomo.org/faq/"), "</a>", "</li><li>");
yield "
";
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1
$this->parent = $this->loadTemplate("@CoreUpdater/layout.twig", "@CoreUpdater/runUpdaterAndExit_done.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
}
// line 6
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
// line 7
yield "
";
// line 8
if ((isset($context["coreError"]) || array_key_exists("coreError", $context) ? $context["coreError"] : (function () { throw new RuntimeError('Variable "coreError" does not exist.', 8, $this->source); })())) {
// line 9
yield " <div class=\"header\">
<h1>";
// line 10
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_UpdateErrorTitle"), "html", null, true);
yield "</h1>
</div>
<div class=\"content\">
<div class=\"alert alert-danger\">
";
// line 14
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_CriticalErrorDuringTheUpgradeProcess"), "html", null, true);
yield "
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["errorMessages"]) || array_key_exists("errorMessages", $context) ? $context["errorMessages"] : (function () { throw new RuntimeError('Variable "errorMessages" does not exist.', 15, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 16
yield " <br/><strong>";
yield \Piwik\piwik_escape_filter($this->env, Twig\Extension\CoreExtension::striptags($context["message"]), "html", null, true);
yield "</strong>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
yield " </div>
<p>";
// line 19
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_HelpMessageIntroductionWhenError"), "html", null, true);
yield "</p>
<ul>
<li>";
// line 21
yield \Piwik\piwik_escape_filter($this->env, (isset($context["helpMessage"]) || array_key_exists("helpMessage", $context) ? $context["helpMessage"] : (function () { throw new RuntimeError('Variable "helpMessage" does not exist.', 21, $this->source); })()), "html", null, true);
yield "</li>
</ul>
<p>";
// line 23
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp"), "html", null, true);
yield "</p>
<ul>
<li>";
// line 25
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp_1"), "html", null, true);
yield "</li>
<li>";
// line 26
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp_2"), "html", null, true);
yield "</li>
<li>";
// line 27
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp_3"), "html", null, true);
yield " <a href='";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('trackmatomolink')->getCallable()("https://matomo.org/faq/how-to-update/faq_179"), "html", null, true);
yield "' rel='noreferrer noopener' target='_blank'>(see FAQ)</a></li>
<li>";
// line 28
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp_4"), "html", null, true);
yield "</li>
<li>";
// line 29
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDIYHelp_5"), "html", null, true);
yield "</li>
</ul>
</div>
";
} else {
// line 33
yield "
";
// line 34
if (((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errorMessages"]) || array_key_exists("errorMessages", $context) ? $context["errorMessages"] : (function () { throw new RuntimeError('Variable "errorMessages" does not exist.', 34, $this->source); })())) == 0) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["warningMessages"]) || array_key_exists("warningMessages", $context) ? $context["warningMessages"] : (function () { throw new RuntimeError('Variable "warningMessages" does not exist.', 34, $this->source); })())) == 0))) {
// line 35
yield " <div class=\"header\">
<h1>";
// line 36
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_PiwikHasBeenSuccessfullyUpgraded"), "html", null, true);
yield "</h1>
</div>
";
}
// line 39
yield "
<div class=\"content\">
";
// line 42
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["warningMessages"]) || array_key_exists("warningMessages", $context) ? $context["warningMessages"] : (function () { throw new RuntimeError('Variable "warningMessages" does not exist.', 42, $this->source); })())) > 0)) {
// line 43
yield " <div class=\"alert alert-warning\">
<p>";
// line 44
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_WarningMessages"), "html", null, true);
yield "</p>
";
// line 45
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["warningMessages"]) || array_key_exists("warningMessages", $context) ? $context["warningMessages"] : (function () { throw new RuntimeError('Variable "warningMessages" does not exist.', 45, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 46
yield " <br/><strong>";
yield \Piwik\piwik_escape_filter($this->env, Twig\Extension\CoreExtension::striptags($context["message"]), "html", null, true);
yield "</strong>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
yield " </div>
";
}
// line 50
yield "
";
// line 51
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errorMessages"]) || array_key_exists("errorMessages", $context) ? $context["errorMessages"] : (function () { throw new RuntimeError('Variable "errorMessages" does not exist.', 51, $this->source); })())) > 0)) {
// line 52
yield " <div class=\"alert alert-warning\">
<p>";
// line 53
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_ErrorDuringPluginsUpdates"), "html", null, true);
yield "</p>
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["errorMessages"]) || array_key_exists("errorMessages", $context) ? $context["errorMessages"] : (function () { throw new RuntimeError('Variable "errorMessages" does not exist.', 54, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 55
yield " <br/><strong>";
yield \Piwik\piwik_escape_filter($this->env, Twig\Extension\CoreExtension::striptags($context["message"]), "html", null, true);
yield "</strong>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
yield " </div>
";
// line 58
if ((array_key_exists("deactivatedPlugins", $context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["deactivatedPlugins"]) || array_key_exists("deactivatedPlugins", $context) ? $context["deactivatedPlugins"] : (function () { throw new RuntimeError('Variable "deactivatedPlugins" does not exist.', 58, $this->source); })())) > 0))) {
// line 59
yield " ";
$context["listOfDeactivatedPlugins"] = Twig\Extension\CoreExtension::join((isset($context["deactivatedPlugins"]) || array_key_exists("deactivatedPlugins", $context) ? $context["deactivatedPlugins"] : (function () { throw new RuntimeError('Variable "deactivatedPlugins" does not exist.', 59, $this->source); })()), ", ");
// line 60
yield " <div class=\"alert alert-danger\">
";
// line 61
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_WeAutomaticallyDeactivatedTheFollowingPlugins", (isset($context["listOfDeactivatedPlugins"]) || array_key_exists("listOfDeactivatedPlugins", $context) ? $context["listOfDeactivatedPlugins"] : (function () { throw new RuntimeError('Variable "listOfDeactivatedPlugins" does not exist.', 61, $this->source); })())), "html", null, true);
yield "
</div>
";
}
// line 64
yield " ";
}
// line 65
yield "
";
// line 66
if (((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["errorMessages"]) || array_key_exists("errorMessages", $context) ? $context["errorMessages"] : (function () { throw new RuntimeError('Variable "errorMessages" does not exist.', 66, $this->source); })())) > 0) || (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["warningMessages"]) || array_key_exists("warningMessages", $context) ? $context["warningMessages"] : (function () { throw new RuntimeError('Variable "warningMessages" does not exist.', 66, $this->source); })())) > 0))) {
// line 67
yield " <p>";
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreUpdater_HelpMessageIntroductionWhenWarning"), "html", null, true);
yield "</p>
<ul>
<li>";
// line 69
yield \Piwik\piwik_escape_filter($this->env, (isset($context["helpMessage"]) || array_key_exists("helpMessage", $context) ? $context["helpMessage"] : (function () { throw new RuntimeError('Variable "helpMessage" does not exist.', 69, $this->source); })()), "html", null, true);
yield "</li>
</ul>
";
} else {
// line 72
yield " <div id=\"donate-form-container\">
";
// line 73
yield from $this->loadTemplate("@CoreHome/_donate.twig", "@CoreUpdater/runUpdaterAndExit_done.twig", 73)->unwrap()->yield($context);
// line 74
yield " </div>
";
}
// line 76
yield "
</div>
<div class=\"footer\">
<a href=\"index.php\">";
// line 80
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_ContinueToPiwik"), "html", null, true);
yield "</a>
</div>
";
}
// line 84
yield "
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@CoreUpdater/runUpdaterAndExit_done.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 265 => 84, 258 => 80, 252 => 76, 248 => 74, 246 => 73, 243 => 72, 237 => 69, 231 => 67, 229 => 66, 226 => 65, 223 => 64, 217 => 61, 214 => 60, 211 => 59, 209 => 58, 206 => 57, 197 => 55, 193 => 54, 189 => 53, 186 => 52, 184 => 51, 181 => 50, 177 => 48, 168 => 46, 164 => 45, 160 => 44, 157 => 43, 155 => 42, 150 => 39, 144 => 36, 141 => 35, 139 => 34, 136 => 33, 129 => 29, 125 => 28, 119 => 27, 115 => 26, 111 => 25, 106 => 23, 101 => 21, 96 => 19, 93 => 18, 84 => 16, 80 => 15, 76 => 14, 69 => 10, 66 => 9, 64 => 8, 61 => 7, 57 => 6, 52 => 1, 45 => 3, 43 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@CoreUpdater/layout.twig' %}
{% set helpMessage %}
{{ 'CoreUpdater_HelpMessageContent'|translate(externallink('https://matomo.org/faq/'),'</a>','</li><li>')|raw }}
{% endset %}
{% block content %}
{% if coreError %}
<div class=\"header\">
<h1>{{ 'CoreUpdater_UpdateErrorTitle'|translate }}</h1>
</div>
<div class=\"content\">
<div class=\"alert alert-danger\">
{{ 'CoreUpdater_CriticalErrorDuringTheUpgradeProcess'|translate }}
{% for message in errorMessages %}
<br/><strong>{{ message|striptags }}</strong>
{% endfor %}
</div>
<p>{{ 'CoreUpdater_HelpMessageIntroductionWhenError'|translate }}</p>
<ul>
<li>{{ helpMessage }}</li>
</ul>
<p>{{ 'CoreUpdater_ErrorDIYHelp'|translate }}</p>
<ul>
<li>{{ 'CoreUpdater_ErrorDIYHelp_1'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_2'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_3'|translate }} <a href='{{ 'https://matomo.org/faq/how-to-update/faq_179'|trackmatomolink }}' rel='noreferrer noopener' target='_blank'>(see FAQ)</a></li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_4'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_5'|translate }}</li>
</ul>
</div>
{% else %}
{% if errorMessages|length == 0 and warningMessages|length == 0 %}
<div class=\"header\">
<h1>{{ 'CoreUpdater_PiwikHasBeenSuccessfullyUpgraded'|translate }}</h1>
</div>
{% endif %}
<div class=\"content\">
{% if warningMessages|length > 0 %}
<div class=\"alert alert-warning\">
<p>{{ 'CoreUpdater_WarningMessages'|translate }}</p>
{% for message in warningMessages %}
<br/><strong>{{ message|striptags }}</strong>
{% endfor %}
</div>
{% endif %}
{% if errorMessages|length > 0 %}
<div class=\"alert alert-warning\">
<p>{{ 'CoreUpdater_ErrorDuringPluginsUpdates'|translate }}</p>
{% for message in errorMessages %}
<br/><strong>{{ message|striptags }}</strong>
{% endfor %}
</div>
{% if deactivatedPlugins is defined and deactivatedPlugins|length > 0 %}
{% set listOfDeactivatedPlugins=deactivatedPlugins|join(', ') %}
<div class=\"alert alert-danger\">
{{ 'CoreUpdater_WeAutomaticallyDeactivatedTheFollowingPlugins'|translate(listOfDeactivatedPlugins) }}
</div>
{% endif %}
{% endif %}
{% if errorMessages|length > 0 or warningMessages|length > 0 %}
<p>{{ 'CoreUpdater_HelpMessageIntroductionWhenWarning'|translate }}</p>
<ul>
<li>{{ helpMessage }}</li>
</ul>
{% else %}
<div id=\"donate-form-container\">
{% include \"@CoreHome/_donate.twig\" %}
</div>
{% endif %}
</div>
<div class=\"footer\">
<a href=\"index.php\">{{ 'General_ContinueToPiwik'|translate }}</a>
</div>
{% endif %}
{% endblock %}
", "@CoreUpdater/runUpdaterAndExit_done.twig", "D:\\web\\matomo.vdk\\plugins\\CoreUpdater\\templates\\runUpdaterAndExit_done.twig");
}
}