var/cache/dev/twig/dc/dc9d45232fb513a817316af6c1bbd7cf1ee835780d2f5c32b7ad50dd63690032.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* network/profile/widgets/profile_widget_downloads.html.twig */
  14. class __TwigTemplate_2732a498c8f10caca961214b0f219be02b5cccafc467345cfd222f170b879331 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/widgets/profile_widget_downloads.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/widgets/profile_widget_downloads.html.twig"));
  33.         // line 1
  34.         $context["downloads"] = twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'1$this->source); })()), "downloads", [], "any"falsefalsefalse1);
  35.         // line 2
  36.         if ((isset($context["downloads"]) || array_key_exists("downloads"$context) ? $context["downloads"] : (function () { throw new RuntimeError('Variable "downloads" does not exist.'2$this->source); })())) {
  37.             // line 3
  38.             echo "  ";
  39.             $this->loadTemplate("network/profile/widgets/profile_widget_downloads.html.twig""network/profile/widgets/profile_widget_downloads.html.twig"3"1219249931")->display($context);
  40.         }
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     public function getTemplateName()
  47.     {
  48.         return "network/profile/widgets/profile_widget_downloads.html.twig";
  49.     }
  50.     public function isTraitable()
  51.     {
  52.         return false;
  53.     }
  54.     public function getDebugInfo()
  55.     {
  56.         return array (  47 => 3,  45 => 2,  43 => 1,);
  57.     }
  58.     public function getSourceContext()
  59.     {
  60.         return new Source("{% set downloads = profile.downloads %}
  61. {% if downloads %}
  62.   {% embed 'network/widget/widget.html.twig' %}
  63.     {% block content %}
  64.       <div>
  65.         <h3 class=\"mb-5 text-lg font-medium uppercase font-headline text-neutral-600\">
  66.           {{ 'Downloads'|trans }}
  67.         </h3>
  68.         <ul class=\"grid gap-3\">
  69.           {% for download in downloads %}
  70.             <li class=\"flex gap-2\">
  71.               {% include 'icons/download.svg.twig' with { class: 'w-5 h-5 mt-px flex-shrink-0' } %}
  72.               <a href=\"{{ absolute_url(download.element.fullPath) }}\"
  73.                 target=\"_blank\"
  74.                 title=\"{{ download.data.title }}\"
  75.                 class=\"grid\"
  76.                 rel=\"noopener noreferrer\"
  77.                 download>
  78.                 <span class=\"truncate\">{{ download.data.title ?? download.element.key }}</span>
  79.                 <span class=\"text-sm truncate text-neutral-500\">
  80.                   {{ download.element.mimetype }} [{{ download.element.filesize(true) }}]
  81.                 </span>
  82.               </a>
  83.             </li>
  84.           {% endfor %}
  85.         </ul>
  86.       </div>
  87.     {% endblock %}
  88.   {% endembed %}
  89. {% endif %}
  90. ""network/profile/widgets/profile_widget_downloads.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/profile/widgets/profile_widget_downloads.html.twig");
  91.     }
  92. }
  93. /* network/profile/widgets/profile_widget_downloads.html.twig */
  94. class __TwigTemplate_2732a498c8f10caca961214b0f219be02b5cccafc467345cfd222f170b879331___1219249931 extends Template
  95. {
  96.     private $source;
  97.     private $macros = [];
  98.     public function __construct(Environment $env)
  99.     {
  100.         parent::__construct($env);
  101.         $this->source $this->getSourceContext();
  102.         $this->blocks = [
  103.             'content' => [$this'block_content'],
  104.         ];
  105.     }
  106.     protected function doGetParent(array $context)
  107.     {
  108.         return "network/widget/widget.html.twig";
  109.     }
  110.     protected function doDisplay(array $context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/widgets/profile_widget_downloads.html.twig"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/widgets/profile_widget_downloads.html.twig"));
  117.         $this->parent $this->loadTemplate("network/widget/widget.html.twig""network/profile/widgets/profile_widget_downloads.html.twig"3);
  118.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  119.         
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  121.         
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  123.     }
  124.     // line 4
  125.     public function block_content($context, array $blocks = [])
  126.     {
  127.         $macros $this->macros;
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  130.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  132.         // line 5
  133.         echo "      <div>
  134.         <h3 class=\"mb-5 text-lg font-medium uppercase font-headline text-neutral-600\">
  135.           ";
  136.         // line 7
  137.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Downloads"), "html"nulltrue);
  138.         echo "
  139.         </h3>
  140.         <ul class=\"grid gap-3\">
  141.           ";
  142.         // line 10
  143.         $context['_parent'] = $context;
  144.         $context['_seq'] = twig_ensure_traversable((isset($context["downloads"]) || array_key_exists("downloads"$context) ? $context["downloads"] : (function () { throw new RuntimeError('Variable "downloads" does not exist.'10$this->source); })()));
  145.         $context['loop'] = [
  146.           'parent' => $context['_parent'],
  147.           'index0' => 0,
  148.           'index'  => 1,
  149.           'first'  => true,
  150.         ];
  151.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  152.             $length count($context['_seq']);
  153.             $context['loop']['revindex0'] = $length 1;
  154.             $context['loop']['revindex'] = $length;
  155.             $context['loop']['length'] = $length;
  156.             $context['loop']['last'] = === $length;
  157.         }
  158.         foreach ($context['_seq'] as $context["_key"] => $context["download"]) {
  159.             // line 11
  160.             echo "            <li class=\"flex gap-2\">
  161.               ";
  162.             // line 12
  163.             $this->loadTemplate("icons/download.svg.twig""network/profile/widgets/profile_widget_downloads.html.twig"12)->display(twig_array_merge($context, ["class" => "w-5 h-5 mt-px flex-shrink-0"]));
  164.             // line 13
  165.             echo "              <a href=\"";
  166.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "element", [], "any"falsefalsefalse13), "fullPath", [], "any"falsefalsefalse13)), "html"nulltrue);
  167.             echo "\"
  168.                 target=\"_blank\"
  169.                 title=\"";
  170.             // line 15
  171.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "data", [], "any"falsefalsefalse15), "title", [], "any"falsefalsefalse15), "html"nulltrue);
  172.             echo "\"
  173.                 class=\"grid\"
  174.                 rel=\"noopener noreferrer\"
  175.                 download>
  176.                 <span class=\"truncate\">";
  177.             // line 19
  178.             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "data", [], "any"falsetruefalse19), "title", [], "any"truetruefalse19) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "data", [], "any"falsetruefalse19), "title", [], "any"falsefalsefalse19)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "data", [], "any"falsetruefalse19), "title", [], "any"falsefalsefalse19)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "element", [], "any"falsefalsefalse19), "key", [], "any"falsefalsefalse19))), "html"nulltrue);
  179.             echo "</span>
  180.                 <span class=\"text-sm truncate text-neutral-500\">
  181.                   ";
  182.             // line 21
  183.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "element", [], "any"falsefalsefalse21), "mimetype", [], "any"falsefalsefalse21), "html"nulltrue);
  184.             echo " [";
  185.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["download"], "element", [], "any"falsefalsefalse21), "filesize", [=> true], "method"falsefalsefalse21), "html"nulltrue);
  186.             echo "]
  187.                 </span>
  188.               </a>
  189.             </li>
  190.           ";
  191.             ++$context['loop']['index0'];
  192.             ++$context['loop']['index'];
  193.             $context['loop']['first'] = false;
  194.             if (isset($context['loop']['length'])) {
  195.                 --$context['loop']['revindex0'];
  196.                 --$context['loop']['revindex'];
  197.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  198.             }
  199.         }
  200.         $_parent $context['_parent'];
  201.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['download'], $context['_parent'], $context['loop']);
  202.         $context array_intersect_key($context$_parent) + $_parent;
  203.         // line 26
  204.         echo "        </ul>
  205.       </div>
  206.     ";
  207.         
  208.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  209.         
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  211.     }
  212.     public function getTemplateName()
  213.     {
  214.         return "network/profile/widgets/profile_widget_downloads.html.twig";
  215.     }
  216.     public function isTraitable()
  217.     {
  218.         return false;
  219.     }
  220.     public function getDebugInfo()
  221.     {
  222.         return array (  233 => 26,  212 => 21,  207 => 19,  200 => 15,  194 => 13,  192 => 12,  189 => 11,  172 => 10,  166 => 7,  162 => 5,  152 => 4,  47 => 3,  45 => 2,  43 => 1,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% set downloads = profile.downloads %}
  227. {% if downloads %}
  228.   {% embed 'network/widget/widget.html.twig' %}
  229.     {% block content %}
  230.       <div>
  231.         <h3 class=\"mb-5 text-lg font-medium uppercase font-headline text-neutral-600\">
  232.           {{ 'Downloads'|trans }}
  233.         </h3>
  234.         <ul class=\"grid gap-3\">
  235.           {% for download in downloads %}
  236.             <li class=\"flex gap-2\">
  237.               {% include 'icons/download.svg.twig' with { class: 'w-5 h-5 mt-px flex-shrink-0' } %}
  238.               <a href=\"{{ absolute_url(download.element.fullPath) }}\"
  239.                 target=\"_blank\"
  240.                 title=\"{{ download.data.title }}\"
  241.                 class=\"grid\"
  242.                 rel=\"noopener noreferrer\"
  243.                 download>
  244.                 <span class=\"truncate\">{{ download.data.title ?? download.element.key }}</span>
  245.                 <span class=\"text-sm truncate text-neutral-500\">
  246.                   {{ download.element.mimetype }} [{{ download.element.filesize(true) }}]
  247.                 </span>
  248.               </a>
  249.             </li>
  250.           {% endfor %}
  251.         </ul>
  252.       </div>
  253.     {% endblock %}
  254.   {% endembed %}
  255. {% endif %}
  256. ""network/profile/widgets/profile_widget_downloads.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/profile/widgets/profile_widget_downloads.html.twig");
  257.     }
  258. }