<?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/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig */
class __TwigTemplate_b1305415ffec398381b257baab683ae6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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/bundles/Ntriga/FrontBundle/snippets/access-banner.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/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig"));
// line 1
$this->loadTemplate("includes/snippet-css.html.twig", "@App/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig", 1)->display($context);
// line 2
echo "
<div class=\"container-fluid\">
";
// line 4
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink");
// line 5
echo "
";
// line 6
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 6, $this->source); })())) {
// line 7
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "bannerLink", ["class" => "btn btn-primary"]);
echo "
<div class=\"accessbanner\">
";
} else {
// line 11
echo " <a class=\"accessbanner\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 11, $this->source); })()), "getHref", [], "method", false, false, true, 11), 11, $this->source), "html", null, true);
echo "\">
";
}
// line 13
echo " <div class=\"container-inner\">
<div class=\"accessbanner__img\">
<img src=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/icon-user-add.png"), "html", null, true);
echo "\" width=\"80\" height=\"80\" alt=\"\">
</div>
<div class=\"accessbanner__text\">
<div class=\"title\">";
// line 19
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "bannerTitle", ["placeholder" => "Titel ..."]);
echo "</div>
<div class=\"subtitle\">";
// line 20
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "bannerSubtitle", ["placeholder" => "Subtitel ..."]);
echo "</div>
</div>
<div class=\"accessbanner__icon\">
<i class=\"icon-angle-right\"></i>
</div>
</div><!--/ .container-inner -->
";
// line 27
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 27, $this->source); })())) {
// line 28
echo " </div>
";
} else {
// line 30
echo " </a>
";
}
// line 32
echo "</div><!--/ .container-fluid -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@App/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 107 => 32, 103 => 30, 99 => 28, 97 => 27, 87 => 20, 83 => 19, 76 => 15, 72 => 13, 66 => 11, 58 => 7, 56 => 6, 53 => 5, 51 => 4, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% include 'includes/snippet-css.html.twig' %}
<div class=\"container-fluid\">
{% set link = pimcore_link('bannerLink') %}
{% if editmode %}
{{ pimcore_link('bannerLink', {'class': 'btn btn-primary'}) }}
<div class=\"accessbanner\">
{% else %}
<a class=\"accessbanner\" href=\"{{ link.getHref() }}\">
{% endif %}
<div class=\"container-inner\">
<div class=\"accessbanner__img\">
<img src=\"{{ asset('/img/icon-user-add.png') }}\" width=\"80\" height=\"80\" alt=\"\">
</div>
<div class=\"accessbanner__text\">
<div class=\"title\">{{ pimcore_input(\"bannerTitle\", {'placeholder': 'Titel ...'}) }}</div>
<div class=\"subtitle\">{{ pimcore_input(\"bannerSubtitle\", {'placeholder': 'Subtitel ...'}) }}</div>
</div>
<div class=\"accessbanner__icon\">
<i class=\"icon-angle-right\"></i>
</div>
</div><!--/ .container-inner -->
{% if editmode %}
</div>
{% else %}
</a>
{% endif %}
</div><!--/ .container-fluid -->", "@App/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig", "/data/sites/web/devliegerfilipbe/subsites/dev.devliegerfilip.dspdev.be/templates/bundles/Ntriga/FrontBundle/snippets/access-banner.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 1, "set" => 4, "if" => 6);
static $filters = array("escape" => 11);
static $functions = array("pimcore_link" => 4, "asset" => 15, "pimcore_input" => 19);
try {
$this->sandbox->checkSecurity(
['include', 'set', 'if'],
['escape'],
['pimcore_link', 'asset', 'pimcore_input']
);
} 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;
}
}
}