<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @App/ObjectViews/partner-details.html.twig */
class __TwigTemplate_e28b6e74cbedc419aaa2a1d15125e348 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "@FoxHabbitBasis/Layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/ObjectViews/partner-details.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/ObjectViews/partner-details.html.twig"));
$this->parent = $this->loadTemplate("@FoxHabbitBasis/Layout/layout.html.twig", "@App/ObjectViews/partner-details.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
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", false, false, true, 4)) {
// line 5
echo "\t";
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", false, false, true, 5) . " | ") . 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", false, false, true, 5))], "method", false, false, true, 5);
} else {
// line 7
echo "\t";
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", false, false, true, 7)], "method", false, false, true, 7);
}
// line 9
$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", false, false, true, 9);
// line 10
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", false, false, true, 10))) {
// line 11
echo " ";
$context["partnerDetails1Snippet"] = null;
}
// line 13
echo "<header class=\"header-partner header-box-left bg-white\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-10 col-sm-9 col-md-8 col-lg-6\">
<div class=\"parallax-box-wrapper\">
<div class=\"parallax-box parallax-box-left\">
\t\t\t\t <div class=\"parallax-box-background\">
<div class=\"embed-responsive embed-responsive-1by1 bg-light\"></div>
</div>
<div class=\"parallax-box-item\">
";
// line 23
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", false, false, true, 23)) {
// line 24
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 24, $this->source); })()), "getImage", [], "method", false, false, true, 24), "getThumbnail", ["partner-details-logo"], "method", false, false, true, 24), "getHtml", [["imgAttributes" => ["class" => "img-fluid"]]], "method", false, false, true, 24), 24, $this->source);
echo "
";
}
// line 26
echo " </div>
\t\t\t </div>
</div>
</div>
<div class=\"col-10 col-lg-5 offset-2 offset-lg-0 py-5 d-flex flex-column flex-nowrap justify-content-center\">
<h1 class=\"h2\">
";
// line 32
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", false, false, true, 32), 32, $this->source), "html", null, true);
echo "
";
// line 36
echo " </h1>
<p>
";
// line 38
$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", false, false, true, 38), 38, $this->source), ",");
// line 39
echo "
";
// line 40
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
// line 41
echo " ";
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); })()))) {
// line 42
echo " <span class=\"h5 d-block\">";
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", null, true);
echo "</span>
";
}
// line 44
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " </p>
<p>
";
// line 47
$context['_parent'] = $context;
$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", false, false, true, 47));
foreach ($context['_seq'] as $context["_key"] => $context["line"]) {
// line 48
echo " <span class=\"d-block\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["line"], 0, [], "array", false, false, true, 48), 48, $this->source), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['line'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo " ";
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", false, false, true, 50)) {
// line 51
echo " <span class=\"d-block\">";
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", false, false, true, 51), 51, $this->source), "html", null, true);
echo "</span>
";
}
// line 53
echo " ";
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", false, false, true, 53) || 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", false, false, true, 53))) {
// line 54
echo " <span class=\"d-block\">";
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", false, false, true, 54), 54, $this->source), "html", null, true);
echo " ";
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", false, false, true, 54), 54, $this->source), "html", null, true);
echo "</span>
";
}
// line 56
echo " ";
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", false, false, true, 56)) {
// line 57
echo " <span>";
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", false, false, true, 57), 57, $this->source)), "html", null, true);
echo "</span>
";
}
// line 59
echo " </p>
";
// line 60
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", false, false, true, 60) || 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", false, false, true, 60))) {
// line 61
echo " <p>
";
// line 62
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", false, false, true, 62)) {
// line 63
echo " <a class=\"simple-link-phone d-block\" href=\"tel:";
echo twig_escape_filter($this->env, twig_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", false, false, true, 63), 63, $this->source), [" " => ""]), "html", null, true);
echo "\">";
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", false, false, true, 63), 63, $this->source), "html", null, true);
echo "</a>
";
}
// line 65
echo " ";
// line 68
echo " </p>
";
}
// line 70
echo " ";
// line 73
echo " ";
$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", false, false, true, 73) && 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", false, false, true, 73));
// line 74
echo " ";
$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", false, false, true, 74));
// line 75
echo " ";
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); })()))) {
// line 76
echo " <ul class=\"list-unstyled linklist\" >
";
// line 77
if ((isset($context["showExternalLink"]) || array_key_exists("showExternalLink", $context) ? $context["showExternalLink"] : (function () { throw new RuntimeError('Variable "showExternalLink" does not exist.', 77, $this->source); })())) {
// line 78
echo " <li>
<a class=\"d-block lorch-icon lorch-icon-external-link \" href=\"";
// line 79
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", false, false, true, 79), 79, $this->source), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dealer_search.partner_box.website_link"), "html", null, true);
echo "</a>
</li>
";
}
// line 82
echo " ";
if ((isset($context["showContactFormLink"]) || array_key_exists("showContactFormLink", $context) ? $context["showContactFormLink"] : (function () { throw new RuntimeError('Variable "showContactFormLink" does not exist.', 82, $this->source); })())) {
// line 83
echo " <li>
<a href=\"#contact_form\" class=\"lorch-icon lorch-icon-e-mail\">";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("dealer_search.partner_box.contact_form_link"), "html", null, true);
echo "</a>
</li>
";
}
// line 87
echo " </ul>
";
}
// line 89
echo " </div>
</div>
</div>
</header>
";
// line 93
if ((isset($context["partnerDetails1Snippet"]) || array_key_exists("partnerDetails1Snippet", $context) ? $context["partnerDetails1Snippet"] : (function () { throw new RuntimeError('Variable "partnerDetails1Snippet" does not exist.', 93, $this->source); })())) {
// line 94
echo " ";
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", false, false, true, 94)) {
// line 95
echo " <span id=\"contact_form\"></span>
";
// line 96
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));
echo "
";
} else {
// line 98
echo " <!-- evalanche ID not set - no contact form available -->
";
}
}
// line 101
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", false, false, true, 101) && twig_get_attribute($this->env, $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.', 101, $this->source); })()), "getLocation", [], "method", false, false, true, 101), "getLatitude", [], "method", false, false, true, 101)) && twig_get_attribute($this->env, $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.', 101, $this->source); })()), "getLocation", [], "method", false, false, true, 101), "getLongitude", [], "method", false, false, true, 101))) {
// line 102
echo " <section class=\"section p-0\">
";
// line 103
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "map", ["type" => "basisbundle-part-googlemap", "params" => ["basisbundle-part-googlemap" => ["locationObjects" => [ // line 104
(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"]]]);
// line 106
echo "
</section>
";
}
// line 109
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", false, false, true, 109)) {
// line 110
echo " ";
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", false, false, true, 110), 110, $this->source));
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@App/ObjectViews/partner-details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@FoxHabbitBasis/Layout/layout.html.twig' %}
{% block content %}
{# Titel aus Objekt #}
{% if document.getTitle() %}
\t{% do pimcore_head_title().set( partnerObject.getCompanyName() ~ ' | ' ~ document.getTitle()) %}
{% else %}
\t{% do pimcore_head_title().set( partnerObject.getCompanyName()) %}
{% endif %}
{% set partnerDetails1Snippet = document.getProperty('partner-details-1') %}
{% if partnerDetails1Snippet and not partnerDetails1Snippet.isPublished() %}
{% set partnerDetails1Snippet = null %}
{% endif %}
<header class=\"header-partner header-box-left bg-white\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-10 col-sm-9 col-md-8 col-lg-6\">
<div class=\"parallax-box-wrapper\">
<div class=\"parallax-box parallax-box-left\">
\t\t\t\t <div class=\"parallax-box-background\">
<div class=\"embed-responsive embed-responsive-1by1 bg-light\"></div>
</div>
<div class=\"parallax-box-item\">
{% if partnerObject.getImage() %}
{{ partnerObject.getImage().getThumbnail('partner-details-logo').getHtml({imgAttributes:{class:'img-fluid'}})|raw }}
{% endif %}
</div>
\t\t\t </div>
</div>
</div>
<div class=\"col-10 col-lg-5 offset-2 offset-lg-0 py-5 d-flex flex-column flex-nowrap justify-content-center\">
<h1 class=\"h2\">
{{ partnerObject.getCompanyName() }}
{#% if partnerObject.getCompanyName2() %}
<span class=\"d-block\">{{ partnerObject.getCompanyName2() }}</span>
{% endif %#}
</h1>
<p>
{% set partnerTypes = partnerObject.getPartnerTypeList()|split(',') %}
{% for type in validPartnerTypes %}
{% if type in partnerTypes %}
<span class=\"h5 d-block\">{{ ('dealer_search.partner_box.dealer_type.' ~ type|lower) | trans }}</span>
{% endif %}
{% endfor %}
</p>
<p>
{% for line in partnerObject.getAddress() %}
<span class=\"d-block\">{{ line[0] }}</span>
{% endfor %}
{% if partnerObject.getStreet() %}
<span class=\"d-block\">{{ partnerObject.getStreet() }}</span>
{% endif %}
{% if partnerObject.getZip() or partnerObject.getCity() %}
<span class=\"d-block\">{{ partnerObject.getZip() }} {{ partnerObject.getCity() }}</span>
{% endif %}
{% if partnerObject.getCountry() %}
<span>{{ locale_get_country_name( partnerObject.getCountry()) }}</span>
{% endif %}
</p>
{% if partnerObject.getPhone() or partnerObject.getFax() %}
<p>
{% if partnerObject.getPhone() %}
<a class=\"simple-link-phone d-block\" href=\"tel:{{ partnerObject.getPhone()|replace({' ':''}) }}\">{{ partnerObject.getPhone() }}</a>
{% endif %}
{#% if partnerObject.getFax() %}
<a class=\"simple-link-fax d-block\" href=\"fax:{{ partnerObject.getFax()|replace({' ':''}) }}\">{{ partnerObject.getFax() }}</a>
{% endif %#}
</p>
{% endif %}
{#% if partnerObject.getEmail() %}
<a class=\"simple-link-mail d-block\" href=\"mailto:{{ partnerObject.getEmail() }}\" target=\"_blank\">{{ partnerObject.getEmail() }}</a>
{% endif %#}
{% set showExternalLink = partnerObject.getWebsite() and partnerObject.getShowWebsite() %}
{% set showContactFormLink = partnerDetails1Snippet and partnerObject.getEvaId() %}
{% if showExternalLink or showContactFormLink %}
<ul class=\"list-unstyled linklist\" >
{% if showExternalLink %}
<li>
<a class=\"d-block lorch-icon lorch-icon-external-link \" href=\"{{ partnerObject.getWebsite() }}\" target=\"_blank\">{{ 'dealer_search.partner_box.website_link' | trans }}</a>
</li>
{% endif %}
{% if showContactFormLink %}
<li>
<a href=\"#contact_form\" class=\"lorch-icon lorch-icon-e-mail\">{{ 'dealer_search.partner_box.contact_form_link' | trans }}</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
</div>
</div>
</header>
{% if partnerDetails1Snippet %}
{% if partnerObject.getEvaId() %}
<span id=\"contact_form\"></span>
{{ pimcore_inc(partnerDetails1Snippet) }}
{% else %}
<!-- evalanche ID not set - no contact form available -->
{% endif %}
{% endif %}
{% if partnerObject.getLocation() and partnerObject.getLocation().getLatitude() and partnerObject.getLocation().getLongitude() %}
<section class=\"section p-0\">
{{ pimcore_area('map', {type:'basisbundle-part-googlemap', params: {'basisbundle-part-googlemap': {
locationObjects: [partnerObject],
variant: 'partner_details_location'
}}}) }}
</section>
{% endif %}
{% if document.getProperty('partner-details-2') %}
{{ pimcore_inc(document.getProperty('partner-details-2')) }}
{% endif %}
{% endblock %}", "@App/ObjectViews/partner-details.html.twig", "/srv/httpd/vhosts/lorch-test/releases/51/src/AppBundle/Resources/views/ObjectViews/partner-details.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4, "do" => 5, "set" => 9, "for" => 40);
static $filters = array("raw" => 24, "escape" => 32, "split" => 38, "trans" => 42, "lower" => 42, "replace" => 63);
static $functions = array("pimcore_head_title" => 5, "locale_get_country_name" => 57, "pimcore_inc" => 96, "pimcore_area" => 103);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'set', 'for'],
['raw', 'escape', 'split', 'trans', 'lower', 'replace'],
['pimcore_head_title', 'locale_get_country_name', 'pimcore_inc', 'pimcore_area']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}