<?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;
/* CoreBundle:Includes:headDefault.html.twig */
class __TwigTemplate_069ca21f9379119710c20b4e645b31b647160efb8cf341e9b30f7be84e9478de extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'layout_head_meta' => [$this, 'block_layout_head_meta'],
'head_stylesheets' => [$this, 'block_head_stylesheets'],
'head_tag_manager' => [$this, 'block_head_tag_manager'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:Includes:headDefault.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:Includes:headDefault.html.twig"));
// line 1
echo "<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>
";
// line 5
ob_start();
// line 6
echo "<!--
/**
* @license
* MyFonts Webfont Build ID 3697904, 2019-01-14T14:44:27-0500
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
* Webfont: FrutigerLTPro-Light by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-45-light/
*
* Webfont: FrutigerLTPro-Roman by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-55-roman-2/
*
* Webfont: FrutigerLTPro-Bold by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-65-bold-2/
*
*
* License: https://www.myfonts.com/viewlicense?type=web&buildid=3697904
* Licensed pageviews: 1,000,000
* Webfonts copyright: Copyright © 2014 - 2016 Monotype Imaging Inc. All rights
* reserved.
*
* © 2019 MyFonts Inc
*/
-->
";
// line 36
echo twig_include($this->env, $context, "Includes/appendStylesandScripts.html.twig");
echo "
";
// line 38
if (( !(isset($context["document"]) || array_key_exists("document", $context)) || !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 38, $this->source); })()))) {
// line 39
echo " ";
$context["document"] = Pimcore\Model\Document::getById((isset($context["navigationStartId"]) || array_key_exists("navigationStartId", $context) ? $context["navigationStartId"] : (function () { throw new RuntimeError('Variable "navigationStartId" does not exist.', 39, $this->source); })()));
// line 40
echo " ";
}
// line 41
echo " ";
if ($this->env->getTest('instanceof')->getCallable()((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 41, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 42
echo " ";
// line 43
echo " ";
$context["document"] = 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.', 43, $this->source); })()), "getObject", [], "method", false, false, false, 43);
// line 44
echo " ";
}
// line 45
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [0 => (isset($context["pageTitlePrefix"]) || array_key_exists("pageTitlePrefix", $context) ? $context["pageTitlePrefix"] : (function () { throw new RuntimeError('Variable "pageTitlePrefix" does not exist.', 45, $this->source); })())], "method", false, false, false, 45);
// line 46
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [0 => " | "], "method", false, false, false, 46);
// line 47
echo " ";
if ( !twig_test_empty(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.', 47, $this->source); })()), "getTitle", [], "method", false, false, false, 47))) {
// line 48
echo " ";
// line 49
echo " ";
echo $this->env->getFunction('pimcore_head_title')->getCallable()(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.', 49, $this->source); })()), "getTitle", [], "method", false, false, false, 49));
echo "
";
// line 50
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setName", [0 => "og:title", 1 => 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.', 50, $this->source); })()), "getTitle", [], "method", false, false, false, 50)], "method", false, false, false, 50);
// line 51
echo " ";
} else {
// line 52
echo " ";
echo $this->env->getFunction('pimcore_head_title')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 52, $this->source); })()), "properties", [], "any", false, false, false, 52), "navigation_name", [], "any", false, false, false, 52), "data", [], "any", false, false, false, 52));
echo "
";
// line 53
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setName", [0 => "og:title", 1 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 53, $this->source); })()), "properties", [], "any", false, false, false, 53), "navigation_name", [], "any", false, false, false, 53), "data", [], "any", false, false, false, 53)], "method", false, false, false, 53);
// line 54
echo " ";
}
// line 55
echo " ";
if ( !twig_test_empty(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.', 55, $this->source); })()), "getProperty", [0 => "og-image"], "method", false, false, false, 55))) {
// line 56
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setName", [0 => "og:image", 1 => ((isset($context["hostUrl"]) || array_key_exists("hostUrl", $context) ? $context["hostUrl"] : (function () { throw new RuntimeError('Variable "hostUrl" does not exist.', 56, $this->source); })()) . 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.', 56, $this->source); })()), "getProperty", [0 => "og-image"], "method", false, false, false, 56))], "method", false, false, false, 56);
// line 57
echo " ";
}
// line 58
echo " ";
if ( !twig_test_empty(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.', 58, $this->source); })()), "getDescription", [], "method", false, false, false, 58))) {
// line 59
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => 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.', 59, $this->source); })()), "getDescription", [], "method", false, false, false, 59)], "method", false, false, false, 59);
// line 60
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setName", [0 => "og:description", 1 => 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.', 60, $this->source); })()), "getDescription", [], "method", false, false, false, 60)], "method", false, false, false, 60);
// line 61
echo " ";
}
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
// line 63
echo "
";
// line 64
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 68
echo "
";
// line 69
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 72
echo "
";
// line 73
$this->displayBlock('head_tag_manager', $context, $blocks);
// line 76
echo "
";
// line 78
echo " ";
// line 79
echo " ";
// line 80
echo " ";
// line 81
echo " ";
// line 82
echo " ";
// line 83
echo " ";
// line 84
echo "
";
// line 85
if (( !twig_test_empty(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.', 85, $this->source); })()), "getProperty", [0 => "preload.fast.fonts.net"], "method", false, false, false, 85)) && 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.', 85, $this->source); })()), "getProperty", [0 => "preload.fast.fonts.net"], "method", false, false, false, 85))) {
// line 86
echo " <link rel=\"preconnect\" href=\"https://fast.fonts.net\" crossorigin>
<link rel=\"dns-prefetch\" href=\"https://fast.fonts.net\" >
";
}
// line 89
echo "
";
// line 90
echo twig_include($this->env, $context, "Includes/appendFavicons.html.twig");
echo "
</head>
";
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this, $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_layout_head_meta($context, array $blocks = [])
{
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->defer($this, 'layout_head_meta');
}
// line 64
public function block_layout_head_meta_deferred($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
// line 65
echo " ";
// line 66
echo " ";
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this, $context, $blocks);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->defer($this, 'head_stylesheets');
}
// line 69
public function block_head_stylesheets_deferred($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
// line 70
echo " ";
echo $this->env->getFunction('pimcore_head_link')->getCallable()();
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this, $context, $blocks);
}
public function block_head_tag_manager($context, array $blocks = [])
{
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->defer($this, 'head_tag_manager');
}
// line 73
public function block_head_tag_manager_deferred($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_tag_manager"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_tag_manager"));
// line 74
echo " ";
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\TagManager\TwigExtension\TagManagerExtension']->renderDataLayer(), "html", null, true);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$this->env->getExtension('Phive\Twig\Extensions\Deferred\DeferredExtension')->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "CoreBundle:Includes:headDefault.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 292 => 74, 283 => 73, 264 => 70, 255 => 69, 236 => 66, 234 => 65, 225 => 64, 206 => 90, 203 => 89, 198 => 86, 196 => 85, 193 => 84, 191 => 83, 189 => 82, 187 => 81, 185 => 80, 183 => 79, 181 => 78, 178 => 76, 176 => 73, 173 => 72, 171 => 69, 168 => 68, 166 => 64, 163 => 63, 159 => 61, 156 => 60, 153 => 59, 150 => 58, 147 => 57, 144 => 56, 141 => 55, 138 => 54, 136 => 53, 131 => 52, 128 => 51, 126 => 50, 121 => 49, 119 => 48, 116 => 47, 113 => 46, 110 => 45, 107 => 44, 104 => 43, 102 => 42, 99 => 41, 96 => 40, 93 => 39, 91 => 38, 86 => 36, 54 => 6, 52 => 5, 46 => 1,);
}
public function getSourceContext()
{
return new Source("<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>
{% spaceless -%}
<!--
/**
* @license
* MyFonts Webfont Build ID 3697904, 2019-01-14T14:44:27-0500
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
* Webfont: FrutigerLTPro-Light by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-45-light/
*
* Webfont: FrutigerLTPro-Roman by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-55-roman-2/
*
* Webfont: FrutigerLTPro-Bold by Linotype
* URL: https://www.myfonts.com/fonts/linotype/frutiger/pro-65-bold-2/
*
*
* License: https://www.myfonts.com/viewlicense?type=web&buildid=3697904
* Licensed pageviews: 1,000,000
* Webfonts copyright: Copyright © 2014 - 2016 Monotype Imaging Inc. All rights
* reserved.
*
* © 2019 MyFonts Inc
*/
-->
{{ include('Includes/appendStylesandScripts.html.twig') }}
{% if not document is defined or not document %}
{% set document = pimcore_document(navigationStartId) %}
{% endif %}
{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
{# @var document \\Pimcore\\Model\\Document\\Link #}
{% set document = document.getObject() %}
{% endif %}
{% do pimcore_head_title().append(pageTitlePrefix) %}
{% do pimcore_head_title().setSeparator(' | ') %}
{% if document.getTitle() is not empty %}
{# print title #}
{{ pimcore_head_title(document.getTitle()) }}
{% do pimcore_head_meta().setName('og:title', document.getTitle()) |raw %}
{% else %}
{{ pimcore_head_title(document.properties.navigation_name.data) }}
{% do pimcore_head_meta().setName('og:title', document.properties.navigation_name.data) |raw %}
{% endif %}
{% if document.getProperty('og-image') is not empty %}
{% do pimcore_head_meta().setName('og:image', hostUrl ~document.getProperty('og-image') ) |raw %}
{% endif %}
{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% do pimcore_head_meta().setName('og:description', document.getDescription()) |raw %}
{% endif %}
{%- endspaceless %}
{% block layout_head_meta deferred %}
{# print meta #}
{{ pimcore_head_meta() }}
{% endblock %}
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{% endblock %}
{% block head_tag_manager deferred %}
{{ tag_manager_datalayer_render() }}
{% endblock %}
{#{% block head_ie_stylesheets %}#}
{#<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->#}
{#<!--[if lt IE 9]>#}
{#<script src=\"{{ asset('static/js/html5shiv.js') }}\"></script>#}
{#<script src=\"{{ asset('static/js/respond.min.js') }}\"></script>#}
{#<![endif]-->#}
{#{% endblock %}#}
{% if document.getProperty(\"preload.fast.fonts.net\") is not empty and document.getProperty(\"preload.fast.fonts.net\") %}
<link rel=\"preconnect\" href=\"https://fast.fonts.net\" crossorigin>
<link rel=\"dns-prefetch\" href=\"https://fast.fonts.net\" >
{% endif %}
{{ include('Includes/appendFavicons.html.twig') }}
</head>
", "CoreBundle:Includes:headDefault.html.twig", "/var/www/share/test.develey/src/CoreBundle/Resources/views/Includes/headDefault.html.twig");
}
}