var/cache/dev/twig/14/14a01d99777674e518d905e4f4d0595b.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. /* areas/services/view.html.twig */
  14. class __TwigTemplate_d4fd86acff946e4bac472556de3277d5 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", "areas/services/view.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", "areas/services/view.html.twig"));
  33.         // line 1
  34.         echo "<div id=\"leistungen\" class=\"anchor\"></div>
  35. <section class=\"teaser-container\">
  36.     <div class=\"headline flex center\">
  37.         ";
  38.         // line 4
  39.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
  40.             // line 5
  41.             echo "            <h2>";
  42.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => "Unsere Leistungen"]);
  43.             echo "</h2>
  44.         ";
  45.         } elseif (( !        // line 6
  46. (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })()) &&  !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline"), "isEmpty", [], "method", false, false, false, 6))) {
  47.             // line 7
  48.             echo "            <h2>";
  49.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline"), "getData", [], "method", false, false, false, 7), "html", null, true);
  50.             echo "</h2>
  51.         ";
  52.         }
  53.         // line 9
  54.         echo "    </div>
  55.     ";
  56.         // line 10
  57.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 10, $this->source); })())) {
  58.             // line 11
  59.             echo "        ";
  60.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "Teaser", ["types" => [0 => "object"], "title" => "Teaser Objekte ablegen", "subtypes" => ["object" => [0 => "object"]], "classes" => [0 => "Teaser"]]);
  61.             // line 18
  62.             echo "
  63.     ";
  64.         } elseif (( !        // line 19
  65. (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 19, $this->source); })()) &&  !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "Teaser"), "isEmpty", [], "method", false, false, false, 19))) {
  66.             // line 20
  67.             echo "        <div class=\"teaser-row flex\">
  68.             ";
  69.             // line 21
  70.             $context['_parent'] = $context;
  71.             $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "Teaser"));
  72.             foreach ($context['_seq'] as $context["_key"] => $context["teaser"]) {
  73.                 // line 22
  74.                 echo "                <div class=\"teaser\">
  75.                     <div class=\"anchor-teaser\"></div>
  76.                     ";
  77.                 // line 24
  78.                 if ((twig_get_attribute($this->env, $this->source, $context["teaser"], "colorLeft", [], "any", false, false, false, 24) && twig_get_attribute($this->env, $this->source, $context["teaser"], "colorRight", [], "any", false, false, false, 24))) {
  79.                     // line 25
  80.                     echo "                        <div class=\"gradient\" style=\"background: linear-gradient(45deg, rgba(";
  81.                     echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "colorLeft", [], "any", false, false, false, 25), "html", null, true);
  82.                     echo ",90%) 0%, rgba(";
  83.                     echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "colorRight", [], "any", false, false, false, 25), "html", null, true);
  84.                     echo ",90%) 100%);\"></div>
  85.                     ";
  86.                 }
  87.                 // line 27
  88.                 echo "                    <h3>";
  89.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "title", [], "any", false, false, false, 27), "html", null, true);
  90.                 echo "</h3>
  91.                     ";
  92.                 // line 28
  93.                 if (twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 28)) {
  94.                     // line 29
  95.                     echo "                        <p class=\"inner-text\">";
  96.                     echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 29));
  97.                     echo "</p>
  98.                     ";
  99.                 }
  100.                 // line 31
  101.                 echo "                    ";
  102.                 if (twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 31)) {
  103.                     // line 32
  104.                     echo "                        <a href=\"";
  105.                     echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 32), "html", null, true);
  106.                     echo "\" class=\"btn btn-primary teaser-button\">";
  107.                     if (twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 32)) {
  108.                         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 32), "html", null, true);
  109.                     } else {
  110.                         echo "Referenzen";
  111.                     }
  112.                     echo "</a>
  113.                     ";
  114.                 }
  115.                 // line 34
  116.                 echo "                    ";
  117.                 echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["teaser"], "getImage", [], "method", false, false, false, 34), "thumbnail", [0 => "Teaser"], "method", false, false, false, 34), "html", [0 => ["alt" => twig_get_attribute($this->env, $this->source, $context["teaser"], "title", [], "any", false, false, false, 34), "title" => twig_get_attribute($this->env, $this->source, $context["teaser"], "title", [], "any", false, false, false, 34)]], "method", false, false, false, 34);
  118.                 echo "
  119.                     ";
  120.                 // line 35
  121.                 if (twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 35)) {
  122.                     // line 36
  123.                     echo "                        <div class=\"teaser-text\" ";
  124.                     echo ">
  125.                             <p class=\"p-text\">";
  126.                     // line 37
  127.                     echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 37));
  128.                     echo "</p>
  129.                             ";
  130.                     // line 38
  131.                     if (twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 38)) {
  132.                         // line 39
  133.                         echo "                                <a href=\"";
  134.                         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 39), "html", null, true);
  135.                         echo "\" class=\"btn btn-primary teaser-button\">";
  136.                         if (twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 39)) {
  137.                             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 39), "html", null, true);
  138.                         } else {
  139.                             echo "Referenzen";
  140.                         }
  141.                         echo "</a>
  142.                             ";
  143.                     }
  144.                     // line 41
  145.                     echo "                        </div>
  146.                     ";
  147.                 }
  148.                 // line 43
  149.                 echo "                </div>
  150.             ";
  151.             }
  152.             $_parent = $context['_parent'];
  153.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teaser'], $context['_parent'], $context['loop']);
  154.             $context = array_intersect_key($context, $_parent) + $_parent;
  155.             // line 45
  156.             echo "        </div>
  157.     ";
  158.         }
  159.         // line 47
  160.         echo "</section>";
  161.         
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "areas/services/view.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  169 => 47,  165 => 45,  158 => 43,  154 => 41,  142 => 39,  140 => 38,  136 => 37,  132 => 36,  130 => 35,  125 => 34,  113 => 32,  110 => 31,  104 => 29,  102 => 28,  97 => 27,  89 => 25,  87 => 24,  83 => 22,  79 => 21,  76 => 20,  74 => 19,  71 => 18,  68 => 11,  66 => 10,  63 => 9,  57 => 7,  55 => 6,  50 => 5,  48 => 4,  43 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("<div id=\"leistungen\" class=\"anchor\"></div>
  181. <section class=\"teaser-container\">
  182.     <div class=\"headline flex center\">
  183.         {% if editmode %}
  184.             <h2>{{ pimcore_input('headline',{'placeholder':'Unsere Leistungen'}) }}</h2>
  185.         {% elseif not editmode and not pimcore_input('headline').isEmpty() %}
  186.             <h2>{{ pimcore_input('headline').getData() }}</h2>
  187.         {% endif %}
  188.     </div>
  189.     {% if editmode %}
  190.         {{ pimcore_relations(\"Teaser\", {
  191.             \"types\": [\"object\"],
  192.             \"title\": \"Teaser Objekte ablegen\",
  193.             \"subtypes\": {
  194.                 \"object\": [\"object\"]
  195.             },
  196.             \"classes\": [\"Teaser\"]
  197.         }) }}
  198.     {% elseif not editmode and not pimcore_relations(\"Teaser\").isEmpty() %}
  199.         <div class=\"teaser-row flex\">
  200.             {% for teaser in pimcore_relations(\"Teaser\") %}
  201.                 <div class=\"teaser\">
  202.                     <div class=\"anchor-teaser\"></div>
  203.                     {% if teaser.colorLeft and teaser.colorRight %}
  204.                         <div class=\"gradient\" style=\"background: linear-gradient(45deg, rgba({{ teaser.colorLeft }},90%) 0%, rgba({{ teaser.colorRight }},90%) 100%);\"></div>
  205.                     {% endif %}
  206.                     <h3>{{ teaser.title }}</h3>
  207.                     {% if teaser.text %}
  208.                         <p class=\"inner-text\">{{ teaser.text | raw | nl2br }}</p>
  209.                     {% endif %}
  210.                     {% if teaser.snippet %}
  211.                         <a href=\"{{ teaser.snippet }}\" class=\"btn btn-primary teaser-button\">{% if teaser.btnText %}{{ teaser.btnText }}{% else %}Referenzen{% endif %}</a>
  212.                     {% endif %}
  213.                     {{ teaser.getImage().thumbnail('Teaser').html({'alt': teaser.title, 'title': teaser.title}) | raw }}
  214.                     {% if teaser.text %}
  215.                         <div class=\"teaser-text\" {#  style=\"background: linear-gradient(45deg, rgba({{ teaser.colorLeft }},90%) 0%, rgba({{ teaser.colorRight }},90%) 100%);\"#}>
  216.                             <p class=\"p-text\">{{ teaser.text | raw | nl2br }}</p>
  217.                             {% if teaser.snippet %}
  218.                                 <a href=\"{{ teaser.snippet }}\" class=\"btn btn-primary teaser-button\">{% if teaser.btnText %}{{ teaser.btnText }}{% else %}Referenzen{% endif %}</a>
  219.                             {% endif %}
  220.                         </div>
  221.                     {% endif %}
  222.                 </div>
  223.             {% endfor %}
  224.         </div>
  225.     {% endif %}
  226. </section>", "areas/services/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/areas/services/view.html.twig");
  227.     }
  228. }