var/cache/dev/twig/c7/c78ab092b41cc6d75cc8e698b08e8f6b.php line 50

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. /* @App/ObjectViews/partner-details.html.twig */
  14. class __TwigTemplate_e28b6e74cbedc419aaa2a1d15125e348 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@FoxHabbitBasis/Layout/layout.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""@App/ObjectViews/partner-details.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""@App/ObjectViews/partner-details.html.twig"));
  40.         $this->parent $this->loadTemplate("@FoxHabbitBasis/Layout/layout.html.twig""@App/ObjectViews/partner-details.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 2
  48.     public function block_content($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""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'4$this->source); })()), "getTitle", [], "method"falsefalsetrue4)) {
  57.             // line 5
  58.             echo "\t";
  59.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [((twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'5$this->source); })()), "getCompanyName", [], "method"falsefalsetrue5) . " | ") . twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'5$this->source); })()), "getTitle", [], "method"falsefalsetrue5))], "method"falsefalsetrue5);
  60.         } else {
  61.             // line 7
  62.             echo "\t";
  63.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'7$this->source); })()), "getCompanyName", [], "method"falsefalsetrue7)], "method"falsefalsetrue7);
  64.         }
  65.         // line 9
  66.         $context["partnerDetails1Snippet"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'9$this->source); })()), "getProperty", ["partner-details-1"], "method"falsefalsetrue9);
  67.         // line 10
  68.         if (((isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet"$context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.'10$this->source); })()) &&  !twig_get_attribute($this->env$this->source, (isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet"$context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.'10$this->source); })()), "isPublished", [], "method"falsefalsetrue10))) {
  69.             // line 11
  70.             echo "    ";
  71.             $context["partnerDetails1Snippet"] = null;
  72.         }
  73.         // line 13
  74.         echo "<header class=\"header-partner header-box-left  bg-white\">
  75.     <div class=\"container-fluid\">
  76.         <div class=\"row\">
  77.             <div class=\"col-10 col-sm-9 col-md-8 col-lg-6\">
  78.                 <div class=\"parallax-box-wrapper\">
  79.                     <div class=\"parallax-box parallax-box-left\">
  80. \t\t\t\t        <div class=\"parallax-box-background\">
  81.                             <div class=\"embed-responsive embed-responsive-1by1 bg-light\"></div>
  82.                         </div>
  83.                         <div class=\"parallax-box-item\">
  84.                             ";
  85.         // line 23
  86.         if (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'23$this->source); })()), "getImage", [], "method"falsefalsetrue23)) {
  87.             // line 24
  88.             echo "                                ";
  89.             echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'24$this->source); })()), "getImage", [], "method"falsefalsetrue24), "getThumbnail", ["partner-details-logo"], "method"falsefalsetrue24), "getHtml", [["imgAttributes" => ["class" => "img-fluid"]]], "method"falsefalsetrue24), 24$this->source);
  90.             echo "
  91.                             ";
  92.         }
  93.         // line 26
  94.         echo "                        </div>
  95. \t\t\t        </div>
  96.                 </div>
  97.             </div>
  98.             <div class=\"col-10 col-lg-5 offset-2 offset-lg-0 py-5 d-flex flex-column flex-nowrap justify-content-center\">
  99.                 <h1 class=\"h2\">
  100.                     ";
  101.         // line 32
  102.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'32$this->source); })()), "getCompanyName", [], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  103.         echo "
  104.                     ";
  105.         // line 36
  106.         echo "                </h1>
  107.                 <p>
  108.                     ";
  109.         // line 38
  110.         $context["partnerTypes"] = twig_split_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'38$this->source); })()), "getPartnerTypeList", [], "method"falsefalsetrue38), 38$this->source), ",");
  111.         // line 39
  112.         echo "
  113.                     ";
  114.         // line 40
  115.         $context['_parent'] = $context;
  116.         $context['_seq'] = twig_ensure_traversable((isset($context["validPartnerTypes"]) || array_key_exists("validPartnerTypes"$context) ? $context["validPartnerTypes"] : (function () { throw new RuntimeError('Variable "validPartnerTypes" does not exist.'40$this->source); })()));
  117.         foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
  118.             // line 41
  119.             echo "                        ";
  120.             if (twig_in_filter($context["type"], (isset($context["partnerTypes"]) || array_key_exists("partnerTypes"$context) ? $context["partnerTypes"] : (function () { throw new RuntimeError('Variable "partnerTypes" does not exist.'41$this->source); })()))) {
  121.                 // line 42
  122.                 echo "                            <span class=\"h5 d-block\">";
  123.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("dealer_search.partner_box.dealer_type." twig_lower_filter($this->env$this->sandbox->ensureToStringAllowed($context["type"], 42$this->source)))), "html"nulltrue);
  124.                 echo "</span>
  125.                         ";
  126.             }
  127.             // line 44
  128.             echo "                    ";
  129.         }
  130.         $_parent $context['_parent'];
  131.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
  132.         $context array_intersect_key($context$_parent) + $_parent;
  133.         // line 45
  134.         echo "                </p>
  135.                 <p>
  136.                     ";
  137.         // line 47
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'47$this->source); })()), "getAddress", [], "method"falsefalsetrue47));
  140.         foreach ($context['_seq'] as $context["_key"] => $context["line"]) {
  141.             // line 48
  142.             echo "                        <span class=\"d-block\">";
  143.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["line"], 0, [], "array"falsefalsetrue48), 48$this->source), "html"nulltrue);
  144.             echo "</span>
  145.                     ";
  146.         }
  147.         $_parent $context['_parent'];
  148.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['line'], $context['_parent'], $context['loop']);
  149.         $context array_intersect_key($context$_parent) + $_parent;
  150.         // line 50
  151.         echo "                    ";
  152.         if (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'50$this->source); })()), "getStreet", [], "method"falsefalsetrue50)) {
  153.             // line 51
  154.             echo "                        <span class=\"d-block\">";
  155.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'51$this->source); })()), "getStreet", [], "method"falsefalsetrue51), 51$this->source), "html"nulltrue);
  156.             echo "</span>
  157.                     ";
  158.         }
  159.         // line 53
  160.         echo "                    ";
  161.         if ((twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'53$this->source); })()), "getZip", [], "method"falsefalsetrue53) || twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'53$this->source); })()), "getCity", [], "method"falsefalsetrue53))) {
  162.             // line 54
  163.             echo "                        <span class=\"d-block\">";
  164.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'54$this->source); })()), "getZip", [], "method"falsefalsetrue54), 54$this->source), "html"nulltrue);
  165.             echo " ";
  166.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'54$this->source); })()), "getCity", [], "method"falsefalsetrue54), 54$this->source), "html"nulltrue);
  167.             echo "</span>
  168.                     ";
  169.         }
  170.         // line 56
  171.         echo "                    ";
  172.         if (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'56$this->source); })()), "getCountry", [], "method"falsefalsetrue56)) {
  173.             // line 57
  174.             echo "                        <span>";
  175.             echo twig_escape_filter($this->env$this->extensions['FoxHabbit\BasisBundle\Twig\Extension\ToolExtension']->localeGetCountryName($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'57$this->source); })()), "getCountry", [], "method"falsefalsetrue57), 57$this->source)), "html"nulltrue);
  176.             echo "</span>
  177.                     ";
  178.         }
  179.         // line 59
  180.         echo "                </p>
  181.                 ";
  182.         // line 60
  183.         if ((twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'60$this->source); })()), "getPhone", [], "method"falsefalsetrue60) || twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'60$this->source); })()), "getFax", [], "method"falsefalsetrue60))) {
  184.             // line 61
  185.             echo "                    <p>
  186.                         ";
  187.             // line 62
  188.             if (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'62$this->source); })()), "getPhone", [], "method"falsefalsetrue62)) {
  189.                 // line 63
  190.                 echo "                            <a class=\"simple-link-phone d-block\" href=\"tel:";
  191.                 echo twig_escape_filter($this->envtwig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'63$this->source); })()), "getPhone", [], "method"falsefalsetrue63), 63$this->source), [" " => ""]), "html"nulltrue);
  192.                 echo "\">";
  193.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'63$this->source); })()), "getPhone", [], "method"falsefalsetrue63), 63$this->source), "html"nulltrue);
  194.                 echo "</a>
  195.                         ";
  196.             }
  197.             // line 65
  198.             echo "                        ";
  199.             // line 68
  200.             echo "                    </p>
  201.                 ";
  202.         }
  203.         // line 70
  204.         echo "                ";
  205.         // line 73
  206.         echo "                ";
  207.         $context["showExternalLink"] = (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'73$this->source); })()), "getWebsite", [], "method"falsefalsetrue73) && twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'73$this->source); })()), "getShowWebsite", [], "method"falsefalsetrue73));
  208.         // line 74
  209.         echo "                ";
  210.         $context["showContactFormLink"] = ((isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet"$context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.'74$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'74$this->source); })()), "getEvaId", [], "method"falsefalsetrue74));
  211.         // line 75
  212.         echo "                ";
  213.         if (((isset($context["showExternalLink"]) || array_key_exists("showExternalLink"$context) ? $context["showExternalLink"] : (function () { throw new RuntimeError('Variable "showExternalLink" does not exist.'75$this->source); })()) || (isset($context["showContactFormLink"]) || array_key_exists("showContactFormLink"$context) ? $context["showContactFormLink"] : (function () { throw new RuntimeError('Variable "showContactFormLink" does not exist.'75$this->source); })()))) {
  214.             // line 76
  215.             echo "                    <ul class=\"list-unstyled linklist\" >
  216.                         ";
  217.             // line 77
  218.             if ((isset($context["showExternalLink"]) || array_key_exists("showExternalLink"$context) ? $context["showExternalLink"] : (function () { throw new RuntimeError('Variable "showExternalLink" does not exist.'77$this->source); })())) {
  219.                 // line 78
  220.                 echo "                            <li>
  221.                                 <a class=\"d-block lorch-icon lorch-icon-external-link \" href=\"";
  222.                 // line 79
  223.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'79$this->source); })()), "getWebsite", [], "method"falsefalsetrue79), 79$this->source), "html"nulltrue);
  224.                 echo "\" target=\"_blank\">";
  225.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dealer_search.partner_box.website_link"), "html"nulltrue);
  226.                 echo "</a>
  227.                             </li>
  228.                         ";
  229.             }
  230.             // line 82
  231.             echo "                        ";
  232.             if ((isset($context["showContactFormLink"]) || array_key_exists("showContactFormLink"$context) ? $context["showContactFormLink"] : (function () { throw new RuntimeError('Variable "showContactFormLink" does not exist.'82$this->source); })())) {
  233.                 // line 83
  234.                 echo "                            <li>      
  235.                                 <a href=\"#contact_form\" class=\"lorch-icon lorch-icon-e-mail\">";
  236.                 // line 84
  237.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dealer_search.partner_box.contact_form_link"), "html"nulltrue);
  238.                 echo "</a>
  239.                             </li>
  240.                         ";
  241.             }
  242.             // line 87
  243.             echo "                    </ul>
  244.                 ";
  245.         }
  246.         // line 89
  247.         echo "            </div>
  248.         </div>
  249.     </div>
  250. </header>
  251. ";
  252.         // line 93
  253.         if ((isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet"$context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.'93$this->source); })())) {
  254.             // line 94
  255.             echo "    ";
  256.             if (twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'94$this->source); })()), "getEvaId", [], "method"falsefalsetrue94)) {
  257.                 // line 95
  258.                 echo "        <span id=\"contact_form\"></span>
  259.         ";
  260.                 // line 96
  261.                 echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet"$context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.'96$this->source); })()), 96$this->source));
  262.                 echo "
  263.     ";
  264.             } else {
  265.                 // line 98
  266.                 echo "        <!-- evalanche ID not set - no contact form available -->
  267.     ";
  268.             }
  269.         }
  270.         // line 101
  271.         if (((twig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'101$this->source); })()), "getLocation", [], "method"falsefalsetrue101) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'101$this->source); })()), "getLocation", [], "method"falsefalsetrue101), "getLatitude", [], "method"falsefalsetrue101)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'101$this->source); })()), "getLocation", [], "method"falsefalsetrue101), "getLongitude", [], "method"falsefalsetrue101))) {
  272.             // line 102
  273.             echo "    <section class=\"section p-0\">
  274.         ";
  275.             // line 103
  276.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""map", ["type" => "basisbundle-part-googlemap""params" => ["basisbundle-part-googlemap" => ["locationObjects" => [            // line 104
  277. (isset($context["partnerObject"]) || array_key_exists("partnerObject"$context) ? $context["partnerObject"] : (function () { throw new RuntimeError('Variable "partnerObject" does not exist.'104$this->source); })())], "variant" => "partner_details_location"]]]);
  278.             // line 106
  279.             echo "
  280.     </section>
  281. ";
  282.         }
  283.         // line 109
  284.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'109$this->source); })()), "getProperty", ["partner-details-2"], "method"falsefalsetrue109)) {
  285.             // line 110
  286.             echo "    ";
  287.             echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'110$this->source); })()), "getProperty", ["partner-details-2"], "method"falsefalsetrue110), 110$this->source));
  288.             echo "
  289. ";
  290.         }
  291.         
  292.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  293.         
  294.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  295.     }
  296.     public function getTemplateName()
  297.     {
  298.         return "@App/ObjectViews/partner-details.html.twig";
  299.     }
  300.     public function isTraitable()
  301.     {
  302.         return false;
  303.     }
  304.     public function getDebugInfo()
  305.     {
  306.         return array (  300 => 110,  298 => 109,  293 => 106,  291 => 104,  290 => 103,  287 => 102,  285 => 101,  280 => 98,  275 => 96,  272 => 95,  269 => 94,  267 => 93,  261 => 89,  257 => 87,  251 => 84,  248 => 83,  245 => 82,  237 => 79,  234 => 78,  232 => 77,  229 => 76,  226 => 75,  223 => 74,  220 => 73,  218 => 70,  214 => 68,  212 => 65,  204 => 63,  202 => 62,  199 => 61,  197 => 60,  194 => 59,  188 => 57,  185 => 56,  177 => 54,  174 => 53,  168 => 51,  165 => 50,  156 => 48,  152 => 47,  148 => 45,  142 => 44,  136 => 42,  133 => 41,  129 => 40,  126 => 39,  124 => 38,  120 => 36,  116 => 32,  108 => 26,  102 => 24,  100 => 23,  88 => 13,  84 => 11,  82 => 10,  80 => 9,  76 => 7,  72 => 5,  70 => 4,  60 => 2,  37 => 1,);
  307.     }
  308.     public function getSourceContext()
  309.     {
  310.         return new Source("{% extends '@FoxHabbitBasis/Layout/layout.html.twig' %}
  311. {% block content %}
  312. {# Titel aus Objekt #}
  313. {% if document.getTitle() %}
  314. \t{% do pimcore_head_title().set( partnerObject.getCompanyName() ~ ' | ' ~ document.getTitle()) %}
  315. {% else %}
  316. \t{% do pimcore_head_title().set( partnerObject.getCompanyName()) %}
  317. {% endif %}
  318. {% set partnerDetails1Snippet = document.getProperty('partner-details-1') %}
  319. {% if partnerDetails1Snippet and not partnerDetails1Snippet.isPublished() %}
  320.     {% set partnerDetails1Snippet = null %}
  321. {% endif %}
  322. <header class=\"header-partner header-box-left  bg-white\">
  323.     <div class=\"container-fluid\">
  324.         <div class=\"row\">
  325.             <div class=\"col-10 col-sm-9 col-md-8 col-lg-6\">
  326.                 <div class=\"parallax-box-wrapper\">
  327.                     <div class=\"parallax-box parallax-box-left\">
  328. \t\t\t\t        <div class=\"parallax-box-background\">
  329.                             <div class=\"embed-responsive embed-responsive-1by1 bg-light\"></div>
  330.                         </div>
  331.                         <div class=\"parallax-box-item\">
  332.                             {% if partnerObject.getImage() %}
  333.                                 {{ partnerObject.getImage().getThumbnail('partner-details-logo').getHtml({imgAttributes:{class:'img-fluid'}})|raw }}
  334.                             {% endif %}
  335.                         </div>
  336. \t\t\t        </div>
  337.                 </div>
  338.             </div>
  339.             <div class=\"col-10 col-lg-5 offset-2 offset-lg-0 py-5 d-flex flex-column flex-nowrap justify-content-center\">
  340.                 <h1 class=\"h2\">
  341.                     {{ partnerObject.getCompanyName() }}
  342.                     {#% if partnerObject.getCompanyName2() %}
  343.                         <span class=\"d-block\">{{ partnerObject.getCompanyName2() }}</span>
  344.                     {% endif %#}
  345.                 </h1>
  346.                 <p>
  347.                     {% set partnerTypes = partnerObject.getPartnerTypeList()|split(',') %}
  348.                     {% for type in validPartnerTypes %}
  349.                         {% if type in partnerTypes %}
  350.                             <span class=\"h5 d-block\">{{ ('dealer_search.partner_box.dealer_type.' ~ type|lower) | trans }}</span>
  351.                         {% endif %}
  352.                     {% endfor %}
  353.                 </p>
  354.                 <p>
  355.                     {% for line in partnerObject.getAddress() %}
  356.                         <span class=\"d-block\">{{ line[0] }}</span>
  357.                     {% endfor %}
  358.                     {% if partnerObject.getStreet() %}
  359.                         <span class=\"d-block\">{{ partnerObject.getStreet() }}</span>
  360.                     {% endif %}
  361.                     {% if partnerObject.getZip() or partnerObject.getCity() %}
  362.                         <span class=\"d-block\">{{ partnerObject.getZip() }} {{ partnerObject.getCity() }}</span>
  363.                     {% endif %}
  364.                     {% if partnerObject.getCountry() %}
  365.                         <span>{{ locale_get_country_name( partnerObject.getCountry()) }}</span>
  366.                     {% endif %}
  367.                 </p>
  368.                 {% if partnerObject.getPhone() or partnerObject.getFax() %}
  369.                     <p>
  370.                         {% if partnerObject.getPhone() %}
  371.                             <a class=\"simple-link-phone d-block\" href=\"tel:{{ partnerObject.getPhone()|replace({' ':''}) }}\">{{ partnerObject.getPhone() }}</a>
  372.                         {% endif %}
  373.                         {#% if partnerObject.getFax() %}
  374.                             <a class=\"simple-link-fax d-block\" href=\"fax:{{ partnerObject.getFax()|replace({' ':''}) }}\">{{ partnerObject.getFax() }}</a>
  375.                         {% endif %#}
  376.                     </p>
  377.                 {% endif %}
  378.                 {#% if partnerObject.getEmail() %}
  379.                     <a class=\"simple-link-mail d-block\" href=\"mailto:{{ partnerObject.getEmail() }}\" target=\"_blank\">{{ partnerObject.getEmail() }}</a>
  380.                 {% endif %#}
  381.                 {% set showExternalLink = partnerObject.getWebsite() and partnerObject.getShowWebsite() %}
  382.                 {% set showContactFormLink = partnerDetails1Snippet and partnerObject.getEvaId() %}
  383.                 {% if showExternalLink or showContactFormLink %}
  384.                     <ul class=\"list-unstyled linklist\" >
  385.                         {% if showExternalLink %}
  386.                             <li>
  387.                                 <a class=\"d-block lorch-icon lorch-icon-external-link \" href=\"{{ partnerObject.getWebsite() }}\" target=\"_blank\">{{ 'dealer_search.partner_box.website_link' | trans }}</a>
  388.                             </li>
  389.                         {% endif %}
  390.                         {% if showContactFormLink %}
  391.                             <li>      
  392.                                 <a href=\"#contact_form\" class=\"lorch-icon lorch-icon-e-mail\">{{ 'dealer_search.partner_box.contact_form_link' | trans }}</a>
  393.                             </li>
  394.                         {% endif %}
  395.                     </ul>
  396.                 {% endif %}
  397.             </div>
  398.         </div>
  399.     </div>
  400. </header>
  401. {% if partnerDetails1Snippet %}
  402.     {% if partnerObject.getEvaId() %}
  403.         <span id=\"contact_form\"></span>
  404.         {{ pimcore_inc(partnerDetails1Snippet) }}
  405.     {% else %}
  406.         <!-- evalanche ID not set - no contact form available -->
  407.     {% endif %}
  408. {% endif %}
  409. {% if partnerObject.getLocation() and partnerObject.getLocation().getLatitude() and partnerObject.getLocation().getLongitude() %}
  410.     <section class=\"section p-0\">
  411.         {{ pimcore_area('map', {type:'basisbundle-part-googlemap', params: {'basisbundle-part-googlemap': {
  412.             locationObjects: [partnerObject],
  413.             variant: 'partner_details_location'
  414.         }}}) }}
  415.     </section>
  416. {% endif %}
  417. {% if document.getProperty('partner-details-2') %}
  418.     {{ pimcore_inc(document.getProperty('partner-details-2')) }}
  419. {% endif %}
  420. {% endblock %}""@App/ObjectViews/partner-details.html.twig""/srv/httpd/vhosts/lorch-test/releases/51/src/AppBundle/Resources/views/ObjectViews/partner-details.html.twig");
  421.     }
  422.     
  423.     public function checkSecurity()
  424.     {
  425.         static $tags = array("if" => 4"do" => 5"set" => 9"for" => 40);
  426.         static $filters = array("raw" => 24"escape" => 32"split" => 38"trans" => 42"lower" => 42"replace" => 63);
  427.         static $functions = array("pimcore_head_title" => 5"locale_get_country_name" => 57"pimcore_inc" => 96"pimcore_area" => 103);
  428.         try {
  429.             $this->sandbox->checkSecurity(
  430.                 ['if''do''set''for'],
  431.                 ['raw''escape''split''trans''lower''replace'],
  432.                 ['pimcore_head_title''locale_get_country_name''pimcore_inc''pimcore_area']
  433.             );
  434.         } catch (SecurityError $e) {
  435.             $e->setSourceContext($this->source);
  436.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  437.                 $e->setTemplateLine($tags[$e->getTagName()]);
  438.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  439.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  440.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  441.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  442.             }
  443.             throw $e;
  444.         }
  445.     }
  446. }