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/9c/9c4e5ee18f6c857866a6d332fabe1948.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;

/* @CoreVisualizations/_dataTableViz_tagCloud.twig */
class __TwigTemplate_4750b3330d99094964b3620fcecff0c5 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=\"tagCloud\">
";
        // line 2
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["cloudValues"]) || array_key_exists("cloudValues", $context) ? $context["cloudValues"] : (function () { throw new RuntimeError('Variable "cloudValues" does not exist.', 2, $this->source); })()));
        foreach ($context['_seq'] as $context["word"] => $context["value"]) {
            // line 3
            yield "    <span title=\"";
            yield $this->env->getFilter('rawSafeDecoded')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 3));
            yield " (";
            yield \Piwik\piwik_escape_filter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["value"], "value", [], "any", false, false, false, 3), "html", null, true);
            yield " ";
            yield \Piwik\piwik_escape_filter($this->env, ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["properties"] ?? null), "translations", [], "any", false, true, false, 3), (isset($context["cloudColumn"]) || array_key_exists("cloudColumn", $context) ? $context["cloudColumn"] : (function () { throw new RuntimeError('Variable "cloudColumn" does not exist.', 3, $this->source); })()), [], "array", true, true, false, 3)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["properties"] ?? null), "translations", [], "any", false, true, false, 3), (isset($context["cloudColumn"]) || array_key_exists("cloudColumn", $context) ? $context["cloudColumn"] : (function () { throw new RuntimeError('Variable "cloudColumn" does not exist.', 3, $this->source); })()), [], "array", false, false, false, 3), (isset($context["cloudColumn"]) || array_key_exists("cloudColumn", $context) ? $context["cloudColumn"] : (function () { throw new RuntimeError('Variable "cloudColumn" does not exist.', 3, $this->source); })()))) : ((isset($context["cloudColumn"]) || array_key_exists("cloudColumn", $context) ? $context["cloudColumn"] : (function () { throw new RuntimeError('Variable "cloudColumn" does not exist.', 3, $this->source); })()))), "html", null, true);
            yield ")\" class=\"word size";
            yield \Piwik\piwik_escape_filter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["value"], "size", [], "any", false, false, false, 3), "html", null, true);
            yield "
    ";
            // line 5
            yield "    ";
            if ((CoreExtension::getAttribute($this->env, $this->source, $context["value"], "value", [], "any", false, false, false, 5) == 0)) {
                yield "valueIsZero";
            }
            yield "\">
    ";
            // line 6
            if ( !(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["labelMetadata"]) || array_key_exists("labelMetadata", $context) ? $context["labelMetadata"] : (function () { throw new RuntimeError('Variable "labelMetadata" does not exist.', 6, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 6), [], "array", false, false, false, 6), "url", [], "any", false, false, false, 6) === false)) {
                // line 7
                yield "        <a href=\"";
                yield \Piwik\piwik_escape_filter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["labelMetadata"]) || array_key_exists("labelMetadata", $context) ? $context["labelMetadata"] : (function () { throw new RuntimeError('Variable "labelMetadata" does not exist.', 7, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 7), [], "array", false, false, false, 7), "url", [], "any", false, false, false, 7), "html", null, true);
                yield "\" rel=\"noreferrer noopener\" target=\"_blank\">
    ";
            }
            // line 9
            yield "    ";
            if ( !(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["labelMetadata"]) || array_key_exists("labelMetadata", $context) ? $context["labelMetadata"] : (function () { throw new RuntimeError('Variable "labelMetadata" does not exist.', 9, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 9), [], "array", false, false, false, 9), "logo", [], "any", false, false, false, 9) === false)) {
                // line 10
                yield "        <img src=\"";
                yield \Piwik\piwik_escape_filter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["labelMetadata"]) || array_key_exists("labelMetadata", $context) ? $context["labelMetadata"] : (function () { throw new RuntimeError('Variable "labelMetadata" does not exist.', 10, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 10), [], "array", false, false, false, 10), "logo", [], "any", false, false, false, 10), "html", null, true);
                yield "\" width=\"";
                yield \Piwik\piwik_escape_filter($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["value"], "logoWidth", [], "any", false, false, false, 10), "html", null, true);
                yield "\" />
    ";
            } else {
                // line 12
                yield "        ";
                yield $this->env->getFilter('rawSafeDecoded')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "wordTruncated", [], "any", false, false, false, 12));
                yield "
    ";
            }
            // line 14
            yield "    ";
            if ( !(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["labelMetadata"]) || array_key_exists("labelMetadata", $context) ? $context["labelMetadata"] : (function () { throw new RuntimeError('Variable "labelMetadata" does not exist.', 14, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["value"], "word", [], "any", false, false, false, 14), [], "array", false, false, false, 14), "url", [], "any", false, false, false, 14) === false)) {
                yield "</a>";
            }
            // line 15
            yield "    </span>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['word'], $context['value'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        yield "</div>
";
        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  100 => 17,  93 => 15,  88 => 14,  82 => 12,  74 => 10,  71 => 9,  65 => 7,  63 => 6,  56 => 5,  45 => 3,  41 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"tagCloud\">
{% for word,value in cloudValues %}
    <span title=\"{{ value.word|rawSafeDecoded }} ({{ value.value }} {{ properties.translations[cloudColumn]|default(cloudColumn) }})\" class=\"word size{{ value.size }}
    {# we strike tags with 0 hits #}
    {% if value.value == 0 %}valueIsZero{% endif %}\">
    {% if labelMetadata[value.word].url is not same as(false) %}
        <a href=\"{{ labelMetadata[value.word].url }}\" rel=\"noreferrer noopener\" target=\"_blank\">
    {% endif %}
    {% if labelMetadata[value.word].logo is not same as(false) %}
        <img src=\"{{ labelMetadata[value.word].logo }}\" width=\"{{ value.logoWidth }}\" />
    {% else %}
        {{ value.wordTruncated|rawSafeDecoded }}
    {% endif %}
    {% if labelMetadata[value.word].url is not same as(false) %}</a>{% endif %}
    </span>
{% endfor %}
</div>
", "@CoreVisualizations/_dataTableViz_tagCloud.twig", "D:\\web\\matomo.circ\\plugins\\CoreVisualizations\\templates\\_dataTableViz_tagCloud.twig");
    }
}