var/cache/test/twig/05/055bd081f3e9f6b320bd29101ee28fdb.php line 136

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. /* @CmsModule/Dashboard/Modal/module.html.twig */
  14. class __TwigTemplate_5224531a98986bb955e852ca515abac0 extends \Twig\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->blocks = [
  23.             'crumbs' => [$this'block_crumbs'],
  24.             'actions' => [$this'block_actions'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@CmsModule/Dashboard/Modal/includes/modal.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsModule/Dashboard/Modal/module.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@CmsModule/Dashboard/Modal/module.html.twig"));
  40.         $this->parent $this->loadTemplate("@CmsModule/Dashboard/Modal/includes/modal.html.twig""@CmsModule/Dashboard/Modal/module.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_crumbs($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""crumbs"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""crumbs"));
  55.         // line 4
  56.         echo "    <nav aria-label=\"breadcrumbs\">
  57.         <ol class=\"breadcrumb\">
  58.             ";
  59.         // line 6
  60.         $context['_parent'] = $context;
  61.         $context['_seq'] = twig_ensure_traversable((isset($context["ancestors"]) || array_key_exists("ancestors"$context) ? $context["ancestors"] : (function () { throw new RuntimeError('Variable "ancestors" does not exist.'6$this->source); })()));
  62.         foreach ($context['_seq'] as $context["_key"] => $context["ancestor"]) {
  63.             // line 7
  64.             echo "                <li>
  65.                     <a href=\"";
  66.             // line 8
  67.             echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'8$this->source); })()), "module", [], "any"falsefalsefalse8), ["containerId" => twig_get_attribute($this->env$this->source,             // line 9
  68. $context["ancestor"], "id", [], "any"falsefalsefalse9)]), "html"nulltrue);
  69.             // line 10
  70.             echo "\">";
  71.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ancestor"], "name", [], "any"falsefalsefalse10), "html"nulltrue);
  72.             echo "</a>
  73.                 </li>
  74.             ";
  75.         }
  76.         $_parent $context['_parent'];
  77.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ancestor'], $context['_parent'], $context['loop']);
  78.         $context array_intersect_key($context$_parent) + $_parent;
  79.         // line 13
  80.         echo "            <li class=\"active\">";
  81.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'13$this->source); })()), "name", [], "any"falsefalsefalse13), "html"nulltrue);
  82.         echo "</li>
  83.         </ol>
  84.     </nav>
  85. ";
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.     }
  91.     // line 18
  92.     public function block_actions($context, array $blocks = [])
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  99.         // line 19
  100.         echo "    ";
  101.         if ((isset($context["workflowSkipper"]) || array_key_exists("workflowSkipper"$context) ? $context["workflowSkipper"] : (function () { throw new RuntimeError('Variable "workflowSkipper" does not exist.'19$this->source); })())) {
  102.             // line 20
  103.             echo "        <a href=\"";
  104.             echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'20$this->source); })()), "create", [], "any"falsefalsefalse20)), "html"nulltrue);
  105.             echo "\">+ Create Page</a>
  106.     ";
  107.         }
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 24
  114.     public function block_body($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  121.         // line 25
  122.         echo "    <div class=\"table-responsive\">
  123.         <table class=\"media\">
  124.             <thead class=\"media__thead\">
  125.                 <tr class=\"media__row\">
  126.                     <th class=\"media__details\">
  127.                         <div class=\"\">Filename</div>
  128.                     </th>
  129.                     <th class=\"media__datetime\">
  130.                         <div class=\"\">Date</div>
  131.                     </th>
  132.                     <th class=\"media__actions\"></th>
  133.                 </tr>
  134.             </thead>
  135.             <tbody class=\"media__tbody\">
  136.                 ";
  137.         // line 39
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'39$this->source); })()));
  140.         $context['loop'] = [
  141.           'parent' => $context['_parent'],
  142.           'index0' => 0,
  143.           'index'  => 1,
  144.           'first'  => true,
  145.         ];
  146.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  147.             $length count($context['_seq']);
  148.             $context['loop']['revindex0'] = $length 1;
  149.             $context['loop']['revindex'] = $length;
  150.             $context['loop']['length'] = $length;
  151.             $context['loop']['last'] = === $length;
  152.         }
  153.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  154.             // line 40
  155.             echo "                    ";
  156.             $this->loadTemplate("@CmsModule/Dashboard/Modal/includes/item.html.twig""@CmsModule/Dashboard/Modal/module.html.twig"40)->display(twig_array_merge(twig_array_merge($context, ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 41
  157. $context["item"], "data", [], "any"falsefalsefalse41), "title", [], "any"falsefalsefalse41), "link" => twig_trim_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->env->getFunction('web_url_view')->getCallable()(            // line 42
  158. $context["item"]), "withHost", [=> ""], "method"falsefalsefalse42), "withScheme", [=> ""], "method"falsefalsefalse42)), "timestamp" => twig_get_attribute($this->env$this->source,             // line 43
  159. $context["item"], "timestampedAt", [], "any"falsefalsefalse43)]), ['_args' => twig_to_array(["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 41
  160. $context["item"], "data", [], "any"falsefalsefalse41), "title", [], "any"falsefalsefalse41), "link" => twig_trim_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->env->getFunction('web_url_view')->getCallable()(            // line 42
  161. $context["item"]), "withHost", [=> ""], "method"falsefalsefalse42), "withScheme", [=> ""], "method"falsefalsefalse42)), "timestamp" => twig_get_attribute($this->env$this->source,             // line 43
  162. $context["item"], "timestampedAt", [], "any"falsefalsefalse43)])]));
  163.             // line 45
  164.             echo "                ";
  165.             ++$context['loop']['index0'];
  166.             ++$context['loop']['index'];
  167.             $context['loop']['first'] = false;
  168.             if (isset($context['loop']['length'])) {
  169.                 --$context['loop']['revindex0'];
  170.                 --$context['loop']['revindex'];
  171.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  172.             }
  173.         }
  174.         $_parent $context['_parent'];
  175.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  176.         $context array_intersect_key($context$_parent) + $_parent;
  177.         // line 46
  178.         echo "            </tbody>
  179.         </table>
  180.     </div>
  181. ";
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "@CmsModule/Dashboard/Modal/module.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         return array (  202 => 46,  188 => 45,  186 => 43,  185 => 42,  184 => 41,  183 => 43,  182 => 42,  181 => 41,  179 => 40,  162 => 39,  146 => 25,  136 => 24,  122 => 20,  119 => 19,  109 => 18,  94 => 13,  84 => 10,  82 => 9,  81 => 8,  78 => 7,  74 => 6,  70 => 4,  60 => 3,  37 => 1,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("{% extends '@CmsModule/Dashboard/Modal/includes/modal.html.twig' %}
  202. {% block crumbs %}
  203.     <nav aria-label=\"breadcrumbs\">
  204.         <ol class=\"breadcrumb\">
  205.             {% for ancestor in ancestors %}
  206.                 <li>
  207.                     <a href=\"{{- curpath(routes.module, {
  208.                         containerId: ancestor.id
  209.                     }) -}}\">{{ ancestor.name }}</a>
  210.                 </li>
  211.             {% endfor %}
  212.             <li class=\"active\">{{ container.name }}</li>
  213.         </ol>
  214.     </nav>
  215. {% endblock %}
  216. {% block actions %}
  217.     {% if workflowSkipper %}
  218.         <a href=\"{{ curpath(routes.create) }}\">+ Create Page</a>
  219.     {% endif %}
  220. {% endblock %}
  221. {% block body %}
  222.     <div class=\"table-responsive\">
  223.         <table class=\"media\">
  224.             <thead class=\"media__thead\">
  225.                 <tr class=\"media__row\">
  226.                     <th class=\"media__details\">
  227.                         <div class=\"\">Filename</div>
  228.                     </th>
  229.                     <th class=\"media__datetime\">
  230.                         <div class=\"\">Date</div>
  231.                     </th>
  232.                     <th class=\"media__actions\"></th>
  233.                 </tr>
  234.             </thead>
  235.             <tbody class=\"media__tbody\">
  236.                 {% for item in items %}
  237.                     {% include '@CmsModule/Dashboard/Modal/includes/item.html.twig' with {
  238.                         title: item.data.title,
  239.                         link: web_url_view(item).withHost('').withScheme('')|trim,
  240.                         timestamp: item.timestampedAt,
  241.                     } %}
  242.                 {% endfor %}
  243.             </tbody>
  244.         </table>
  245.     </div>
  246. {% endblock %}
  247. ""@CmsModule/Dashboard/Modal/module.html.twig""/var/www/campussuite/src/Cms/ModuleBundle/Resources/views/Dashboard/Modal/module.html.twig");
  248.     }
  249. }