File: D:/web/matomo.vdk/tmp/templates_c/90/9065dab79e6daea2c98176b533bff2c2.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;
/* admin.twig */
class __TwigTemplate_1a7827e441697022f08ea9c5fba01b64 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'root' => [$this, 'block_root'],
'topcontrols' => [$this, 'block_topcontrols'],
'notification' => [$this, 'block_notification'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 3
$context["categoryTitle"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("CoreAdminHome_Administration"), "html", null, true);
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 5
$context["bodyClass"] = $this->env->getFunction('postEvent')->getCallable()("Template.bodyClass", "admin");
// line 6
$context["isAdminArea"] = true;
// line 1
$this->parent = $this->loadTemplate("layout.twig", "admin.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
}
// line 8
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
// line 9
yield " ";
$context["topMenuModule"] = "CoreAdminHome";
// line 10
yield " ";
$context["topMenuAction"] = "home";
// line 11
yield " ";
yield $this->env->getFunction('postEvent')->getCallable()("Template.header", "admin");
yield "
";
// line 12
yield from $this->yieldParentBlock("body", $context, $blocks);
yield "
";
// line 13
yield $this->env->getFunction('postEvent')->getCallable()("Template.footer", "admin");
yield "
<div id=\"sizewarning\" class=\"notification system notification-error\">
This page can't be rendered on screens with width or height below 200px.
</div>
<style>
";
// line 20
yield " @media (max-width: 200px), (max-height: 200px) {
#sizewarning {
display: block;
}
body > #root {
display: none!important;
}
}
</style>
";
return; yield '';
}
// line 33
public function block_root($context, array $blocks = [])
{
$macros = $this->macros;
// line 34
yield " ";
yield from $this->loadTemplate("@CoreHome/_topScreen.twig", "admin.twig", 34)->unwrap()->yield($context);
// line 35
yield "
<div class=\"top_controls\">
<div vue-entry=\"CoreHome.QuickAccess\" class=\"piwikTopControl borderedControl\"></div>
";
// line 39
yield from $this->unwrap()->yieldBlock('topcontrols', $context, $blocks);
// line 41
yield "
";
// line 42
yield from $this->loadTemplate("@CoreHome/_headerMessage.twig", "admin.twig", 42)->unwrap()->yield($context);
// line 43
yield " </div>
";
// line 45
$macros["ajax"] = $this->loadTemplate("ajaxMacros.twig", "admin.twig", 45)->unwrap();
// line 46
yield " ";
yield CoreExtension::callMacro($macros["ajax"], "macro_requestErrorDiv", [((array_key_exists("contactEmail", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["contactEmail"]) || array_key_exists("contactEmail", $context) ? $context["contactEmail"] : (function () { throw new RuntimeError('Variable "contactEmail" does not exist.', 46, $this->source); })()), "")) : ("")), (isset($context["areAdsForProfessionalServicesEnabled"]) || array_key_exists("areAdsForProfessionalServicesEnabled", $context) ? $context["areAdsForProfessionalServicesEnabled"] : (function () { throw new RuntimeError('Variable "areAdsForProfessionalServicesEnabled" does not exist.', 46, $this->source); })()), (isset($context["currentModule"]) || array_key_exists("currentModule", $context) ? $context["currentModule"] : (function () { throw new RuntimeError('Variable "currentModule" does not exist.', 46, $this->source); })()), (isset($context["showMoreFaqInfo"]) || array_key_exists("showMoreFaqInfo", $context) ? $context["showMoreFaqInfo"] : (function () { throw new RuntimeError('Variable "showMoreFaqInfo" does not exist.', 46, $this->source); })())], 46, $context, $this->getSourceContext());
yield "
";
// line 47
yield $this->env->getFunction('postEvent')->getCallable()("Template.beforeContent", "admin", (isset($context["currentModule"]) || array_key_exists("currentModule", $context) ? $context["currentModule"] : (function () { throw new RuntimeError('Variable "currentModule" does not exist.', 47, $this->source); })()), (isset($context["currentAction"]) || array_key_exists("currentAction", $context) ? $context["currentAction"] : (function () { throw new RuntimeError('Variable "currentAction" does not exist.', 47, $this->source); })()));
yield "
<div class=\"page\">
";
// line 51
if (( !array_key_exists("showMenu", $context) || (isset($context["showMenu"]) || array_key_exists("showMenu", $context) ? $context["showMenu"] : (function () { throw new RuntimeError('Variable "showMenu" does not exist.', 51, $this->source); })()))) {
// line 52
yield " ";
$macros["menu"] = $this->loadTemplate("@CoreHome/_menu.twig", "admin.twig", 52)->unwrap();
// line 53
yield " ";
$context["collapsibleMenu"] = (isset($context["hasSomeAdminAccess"]) || array_key_exists("hasSomeAdminAccess", $context) ? $context["hasSomeAdminAccess"] : (function () { throw new RuntimeError('Variable "hasSomeAdminAccess" does not exist.', 53, $this->source); })());
// line 54
yield " ";
yield CoreExtension::callMacro($macros["menu"], "macro_menu", [(isset($context["adminMenu"]) || array_key_exists("adminMenu", $context) ? $context["adminMenu"] : (function () { throw new RuntimeError('Variable "adminMenu" does not exist.', 54, $this->source); })()), false, "Menu--admin", (isset($context["currentModule"]) || array_key_exists("currentModule", $context) ? $context["currentModule"] : (function () { throw new RuntimeError('Variable "currentModule" does not exist.', 54, $this->source); })()), (isset($context["currentAction"]) || array_key_exists("currentAction", $context) ? $context["currentAction"] : (function () { throw new RuntimeError('Variable "currentAction" does not exist.', 54, $this->source); })()), (isset($context["collapsibleMenu"]) || array_key_exists("collapsibleMenu", $context) ? $context["collapsibleMenu"] : (function () { throw new RuntimeError('Variable "collapsibleMenu" does not exist.', 54, $this->source); })()), (isset($context["isSuperUser"]) || array_key_exists("isSuperUser", $context) ? $context["isSuperUser"] : (function () { throw new RuntimeError('Variable "isSuperUser" does not exist.', 54, $this->source); })())], 54, $context, $this->getSourceContext());
yield "
";
}
// line 56
yield "
<div class=\"pageWrap\">
<a name=\"main\"></a>
";
// line 60
yield from $this->unwrap()->yieldBlock('notification', $context, $blocks);
// line 63
yield " ";
yield from $this->loadTemplate("@CoreHome/_warningInvalidHost.twig", "admin.twig", 63)->unwrap()->yield($context);
// line 64
yield "
<div class=\"admin\" id=\"content\">
<div class=\"ui-confirm\" id=\"alert\">
<h2></h2>
<input role=\"no\" type=\"button\" value=\"";
// line 69
yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_Ok"), "html", null, true);
yield "\"/>
</div>
";
// line 72
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 74
yield "
</div>
</div>
</div>
";
return; yield '';
}
// line 39
public function block_topcontrols($context, array $blocks = [])
{
$macros = $this->macros;
yield " ";
return; yield '';
}
// line 60
public function block_notification($context, array $blocks = [])
{
$macros = $this->macros;
// line 61
yield " ";
yield from $this->loadTemplate("@CoreHome/_notifications.twig", "admin.twig", 61)->unwrap()->yield($context);
// line 62
yield " ";
return; yield '';
}
// line 72
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
yield " ";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "admin.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 214 => 72, 209 => 62, 206 => 61, 202 => 60, 194 => 39, 182 => 74, 180 => 72, 174 => 69, 167 => 64, 164 => 63, 162 => 60, 156 => 56, 150 => 54, 147 => 53, 144 => 52, 142 => 51, 135 => 47, 130 => 46, 128 => 45, 124 => 43, 122 => 42, 119 => 41, 117 => 39, 111 => 35, 108 => 34, 104 => 33, 89 => 20, 80 => 13, 76 => 12, 71 => 11, 68 => 10, 65 => 9, 61 => 8, 56 => 1, 54 => 6, 52 => 5, 47 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.twig' %}
{% set categoryTitle %}{{ 'CoreAdminHome_Administration'|translate }}{% endset %}
{% set bodyClass = postEvent('Template.bodyClass', 'admin') %}
{% set isAdminArea = true %}
{% block body %}
{% set topMenuModule = 'CoreAdminHome' %}
{% set topMenuAction = 'home' %}
{{ postEvent(\"Template.header\", \"admin\") }}
{{ parent() }}
{{ postEvent(\"Template.footer\", \"admin\") }}
<div id=\"sizewarning\" class=\"notification system notification-error\">
This page can't be rendered on screens with width or height below 200px.
</div>
<style>
{# Inlined to ensure it is only applied in the admin area #}
@media (max-width: 200px), (max-height: 200px) {
#sizewarning {
display: block;
}
body > #root {
display: none!important;
}
}
</style>
{% endblock %}
{% block root %}
{% include \"@CoreHome/_topScreen.twig\" %}
<div class=\"top_controls\">
<div vue-entry=\"CoreHome.QuickAccess\" class=\"piwikTopControl borderedControl\"></div>
{% block topcontrols %}
{% endblock %}
{% include \"@CoreHome/_headerMessage.twig\" %}
</div>
{% import 'ajaxMacros.twig' as ajax %}
{{ ajax.requestErrorDiv(contactEmail|default(''), areAdsForProfessionalServicesEnabled, currentModule, showMoreFaqInfo) }}
{{ postEvent(\"Template.beforeContent\", \"admin\", currentModule, currentAction) }}
<div class=\"page\">
{% if showMenu is not defined or showMenu %}
{% import '@CoreHome/_menu.twig' as menu %}
{% set collapsibleMenu = hasSomeAdminAccess %}
{{ menu.menu(adminMenu, false, 'Menu--admin', currentModule, currentAction, collapsibleMenu, isSuperUser) }}
{% endif %}
<div class=\"pageWrap\">
<a name=\"main\"></a>
{% block notification %}
{% include \"@CoreHome/_notifications.twig\" %}
{% endblock %}
{% include \"@CoreHome/_warningInvalidHost.twig\" %}
<div class=\"admin\" id=\"content\">
<div class=\"ui-confirm\" id=\"alert\">
<h2></h2>
<input role=\"no\" type=\"button\" value=\"{{ 'General_Ok'|translate }}\"/>
</div>
{% block content %}
{% endblock %}
</div>
</div>
</div>
{% endblock %}
", "admin.twig", "D:\\web\\matomo.vdk\\plugins\\Morpheus\\templates\\admin.twig");
}
}