<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* @CorePluginsAdmin/plugins.twig */
class __TwigTemplate_9866674f365fc1208d6fb099d84beefd399a58df961394ef2099e8b87752df1f 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 2
        return "admin.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 4
        $macros["plugins"] = $this->macros["plugins"] = $this->loadTemplate("@CorePluginsAdmin/macros.twig", "@CorePluginsAdmin/plugins.twig", 4)->unwrap();
        // line 6
        ob_start();
        echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_PluginsManagement"]), "html", null, true);
        $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 2
        $this->parent = $this->loadTemplate("admin.twig", "@CorePluginsAdmin/plugins.twig", 2);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 8
    public function block_content($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 9
        echo "
    ";
        // line 10
        $this->loadTemplate("@Marketplace/uploadPluginDialog.twig", "@CorePluginsAdmin/plugins.twig", 10)->display($context);
        // line 11
        echo "
    <div piwik-content-intro>
        <h2 piwik-enriched-headline>
            ";
        // line 14
        echo \Piwik\piwik_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 14, $this->source); })()), "html_attr");
        echo "
        </h2>

        <p>";
        // line 17
        echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_PluginsExtendPiwik"]), "html", null, true);
        echo "
            ";
        // line 18
        echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_OncePluginIsInstalledYouMayActivateHere"]), "html", null, true);
        echo "

            ";
        // line 20
        if (((isset($context["isMarketplaceEnabled"]) || array_key_exists("isMarketplaceEnabled", $context) ? $context["isMarketplaceEnabled"] : (function () { throw new RuntimeError('Variable "isMarketplaceEnabled" does not exist.', 20, $this->source); })()) || (isset($context["isPluginUploadEnabled"]) || array_key_exists("isPluginUploadEnabled", $context) ? $context["isPluginUploadEnabled"] : (function () { throw new RuntimeError('Variable "isPluginUploadEnabled" does not exist.', 20, $this->source); })()))) {
            // line 21
            echo "                ";
            echo call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_TeaserExtendPiwikByPlugin", (("<a href=\"" . \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), [["module" => "Marketplace", "action" => "overview", "sort" => null, "activated" => null]]), "html_attr")) . "\">"), "</a>", "<a href=\"#\" class=\"uploadPlugin\">", "</a>"]);
            // line 26
            echo "
            ";
        }
        // line 28
        echo "
            ";
        // line 29
        if ( !(isset($context["isPluginsAdminEnabled"]) || array_key_exists("isPluginsAdminEnabled", $context) ? $context["isPluginsAdminEnabled"] : (function () { throw new RuntimeError('Variable "isPluginsAdminEnabled" does not exist.', 29, $this->source); })())) {
            // line 30
            echo "                <br/>";
            echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_DoMoreContactPiwikAdmins"]), "html", null, true);
            echo "
            ";
        }
        // line 32
        echo "
            ";
        // line 33
        echo call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_ChangeLookByManageThemes", (("<a href=\"" . \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), [["action" => "themes", "activated" => null]]), "html_attr")) . "\">"), "</a>"]);
        echo "
        </p>
    </div>

    ";
        // line 37
        if (twig_length_filter($this->env, (isset($context["pluginsHavingUpdate"]) || array_key_exists("pluginsHavingUpdate", $context) ? $context["pluginsHavingUpdate"] : (function () { throw new RuntimeError('Variable "pluginsHavingUpdate" does not exist.', 37, $this->source); })()))) {
            // line 38
            echo "        <div piwik-content-block content-title=\"";
            echo \Piwik\piwik_escape_filter($this->env, twig_length_filter($this->env, (isset($context["pluginsHavingUpdate"]) || array_key_exists("pluginsHavingUpdate", $context) ? $context["pluginsHavingUpdate"] : (function () { throw new RuntimeError('Variable "pluginsHavingUpdate" does not exist.', 38, $this->source); })())), "html", null, true);
            echo " Update(s) available\">

            <p>";
            // line 40
            echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_InfoPluginUpdateIsRecommended"]), "html", null, true);
            echo "</p>

            ";
            // line 42
            echo twig_call_macro($macros["plugins"], "macro_tablePluginUpdates", [(isset($context["pluginsHavingUpdate"]) || array_key_exists("pluginsHavingUpdate", $context) ? $context["pluginsHavingUpdate"] : (function () { throw new RuntimeError('Variable "pluginsHavingUpdate" does not exist.', 42, $this->source); })()), (isset($context["updateNonce"]) || array_key_exists("updateNonce", $context) ? $context["updateNonce"] : (function () { throw new RuntimeError('Variable "updateNonce" does not exist.', 42, $this->source); })()), (isset($context["isMultiServerEnvironment"]) || array_key_exists("isMultiServerEnvironment", $context) ? $context["isMultiServerEnvironment"] : (function () { throw new RuntimeError('Variable "isMultiServerEnvironment" does not exist.', 42, $this->source); })())], 42, $context, $this->getSourceContext());
            echo "
        </div>
    ";
        }
        // line 45
        echo "
    <div piwik-content-block content-title=\"";
        // line 46
        echo \Piwik\piwik_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), ["CorePluginsAdmin_InstalledPlugins"]), "html_attr");
        echo "\"
         class=\"pluginsManagement\"
         piwik-plugin-management>

        ";
        // line 50
        echo twig_call_macro($macros["plugins"], "macro_pluginsFilter", [], 50, $context, $this->getSourceContext());
        echo "

        ";
        // line 52
        echo twig_call_macro($macros["plugins"], "macro_tablePlugins", [(isset($context["pluginsInfo"]) || array_key_exists("pluginsInfo", $context) ? $context["pluginsInfo"] : (function () { throw new RuntimeError('Variable "pluginsInfo" does not exist.', 52, $this->source); })()), (isset($context["pluginNamesHavingSettings"]) || array_key_exists("pluginNamesHavingSettings", $context) ? $context["pluginNamesHavingSettings"] : (function () { throw new RuntimeError('Variable "pluginNamesHavingSettings" does not exist.', 52, $this->source); })()), (isset($context["activateNonce"]) || array_key_exists("activateNonce", $context) ? $context["activateNonce"] : (function () { throw new RuntimeError('Variable "activateNonce" does not exist.', 52, $this->source); })()), (isset($context["deactivateNonce"]) || array_key_exists("deactivateNonce", $context) ? $context["deactivateNonce"] : (function () { throw new RuntimeError('Variable "deactivateNonce" does not exist.', 52, $this->source); })()), (isset($context["uninstallNonce"]) || array_key_exists("uninstallNonce", $context) ? $context["uninstallNonce"] : (function () { throw new RuntimeError('Variable "uninstallNonce" does not exist.', 52, $this->source); })()), false, (isset($context["marketplacePluginNames"]) || array_key_exists("marketplacePluginNames", $context) ? $context["marketplacePluginNames"] : (function () { throw new RuntimeError('Variable "marketplacePluginNames" does not exist.', 52, $this->source); })()), (isset($context["isPluginsAdminEnabled"]) || array_key_exists("isPluginsAdminEnabled", $context) ? $context["isPluginsAdminEnabled"] : (function () { throw new RuntimeError('Variable "isPluginsAdminEnabled" does not exist.', 52, $this->source); })())], 52, $context, $this->getSourceContext());
        echo "

    </div>

";
    }

    public function getTemplateName()
    {
        return "@CorePluginsAdmin/plugins.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  146 => 52,  141 => 50,  134 => 46,  131 => 45,  125 => 42,  120 => 40,  114 => 38,  112 => 37,  105 => 33,  102 => 32,  96 => 30,  94 => 29,  91 => 28,  87 => 26,  84 => 21,  82 => 20,  77 => 18,  73 => 17,  67 => 14,  62 => 11,  60 => 10,  57 => 9,  53 => 8,  48 => 2,  44 => 6,  42 => 4,  35 => 2,);
    }

    public function getSourceContext()
    {
        return new Source("
{% extends 'admin.twig' %}

{% import '@CorePluginsAdmin/macros.twig' as plugins %}

{% set title %}{{ 'CorePluginsAdmin_PluginsManagement'|translate }}{% endset %}

{% block content %}

    {% include '@Marketplace/uploadPluginDialog.twig' %}

    <div piwik-content-intro>
        <h2 piwik-enriched-headline>
            {{ title|e('html_attr') }}
        </h2>

        <p>{{ 'CorePluginsAdmin_PluginsExtendPiwik'|translate }}
            {{ 'CorePluginsAdmin_OncePluginIsInstalledYouMayActivateHere'|translate }}

            {% if isMarketplaceEnabled or isPluginUploadEnabled %}
                {{ 'CorePluginsAdmin_TeaserExtendPiwikByPlugin'|translate(
                    '<a href=\"' ~ linkTo({'module':'Marketplace', 'action':'overview', 'sort': null, 'activated': null})|e('html_attr') ~ '\">',
                    '</a>',
                    '<a href=\"#\" class=\"uploadPlugin\">',
                    '</a>'
                )|raw }}
            {% endif %}

            {% if not isPluginsAdminEnabled %}
                <br/>{{ 'CorePluginsAdmin_DoMoreContactPiwikAdmins'|translate }}
            {% endif %}

            {{ 'CorePluginsAdmin_ChangeLookByManageThemes'|translate('<a href=\"' ~ linkTo({'action': 'themes', 'activated': null})|e('html_attr') ~'\">', '</a>')|raw }}
        </p>
    </div>

    {% if pluginsHavingUpdate|length %}
        <div piwik-content-block content-title=\"{{ pluginsHavingUpdate|length }} Update(s) available\">

            <p>{{ 'CorePluginsAdmin_InfoPluginUpdateIsRecommended'|translate }}</p>

            {{ plugins.tablePluginUpdates(pluginsHavingUpdate, updateNonce, isMultiServerEnvironment) }}
        </div>
    {% endif %}

    <div piwik-content-block content-title=\"{{ 'CorePluginsAdmin_InstalledPlugins'|translate|e('html_attr') }}\"
         class=\"pluginsManagement\"
         piwik-plugin-management>

        {{ plugins.pluginsFilter() }}

        {{ plugins.tablePlugins(pluginsInfo, pluginNamesHavingSettings, activateNonce, deactivateNonce, uninstallNonce, false, marketplacePluginNames, isPluginsAdminEnabled) }}

    </div>

{% endblock %}
", "@CorePluginsAdmin/plugins.twig", "/pages/1b/28/d0012466/home/htdocs/Piwik/plugins/CorePluginsAdmin/templates/plugins.twig");
    }
}
