<?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;
/* areas/services/view.html.twig */
class __TwigTemplate_d4fd86acff946e4bac472556de3277d5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "areas/services/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/services/view.html.twig"));
// line 1
echo "<div id=\"leistungen\" class=\"anchor\"></div>
<section class=\"teaser-container\">
<div class=\"headline flex center\">
";
// line 4
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo " <h2>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => "Unsere Leistungen"]);
echo "</h2>
";
} elseif (( ! // line 6
(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))) {
// line 7
echo " <h2>";
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);
echo "</h2>
";
}
// line 9
echo " </div>
";
// line 10
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 10, $this->source); })())) {
// line 11
echo " ";
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"]]);
// line 18
echo "
";
} elseif (( ! // line 19
(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))) {
// line 20
echo " <div class=\"teaser-row flex\">
";
// line 21
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "Teaser"));
foreach ($context['_seq'] as $context["_key"] => $context["teaser"]) {
// line 22
echo " <div class=\"teaser\">
<div class=\"anchor-teaser\"></div>
";
// line 24
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))) {
// line 25
echo " <div class=\"gradient\" style=\"background: linear-gradient(45deg, rgba(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "colorLeft", [], "any", false, false, false, 25), "html", null, true);
echo ",90%) 0%, rgba(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "colorRight", [], "any", false, false, false, 25), "html", null, true);
echo ",90%) 100%);\"></div>
";
}
// line 27
echo " <h3>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "title", [], "any", false, false, false, 27), "html", null, true);
echo "</h3>
";
// line 28
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 28)) {
// line 29
echo " <p class=\"inner-text\">";
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 29));
echo "</p>
";
}
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 31)) {
// line 32
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 32), "html", null, true);
echo "\" class=\"btn btn-primary teaser-button\">";
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 32)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 32), "html", null, true);
} else {
echo "Referenzen";
}
echo "</a>
";
}
// line 34
echo " ";
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);
echo "
";
// line 35
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 35)) {
// line 36
echo " <div class=\"teaser-text\" ";
echo ">
<p class=\"p-text\">";
// line 37
echo twig_nl2br(twig_get_attribute($this->env, $this->source, $context["teaser"], "text", [], "any", false, false, false, 37));
echo "</p>
";
// line 38
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 38)) {
// line 39
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "snippet", [], "any", false, false, false, 39), "html", null, true);
echo "\" class=\"btn btn-primary teaser-button\">";
if (twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 39)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["teaser"], "btnText", [], "any", false, false, false, 39), "html", null, true);
} else {
echo "Referenzen";
}
echo "</a>
";
}
// line 41
echo " </div>
";
}
// line 43
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['teaser'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " </div>
";
}
// line 47
echo "</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/services/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div id=\"leistungen\" class=\"anchor\"></div>
<section class=\"teaser-container\">
<div class=\"headline flex center\">
{% if editmode %}
<h2>{{ pimcore_input('headline',{'placeholder':'Unsere Leistungen'}) }}</h2>
{% elseif not editmode and not pimcore_input('headline').isEmpty() %}
<h2>{{ pimcore_input('headline').getData() }}</h2>
{% endif %}
</div>
{% if editmode %}
{{ pimcore_relations(\"Teaser\", {
\"types\": [\"object\"],
\"title\": \"Teaser Objekte ablegen\",
\"subtypes\": {
\"object\": [\"object\"]
},
\"classes\": [\"Teaser\"]
}) }}
{% elseif not editmode and not pimcore_relations(\"Teaser\").isEmpty() %}
<div class=\"teaser-row flex\">
{% for teaser in pimcore_relations(\"Teaser\") %}
<div class=\"teaser\">
<div class=\"anchor-teaser\"></div>
{% if teaser.colorLeft and teaser.colorRight %}
<div class=\"gradient\" style=\"background: linear-gradient(45deg, rgba({{ teaser.colorLeft }},90%) 0%, rgba({{ teaser.colorRight }},90%) 100%);\"></div>
{% endif %}
<h3>{{ teaser.title }}</h3>
{% if teaser.text %}
<p class=\"inner-text\">{{ teaser.text | raw | nl2br }}</p>
{% endif %}
{% if teaser.snippet %}
<a href=\"{{ teaser.snippet }}\" class=\"btn btn-primary teaser-button\">{% if teaser.btnText %}{{ teaser.btnText }}{% else %}Referenzen{% endif %}</a>
{% endif %}
{{ teaser.getImage().thumbnail('Teaser').html({'alt': teaser.title, 'title': teaser.title}) | raw }}
{% if teaser.text %}
<div class=\"teaser-text\" {# style=\"background: linear-gradient(45deg, rgba({{ teaser.colorLeft }},90%) 0%, rgba({{ teaser.colorRight }},90%) 100%);\"#}>
<p class=\"p-text\">{{ teaser.text | raw | nl2br }}</p>
{% if teaser.snippet %}
<a href=\"{{ teaser.snippet }}\" class=\"btn btn-primary teaser-button\">{% if teaser.btnText %}{{ teaser.btnText }}{% else %}Referenzen{% endif %}</a>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</section>", "areas/services/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/areas/services/view.html.twig");
}
}