init without trunk

This commit is contained in:
Kevin Adametz 2020-07-09 12:49:32 +02:00
parent ed24ac4994
commit bb809e7233
14652 changed files with 177862 additions and 94817 deletions

View file

@ -0,0 +1,125 @@
<?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;
/* default/components/pageBoxImage.html.twig */
class __TwigTemplate_7f92b35b716d68c6550b711c9b66cfe8ed90660636241a9a3f8dd5a3f44962b2 extends \Twig\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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/components/pageBoxImage.html.twig"));
// line 1
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 1, $this->source); })()), "boxImageUrl", [], "any", false, false, false, 1))) {
// line 2
echo " ";
$context["image_url"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 2, $this->source); })()), "boxImageUrl", [], "any", false, false, false, 2);
// line 3
echo " ";
$context["image_alt"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "travelProgram", [], "any", false, true, false, 3), "title", [], "any", true, true, false, 3)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "travelProgram", [], "any", false, true, false, 3), "title", [], "any", false, false, false, 3), twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3))) : (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3)));
} elseif (( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 4
(isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "travelProgram", [], "any", false, false, false, 4)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "travelProgram", [], "any", false, false, false, 4), "previewImage", [], "any", false, false, false, 4)))) {
// line 5
echo " ";
$context["image_url"] = ("uploads/travel_program/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })()), "travelProgram", [], "any", false, false, false, 5), "previewImage", [], "any", false, false, false, 5), "fileNameWithExtension", [], "any", false, false, false, 5));
// line 6
echo " ";
$context["image_alt"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6);
} elseif ((( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 7
(isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7), "images", [], "any", false, false, false, 7))) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 7, $this->source); })()), "fewoLodging", [], "any", false, false, false, 7), "images", [], "any", false, false, false, 7), 0, [], "array", false, false, false, 7)))) {
// line 8
echo " ";
$context["image_url"] = ("_uploads/images/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 8, $this->source); })()), "fewoLodging", [], "any", false, false, false, 8), "images", [], "any", false, false, false, 8), 0, [], "array", false, false, false, 8), "file", [], "any", false, false, false, 8));
// line 9
echo " ";
$context["image_alt"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, false, 9);
} else {
// line 11
echo " ";
$context["image_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/app/images/no-picture.png");
// line 12
echo " ";
$context["image_alt"] = "Kein Vorschaubild vorhanden";
}
// line 14
echo "<div class=\"img-background lozad\" data-background-image=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Gregwar\ImageBundle\Extensions\ImageTwig']->image(twig_trim_filter((isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 14, $this->source); })()), "/")), "cropResize", [0 => 360], "method", false, false, false, 14), "guess", [0 => 70], "method", false, false, false, 14), "html", null, true);
echo "\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/placeholder-image.png"), "html", null, true);
echo ")\"></div>
<noscript>
<img width=\"234\" data-url=\"";
// line 16
echo twig_escape_filter($this->env, (isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 16, $this->source); })()), "html", null, true);
echo "\" height=\"180\" src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Gregwar\ImageBundle\Extensions\ImageTwig']->image(twig_trim_filter((isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 16, $this->source); })()), "/")), "cropResize", [0 => 360], "method", false, false, false, 16), "guess", [0 => 70], "method", false, false, false, 16), "html", null, true);
echo "\" class=\"img-responsiv img-responsiv-item\" style=\"\">
</noscript>";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "default/components/pageBoxImage.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 80 => 16, 72 => 14, 68 => 12, 65 => 11, 61 => 9, 58 => 8, 56 => 7, 53 => 6, 50 => 5, 48 => 4, 45 => 3, 42 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% if page.boxImageUrl is not empty %}
{% set image_url = page.boxImageUrl %}
{% set image_alt = page.travelProgram.title|default(page.title) %}
{% elseif page.travelProgram is not empty and page.travelProgram.previewImage is not empty %}
{% set image_url = 'uploads/travel_program/' ~ page.travelProgram.previewImage.fileNameWithExtension %}
{% set image_alt = page.title %}
{% elseif page.fewoLodging is not empty and page.fewoLodging.images is not empty and page.fewoLodging.images[0] is not empty %}
{% set image_url = '_uploads/images/' ~ page.fewoLodging.images[0].file %}
{% set image_alt = page.title %}
{% else %}
{% set image_url = asset('/bundles/app/images/no-picture.png')%}
{% set image_alt = 'Kein Vorschaubild vorhanden' %}
{% endif %}
<div class=\"img-background lozad\" data-background-image=\"{{ image(image_url|trim('/')).cropResize(360).guess(70) }}\" style=\"background-image:url({{ asset('images/placeholder-image.png') }})\"></div>
<noscript>
<img width=\"234\" data-url=\"{{ image_url }}\" height=\"180\" src=\"{{ image(image_url|trim('/')).cropResize(360).guess(70) }}\" class=\"img-responsiv img-responsiv-item\" style=\"\">
</noscript>", "default/components/pageBoxImage.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/pageBoxImage.html.twig");
}
}