var/cache/website/dev/twig/9a/9a350ffecb74670e6d1f47b26bd4120c.php line 33

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. /* includes/blocks/projectList.html.twig */
  14. class __TwigTemplate_33a995ad39a6c88aa61145b41d8ed867 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/projectList.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/projectList.html.twig"));
  33.         // line 1
  34.         $context["types"] = ["All projects""Ongoing""Coming""Completed"];
  35.         // line 3
  36.         echo "
  37. ";
  38.         // line 6
  39.         $macros["macrosTypography"] = $this->macros["macrosTypography"] = $this->loadTemplate("./macros_typography.html.twig""includes/blocks/projectList.html.twig"6)->unwrap();
  40.         // line 7
  41.         $macros["macrosButton"] = $this->macros["macrosButton"] = $this->loadTemplate("./macros_button.html.twig""includes/blocks/projectList.html.twig"7)->unwrap();
  42.         // line 8
  43.         echo "
  44. <section class=\"projects-section py-12\"
  45.   section-shade=\"dark\">
  46.   <div class=\"big-container\">
  47.     <nav>
  48.       <ul class=\"projects-type-wrapp flex flex-wrap gap-x-4 gap-y-5\">
  49.         ";
  50.         // line 15
  51.         $context['_parent'] = $context;
  52.         $context['_seq'] = twig_ensure_traversable(($context["types"] ?? null));
  53.         $context['loop'] = [
  54.           'parent' => $context['_parent'],
  55.           'index0' => 0,
  56.           'index'  => 1,
  57.           'first'  => true,
  58.         ];
  59.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  60.             $length count($context['_seq']);
  61.             $context['loop']['revindex0'] = $length 1;
  62.             $context['loop']['revindex'] = $length;
  63.             $context['loop']['length'] = $length;
  64.             $context['loop']['last'] = === $length;
  65.         }
  66.         foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
  67.             // line 16
  68.             echo "        <li fade
  69.           fade-trigger=\"none\">
  70.           <button class=\"project-type-btn ";
  71.             // line 18
  72.             echo ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse18)) ? ("active") : (""));
  73.             echo "\"
  74.             type=\"";
  75.             // line 19
  76.             ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse19)) ? (print ("")) : (print (twig_escape_filter($this->envtwig_replace_filter(twig_lower_filter($this->env$context["type"]), [" " => "_"]), "html"nulltrue))));
  77.             echo "\">
  78.             <svg>
  79.               <use xlink:href=\"#icon-check\"></use>
  80.             </svg>
  81.             ";
  82.             // line 23
  83.             echo twig_escape_filter($this->env$context["type"], "html"nulltrue);
  84.             echo "
  85.           </button>
  86.         </li>
  87.         ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 27
  101.         echo "      </ul>
  102.     </nav>
  103.     <div class=\"grid md:grid-cols-2 2xl:grid-cols-3 gap-x-8 gap-y-10 md:gap-y-28 mt-12\">
  104.       ";
  105.         // line 31
  106.         $context['_parent'] = $context;
  107.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "projects", [], "any"falsefalsefalse31));
  108.         foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
  109.             // line 32
  110.             echo "      <div class=\"project-item grid grid-rows-[auto_1fr]\"
  111.         type=\"";
  112.             // line 33
  113.             echo twig_escape_filter($this->envtwig_replace_filter(twig_lower_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "projectType", [], "any"falsefalsefalse33)), [" " => "_"]), "html"nulltrue);
  114.             echo "\"
  115.         fade
  116.         fade-trigger=\"none\">
  117.         <div class=\"relative overflow-hidden\">
  118.           ";
  119.             // line 38
  120.             if (twig_get_attribute($this->env$this->source$context["project"], "projectType", [], "any"falsefalsefalse38)) {
  121.                 // line 39
  122.                 echo "          <div class=\"absolute top-4 left-4 bg-white rounded-full py-2 px-6 text-blue text-sm z-10\">
  123.             ";
  124.                 // line 40
  125.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "projectType", [], "any"falsefalsefalse40), "html"nulltrue);
  126.                 echo "
  127.           </div>
  128.           ";
  129.             }
  130.             // line 43
  131.             echo "
  132.           <div
  133.             class=\"project-item__img h-[50vh] min-h-[310px] max-h-[310px] lg:max-h-[450px] scale-110 img-clip select-none\">
  134.             ";
  135.             // line 47
  136.             echo "            ";
  137.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "image", [], "any"falsefalsefalse47)) > 0)) {
  138.                 // line 48
  139.                 echo "            ";
  140.                 $context["image"] = (($__internal_compile_0 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["project"], "image", [], "any"falsefalsefalse48), "thumbnails", [], "any"falsefalsefalse48)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["720x840"] ?? null) : null);
  141.                 // line 49
  142.                 echo "            <img src=\"";
  143.                 echo twig_escape_filter($this->env, ($context["image"] ?? null), "html"nulltrue);
  144.                 echo "\"
  145.               width=\"100\"
  146.               height=\"450px\"
  147.               alt=\"";
  148.                 // line 52
  149.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "title", [], "any"falsefalsefalse52), "html"nulltrue);
  150.                 echo "\"
  151.               loading=\"lazy\">
  152.             ";
  153.             }
  154.             // line 55
  155.             echo "
  156.             ";
  157.             // line 56
  158.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "image", [], "any"falsefalsefalse56)) > 0)) {
  159.                 // line 57
  160.                 echo "            ";
  161.                 $context["image"] = (($__internal_compile_1 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["project"], "image", [], "any"falsefalsefalse57), "thumbnails", [], "any"falsefalsefalse57)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["720x840"] ?? null) : null);
  162.                 // line 58
  163.                 echo "            <img src=\"";
  164.                 echo twig_escape_filter($this->env, ($context["image"] ?? null), "html"nulltrue);
  165.                 echo "\"
  166.               width=\"100\"
  167.               height=\"450px\"
  168.               alt=\"";
  169.                 // line 61
  170.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "title", [], "any"falsefalsefalse61), "html"nulltrue);
  171.                 echo "\"
  172.               loading=\"lazy\">
  173.             ";
  174.             }
  175.             // line 64
  176.             echo "          </div>
  177.         </div>
  178.         <div class=\"project-item__content relative flex flex-col pt-4 md:pt-10 bg-blue text-white group\">
  179.           <a class=\"absolute inset-0 text-[0px] z-10\"
  180.             href=\"";
  181.             // line 69
  182.             echo twig_escape_filter($this->env$this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env$this->source$context["project"], "url", [], "any"falsefalsefalse69)), "html"nulltrue);
  183.             echo "\">";
  184.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "title", [], "any"falsefalsefalse69), "html"nulltrue);
  185.             echo "</a>
  186.           ";
  187.             // line 71
  188.             if (twig_get_attribute($this->env$this->source$context["project"], "location", [], "any"falsefalsefalse71)) {
  189.                 // line 72
  190.                 echo "          <div class=\"project-item__eyebrow text-sm w-10/12\"
  191.             split-directon=\"bottom\"
  192.             split-trigger=\"none\">
  193.             <span>";
  194.                 // line 75
  195.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "location", [], "any"falsefalsefalse75), "html"nulltrue);
  196.                 echo "</span>
  197.             ";
  198.                 // line 76
  199.                 if (twig_get_attribute($this->env$this->source$context["project"], "area", [], "any"falsefalsefalse76)) {
  200.                     // line 77
  201.                     echo "            <span class=\"inline-block px-2 opacity-50\">•</span>
  202.             <span>";
  203.                     // line 78
  204.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "area", [], "any"falsefalsefalse78), "html"nulltrue);
  205.                     echo "m<sup>2</sup>
  206.             </span>
  207.             ";
  208.                 }
  209.                 // line 81
  210.                 echo "            ";
  211.                 if (twig_get_attribute($this->env$this->source$context["project"], "rooms", [], "any"falsefalsefalse81)) {
  212.                     // line 82
  213.                     echo "            <span class=\"inline-block px-2 opacity-50\">•</span>
  214.             <span>";
  215.                     // line 83
  216.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "rooms", [], "any"falsefalsefalse83), "html"nulltrue);
  217.                     echo "
  218.             </span>
  219.             ";
  220.                 }
  221.                 // line 86
  222.                 echo "          </div>
  223.           ";
  224.             }
  225.             // line 88
  226.             echo "
  227.           <h2 class=\"project-item__title h3 w-10/12 mt-3 group-hover:underline duration-300\"
  228.             split-diretion=\"bottom\"
  229.             split-trigger=\"none\">";
  230.             // line 91
  231.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["project"], "title", [], "any"falsefalsefalse91), "html"nulltrue);
  232.             echo "</h2>
  233.           ";
  234.             // line 93
  235.             echo twig_call_macro($macros["macrosButton"], "macro_arrowDiagonal", [["class" => "project-item__arrow !absolute bottom-0 right-0""withoutAnimate" => true]], 93$context$this->getSourceContext());
  236.             // line 97
  237.             echo "
  238.         </div>
  239.       </div>
  240.       ";
  241.         }
  242.         $_parent $context['_parent'];
  243.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['project'], $context['_parent'], $context['loop']);
  244.         $context array_intersect_key($context$_parent) + $_parent;
  245.         // line 101
  246.         echo "    </div>
  247.     
  248.     ";
  249.         // line 105
  250.         $this->loadTemplate("./partials/layout/pagination.html.twig""includes/blocks/projectList.html.twig"105)->display(twig_array_merge($context, ["class" => "white mt-14 md:mt-24"]));
  251.         // line 108
  252.         echo "
  253.   </div>
  254. </section>";
  255.         
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  257.         
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  259.     }
  260.     public function getTemplateName()
  261.     {
  262.         return "includes/blocks/projectList.html.twig";
  263.     }
  264.     public function isTraitable()
  265.     {
  266.         return false;
  267.     }
  268.     public function getDebugInfo()
  269.     {
  270.         return array (  271 => 108,  269 => 105,  263 => 101,  254 => 97,  252 => 93,  247 => 91,  242 => 88,  238 => 86,  232 => 83,  229 => 82,  226 => 81,  220 => 78,  217 => 77,  215 => 76,  211 => 75,  206 => 72,  204 => 71,  197 => 69,  190 => 64,  184 => 61,  177 => 58,  174 => 57,  172 => 56,  169 => 55,  163 => 52,  156 => 49,  153 => 48,  150 => 47,  145 => 43,  139 => 40,  136 => 39,  134 => 38,  126 => 33,  123 => 32,  119 => 31,  113 => 27,  95 => 23,  88 => 19,  84 => 18,  80 => 16,  63 => 15,  54 => 8,  52 => 7,  50 => 6,  45 => 3,  43 => 1,);
  271.     }
  272.     public function getSourceContext()
  273.     {
  274.         return new Source("{% set types = ['All projects', 'Ongoing', 'Coming', 'Completed']
  275. %}
  276. {% import \"./macros_typography.html.twig\" as macrosTypography %}
  277. {% import \"./macros_button.html.twig\" as macrosButton %}
  278. <section class=\"projects-section py-12\"
  279.   section-shade=\"dark\">
  280.   <div class=\"big-container\">
  281.     <nav>
  282.       <ul class=\"projects-type-wrapp flex flex-wrap gap-x-4 gap-y-5\">
  283.         {% for type in types %}
  284.         <li fade
  285.           fade-trigger=\"none\">
  286.           <button class=\"project-type-btn {{loop.first ? 'active'}}\"
  287.             type=\"{{loop.first ? '' : type|lower|replace({' ': '_'}) }}\">
  288.             <svg>
  289.               <use xlink:href=\"#icon-check\"></use>
  290.             </svg>
  291.             {{type}}
  292.           </button>
  293.         </li>
  294.         {% endfor %}
  295.       </ul>
  296.     </nav>
  297.     <div class=\"grid md:grid-cols-2 2xl:grid-cols-3 gap-x-8 gap-y-10 md:gap-y-28 mt-12\">
  298.       {% for project in content.projects %}
  299.       <div class=\"project-item grid grid-rows-[auto_1fr]\"
  300.         type=\"{{ project.projectType|lower|replace({' ': '_'}) }}\"
  301.         fade
  302.         fade-trigger=\"none\">
  303.         <div class=\"relative overflow-hidden\">
  304.           {% if project.projectType %}
  305.           <div class=\"absolute top-4 left-4 bg-white rounded-full py-2 px-6 text-blue text-sm z-10\">
  306.             {{project.projectType}}
  307.           </div>
  308.           {% endif %}
  309.           <div
  310.             class=\"project-item__img h-[50vh] min-h-[310px] max-h-[310px] lg:max-h-[450px] scale-110 img-clip select-none\">
  311.             {# image size 720x840 #}
  312.             {% if project.image|length > 0 %}
  313.             {% set image = project.image.thumbnails['720x840'] %}
  314.             <img src=\"{{ image }}\"
  315.               width=\"100\"
  316.               height=\"450px\"
  317.               alt=\"{{project.title}}\"
  318.               loading=\"lazy\">
  319.             {% endif %}
  320.             {% if project.image|length > 0 %}
  321.             {% set image = project.image.thumbnails['720x840'] %}
  322.             <img src=\"{{ image }}\"
  323.               width=\"100\"
  324.               height=\"450px\"
  325.               alt=\"{{project.title}}\"
  326.               loading=\"lazy\">
  327.             {% endif %}
  328.           </div>
  329.         </div>
  330.         <div class=\"project-item__content relative flex flex-col pt-4 md:pt-10 bg-blue text-white group\">
  331.           <a class=\"absolute inset-0 text-[0px] z-10\"
  332.             href=\"{{ sulu_content_path(project.url) }}\">{{project.title}}</a>
  333.           {% if project.location %}
  334.           <div class=\"project-item__eyebrow text-sm w-10/12\"
  335.             split-directon=\"bottom\"
  336.             split-trigger=\"none\">
  337.             <span>{{project.location}}</span>
  338.             {% if project.area %}
  339.             <span class=\"inline-block px-2 opacity-50\">•</span>
  340.             <span>{{project.area}}m<sup>2</sup>
  341.             </span>
  342.             {% endif %}
  343.             {% if project.rooms %}
  344.             <span class=\"inline-block px-2 opacity-50\">•</span>
  345.             <span>{{project.rooms}}
  346.             </span>
  347.             {% endif %}
  348.           </div>
  349.           {% endif %}
  350.           <h2 class=\"project-item__title h3 w-10/12 mt-3 group-hover:underline duration-300\"
  351.             split-diretion=\"bottom\"
  352.             split-trigger=\"none\">{{project.title}}</h2>
  353.           {{macrosButton.arrowDiagonal({
  354.           'class': 'project-item__arrow !absolute bottom-0 right-0',
  355.           'withoutAnimate': true
  356.           })
  357.           }}
  358.         </div>
  359.       </div>
  360.       {% endfor %}
  361.     </div>
  362.     
  363.     {% include \"./partials/layout/pagination.html.twig\" with {
  364.     'class' : 'white mt-14 md:mt-24'
  365.     } %}
  366.   </div>
  367. </section>""includes/blocks/projectList.html.twig""/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/projectList.html.twig");
  368.     }
  369. }