HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/matomo.circ/tmp/templates_c/8d/8d1617287d857085e369742034436c9b.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;

/* @Insights/insightControls.twig */
class __TwigTemplate_b6c1771f30fee37c1e155cc97d3a2da3 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        yield "<div class=\"controls\">

    ";
        // line 3
        if (((isset($context["period"]) || array_key_exists("period", $context) ? $context["period"] : (function () { throw new RuntimeError('Variable "period" does not exist.', 3, $this->source); })()) != "range")) {
            // line 4
            yield "    <div>
        ";
            // line 5
            yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_ControlComparedToDescription"), "html", null, true);
            yield "

        ";
            // line 7
            if (((isset($context["period"]) || array_key_exists("period", $context) ? $context["period"] : (function () { throw new RuntimeError('Variable "period" does not exist.', 7, $this->source); })()) == "day")) {
                // line 8
                yield "            <div class=\"row\">
                <div class=\"col s12 m6 l4 input-field\">
                    <select size=\"1\" name=\"comparedToXPeriodsAgo\">
                        <option value=\"1\" ";
                // line 11
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 11, $this->source); })()), "compared_to_x_periods_ago", [], "any", false, false, false, 11) == 1)) {
                    yield "selected";
                }
                yield ">";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_DayComparedToPreviousDay"), "html", null, true);
                yield "</option>
                        <option value=\"7\" ";
                // line 12
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 12, $this->source); })()), "compared_to_x_periods_ago", [], "any", false, false, false, 12) == 7)) {
                    yield "selected";
                }
                yield ">";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_DayComparedToPreviousWeek"), "html", null, true);
                yield "</option>
                        <option value=\"365\" ";
                // line 13
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 13, $this->source); })()), "compared_to_x_periods_ago", [], "any", false, false, false, 13) == 365)) {
                    yield "selected";
                }
                yield ">";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_DayComparedToPreviousYear"), "html", null, true);
                yield "</option>
                    </select>
                </div>
            </div>
        ";
            } elseif ((            // line 17
(isset($context["period"]) || array_key_exists("period", $context) ? $context["period"] : (function () { throw new RuntimeError('Variable "period" does not exist.', 17, $this->source); })()) == "month")) {
                // line 18
                yield "            <div class=\"row\">
                <div class=\"col s12 m6 l4 input-field\">
                    <select size=\"1\" name=\"comparedToXPeriodsAgo\">
                        <option value=\"1\" ";
                // line 21
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 21, $this->source); })()), "compared_to_x_periods_ago", [], "any", false, false, false, 21) == 1)) {
                    yield "selected";
                }
                yield ">";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_MonthComparedToPreviousMonth"), "html", null, true);
                yield "</option>
                        <option value=\"12\" ";
                // line 22
                if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 22, $this->source); })()), "compared_to_x_periods_ago", [], "any", false, false, false, 22) == 12)) {
                    yield "selected";
                }
                yield ">";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_MonthComparedToPreviousYear"), "html", null, true);
                yield "</option>
                    </select>
                </div>
            </div>
        ";
            } elseif ((            // line 26
(isset($context["period"]) || array_key_exists("period", $context) ? $context["period"] : (function () { throw new RuntimeError('Variable "period" does not exist.', 26, $this->source); })()) == "week")) {
                // line 27
                yield "            ";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_WeekComparedToPreviousWeek"), "html", null, true);
                yield "
        ";
            } elseif ((            // line 28
(isset($context["period"]) || array_key_exists("period", $context) ? $context["period"] : (function () { throw new RuntimeError('Variable "period" does not exist.', 28, $this->source); })()) == "year")) {
                // line 29
                yield "            ";
                yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_YearComparedToPreviousYear"), "html", null, true);
                yield "
        ";
            }
            // line 31
            yield "    </div>
    ";
        }
        // line 33
        yield "
    <div>
        ";
        // line 35
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_Filter"), "html", null, true);
        yield "

        <div class=\"row\">
            <div class=\"col s12 m4 l4 input-field\">
                <select size=\"1\" name=\"filterBy\" title=\"";
        // line 39
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_ControlFilterByDescription"), "html_attr");
        yield "\">
                    <option ";
        // line 40
        if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 40, $this->source); })()), "filter_by", [], "any", false, false, false, 40)) {
            yield "selected";
        }
        yield " value=\"all\">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("General_All"), "html", null, true);
        yield "</option>
                    <option ";
        // line 41
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 41, $this->source); })()), "filter_by", [], "any", false, false, false, 41) == "movers")) {
            yield "selected";
        }
        yield " value=\"movers\">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_FilterOnlyMovers"), "html", null, true);
        yield "</option>
                    <option ";
        // line 42
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 42, $this->source); })()), "filter_by", [], "any", false, false, false, 42) == "new")) {
            yield "selected";
        }
        yield " value=\"new\">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_FilterOnlyNew"), "html", null, true);
        yield "</option>
                    <option ";
        // line 43
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 43, $this->source); })()), "filter_by", [], "any", false, false, false, 43) == "disappeared")) {
            yield "selected";
        }
        yield " value=\"disappeared\">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_FilterOnlyDisappeared"), "html", null, true);
        yield "</option>
                </select>
            </div>

            <div class=\"col s12 m6 l4 input-field\">
                <select size=\"1\" name=\"showIncreaseOrDecrease\" title=\"Show increaser and/or decreaser\">
                    <option value=\"both\" ";
        // line 49
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 49, $this->source); })()), "limit_increaser", [], "any", false, false, false, 49) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 49, $this->source); })()), "limit_decreaser", [], "any", false, false, false, 49))) {
            yield "selected";
        }
        yield ">";
        yield $this->env->getFilter('translate')->getCallable()("Insights_FilterIncreaserAndDecreaser");
        yield "</option>
                    <option value=\"increase\" ";
        // line 50
        if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 50, $this->source); })()), "limit_increaser", [], "any", false, false, false, 50) &&  !CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 50, $this->source); })()), "limit_decreaser", [], "any", false, false, false, 50))) {
            yield "selected";
        }
        yield ">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_FilterOnlyIncreaser"), "html", null, true);
        yield "</option>
                    <option value=\"decrease\" ";
        // line 51
        if (( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 51, $this->source); })()), "limit_increaser", [], "any", false, false, false, 51) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 51, $this->source); })()), "limit_decreaser", [], "any", false, false, false, 51))) {
            yield "selected";
        }
        yield ">";
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Insights_FilterOnlyDecreaser"), "html", null, true);
        yield "</option>
                </select>
            </div><div class=\"col s12 m1 l4\">&nbsp;</div>

        </div>
    </div>
</div>";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@Insights/insightControls.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  199 => 51,  191 => 50,  183 => 49,  170 => 43,  162 => 42,  154 => 41,  146 => 40,  142 => 39,  135 => 35,  131 => 33,  127 => 31,  121 => 29,  119 => 28,  114 => 27,  112 => 26,  101 => 22,  93 => 21,  88 => 18,  86 => 17,  75 => 13,  67 => 12,  59 => 11,  54 => 8,  52 => 7,  47 => 5,  44 => 4,  42 => 3,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"controls\">

    {% if period != 'range' %}
    <div>
        {{ 'Insights_ControlComparedToDescription'|translate }}

        {% if period == 'day' %}
            <div class=\"row\">
                <div class=\"col s12 m6 l4 input-field\">
                    <select size=\"1\" name=\"comparedToXPeriodsAgo\">
                        <option value=\"1\" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}>{{ 'Insights_DayComparedToPreviousDay'|translate }}</option>
                        <option value=\"7\" {% if properties.compared_to_x_periods_ago == 7 %}selected{% endif %}>{{ 'Insights_DayComparedToPreviousWeek'|translate }}</option>
                        <option value=\"365\" {% if properties.compared_to_x_periods_ago == 365 %}selected{% endif %}>{{ 'Insights_DayComparedToPreviousYear'|translate }}</option>
                    </select>
                </div>
            </div>
        {% elseif period == 'month' %}
            <div class=\"row\">
                <div class=\"col s12 m6 l4 input-field\">
                    <select size=\"1\" name=\"comparedToXPeriodsAgo\">
                        <option value=\"1\" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}>{{ 'Insights_MonthComparedToPreviousMonth'|translate }}</option>
                        <option value=\"12\" {% if properties.compared_to_x_periods_ago == 12 %}selected{% endif %}>{{ 'Insights_MonthComparedToPreviousYear'|translate }}</option>
                    </select>
                </div>
            </div>
        {% elseif period == 'week' %}
            {{ 'Insights_WeekComparedToPreviousWeek'|translate }}
        {% elseif period == 'year' %}
            {{ 'Insights_YearComparedToPreviousYear'|translate }}
        {% endif %}
    </div>
    {% endif %}

    <div>
        {{ 'Insights_Filter'|translate }}

        <div class=\"row\">
            <div class=\"col s12 m4 l4 input-field\">
                <select size=\"1\" name=\"filterBy\" title=\"{{ 'Insights_ControlFilterByDescription'|translate|e('html_attr') }}\">
                    <option {% if not properties.filter_by %}selected{% endif %} value=\"all\">{{ 'General_All'|translate }}</option>
                    <option {% if properties.filter_by == 'movers' %}selected{% endif %} value=\"movers\">{{ 'Insights_FilterOnlyMovers'|translate }}</option>
                    <option {% if properties.filter_by == 'new' %}selected{% endif %} value=\"new\">{{ 'Insights_FilterOnlyNew'|translate }}</option>
                    <option {% if properties.filter_by == 'disappeared' %}selected{% endif %} value=\"disappeared\">{{ 'Insights_FilterOnlyDisappeared'|translate }}</option>
                </select>
            </div>

            <div class=\"col s12 m6 l4 input-field\">
                <select size=\"1\" name=\"showIncreaseOrDecrease\" title=\"Show increaser and/or decreaser\">
                    <option value=\"both\" {% if properties.limit_increaser and properties.limit_decreaser %}selected{%endif%}>{{ 'Insights_FilterIncreaserAndDecreaser'|translate|raw }}</option>
                    <option value=\"increase\" {% if properties.limit_increaser and not properties.limit_decreaser %}selected{%endif%}>{{ 'Insights_FilterOnlyIncreaser'|translate }}</option>
                    <option value=\"decrease\" {% if not properties.limit_increaser and properties.limit_decreaser %}selected{%endif%}>{{ 'Insights_FilterOnlyDecreaser'|translate }}</option>
                </select>
            </div><div class=\"col s12 m1 l4\">&nbsp;</div>

        </div>
    </div>
</div>", "@Insights/insightControls.twig", "D:\\web\\matomo.circ\\plugins\\Insights\\templates\\insightControls.twig");
    }
}