<?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;
/* layouts/layout/favicons.html.twig */
class __TwigTemplate_85a4f54dc932a4d81935a16459d7dfcc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'favicon' => [$this, 'block_favicon'],
];
$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", "layouts/layout/favicons.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/layout/favicons.html.twig"));
// line 1
$this->displayBlock('favicon', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_favicon($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", "favicon"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "favicon"));
// line 2
echo " ";
$context["siteTitle"] = "MySiteTitle";
// line 3
echo " ";
$context["msapplicationTileColor"] = "#FFF";
// line 4
echo " ";
$context["themeColor"] = "#FFF";
// line 5
echo " ";
$context["titleBarColor"] = "#FFF";
// line 6
echo "
";
// line 7
echo $this->extensions['App\Twig\Extension\WebsiteExtension']->generateFavicon($this->sandbox->ensureToStringAllowed((isset($context["siteTitle"]) || array_key_exists("siteTitle", $context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.', 7, $this->source); })()), 7, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["msapplicationTileColor"]) || array_key_exists("msapplicationTileColor", $context) ? $context["msapplicationTileColor"] : (function () { throw new RuntimeError('Variable "msapplicationTileColor" does not exist.', 7, $this->source); })()), 7, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["themeColor"]) || array_key_exists("themeColor", $context) ? $context["themeColor"] : (function () { throw new RuntimeError('Variable "themeColor" does not exist.', 7, $this->source); })()), 7, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["titleBarColor"]) || array_key_exists("titleBarColor", $context) ? $context["titleBarColor"] : (function () { throw new RuntimeError('Variable "titleBarColor" does not exist.', 7, $this->source); })()), 7, $this->source));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "layouts/layout/favicons.html.twig";
}
public function getDebugInfo()
{
return array ( 80 => 7, 77 => 6, 74 => 5, 71 => 4, 68 => 3, 65 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% block favicon %}
{% set siteTitle = 'MySiteTitle' %}
{% set msapplicationTileColor = '#FFF' %}
{% set themeColor = '#FFF' %}
{% set titleBarColor = '#FFF' %}
{{ set_favicon(siteTitle, msapplicationTileColor, themeColor, titleBarColor) }}
{% endblock %}", "layouts/layout/favicons.html.twig", "/var/www/clients/client2/web45/web/pc/templates/layouts/layout/favicons.html.twig");
}
public function checkSecurity()
{
static $tags = array("block" => 1, "set" => 2);
static $filters = array();
static $functions = array("set_favicon" => 7);
try {
$this->sandbox->checkSecurity(
['block', 'set'],
[],
['set_favicon']
);
} 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;
}
}
}