<?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;
/* apiary/info.html.twig */
class __TwigTemplate_4271ea3372dad82b7a6c1754802531fca8ace7e5ba5bf7764bf3b8f1f1b8455a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'beta' => [$this, 'block_beta'],
'gamma' => [$this, 'block_gamma'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "frontend.html.twig";
}
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", "apiary/info.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "apiary/info.html.twig"));
$this->parent = $this->loadTemplate("frontend.html.twig", "apiary/info.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_beta($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(), "block", "beta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "beta"));
// line 4
echo " BL-Eintrag zu ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 4, $this->source); })()), "edition", [], "any", false, false, false, 4), "title", [], "any", false, false, false, 4), "html", null, true);
echo "
<span id=\"text\" class=\"edit\">";
// line 5
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 5, $this->source); })()), "text", [], "any", false, false, false, 5), "html", null, true);
echo "</span>";
if (twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 5, $this->source); })()), "position", [], "any", false, false, false, 5)) {
echo ", <span id=\"position\" class=\"edit\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 5, $this->source); })()), "position", [], "any", false, false, false, 5), "html", null, true);
echo "</span>";
}
// line 6
echo " <span>in </span><span id=\"compilation\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 6, $this->source); })()), "compilation", [], "any", false, false, false, 6), "short", [], "any", false, false, false, 6), "html", null, true);
echo "</span>
";
// line 7
if (((is_string($__internal_compile_0 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 7, $this->source); })()), "compilation", [], "any", false, false, false, 7), "collection", [], "any", false, false, false, 7)) && is_string($__internal_compile_1 = "BL") && ('' === $__internal_compile_1 || 0 === strpos($__internal_compile_0, $__internal_compile_1))) && twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 7, $this->source); })()), "compilationPage", [], "any", false, false, false, 7))) {
// line 8
echo " <span>S. </span><span id=\"compilationPage\" class=\"edit\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 8, $this->source); })()), "compilationPage", [], "any", false, false, false, 8), "html", null, true);
echo "</span>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 9
(isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 9, $this->source); })()), "compilation", [], "any", false, false, false, 9), "collection", [], "any", false, false, false, 9), "BOEP"))) {
// line 10
echo " <span id=\"compilationIndex\" class=\"edit\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 10, $this->source); })()), "compilationIndex", [], "any", false, false, false, 10), "html", null, true);
echo "</span>
";
}
// line 12
echo " <span>(</span>BL-Online-Id ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 12, $this->source); })()), "id", [], "any", false, false, false, 12), "html", null, true);
echo "<span>)</span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_gamma($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(), "block", "gamma"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "gamma"));
// line 16
echo " ";
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 16, $this->source); })()), "registerEntries", [], "any", false, false, false, 16))) {
// line 17
echo " Weitere identifier und Links:
<a href=\"http://www.trismegistos.org/text/";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 18, $this->source); })()), "tm", [], "any", false, false, false, 18), "html", null, true);
echo "\" title=\"Weitere Informationen auf Trismegistos\" target=\"_blank\">TM ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 18, $this->source); })()), "tm", [], "any", false, false, false, 18), "html", null, true);
echo "</a>
";
// line 19
if (twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 19, $this->source); })()), "ddb", [], "any", false, false, false, 19)) {
// line 20
echo " =
<a href=\"https://papyri.info/hgv/";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 21, $this->source); })()), "hgv", [], "any", false, false, false, 21), "html", null, true);
echo "\" title=\"Weitere Informationen auf papyri.info\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 21, $this->source); })()), "ddb", [], "any", false, false, false, 21), "html", null, true);
echo "</a>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 22
(isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 22, $this->source); })()), "dclp", [], "any", false, false, false, 22)) {
// line 23
echo " =
<a href=\"https://papyri.info/dclp/";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 24, $this->source); })()), "tm", [], "any", false, false, false, 24), "html", null, true);
echo "\" title=\"Weitere Informationen auf papyri.info\" target=\"_blank\">DCLP auf Papyri.info</a>
";
}
// line 26
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 26, $this->source); })()), "hgv", [], "any", false, false, false, 26)) {
// line 27
echo " =
HGV ";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 28, $this->source); })()), "hgv", [], "any", false, false, false, 28), "html", null, true);
echo "
";
}
// line 30
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 33
public function block_body($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(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 34
echo " <p id=\"description\" class=\"editArea greek\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 34, $this->source); })()), "description", [], "any", false, false, false, 34), "html", null, true);
echo "</p>
";
// line 35
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 35, $this->source); })()), "registerEntries", [], "any", false, false, false, 35)), 1))) {
// line 36
echo " <h4>Siehe auch:</h4>
";
// line 37
$this->loadTemplate("register/snippetList.html.twig", "apiary/info.html.twig", 37)->display(twig_array_merge($context, ["correction" => (isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 37, $this->source); })())]));
// line 38
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "apiary/info.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 203 => 38, 201 => 37, 198 => 36, 196 => 35, 191 => 34, 181 => 33, 170 => 30, 165 => 28, 162 => 27, 159 => 26, 154 => 24, 151 => 23, 149 => 22, 143 => 21, 140 => 20, 138 => 19, 132 => 18, 129 => 17, 126 => 16, 116 => 15, 103 => 12, 97 => 10, 95 => 9, 90 => 8, 88 => 7, 83 => 6, 75 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend.html.twig' %}
{% block beta %}
BL-Eintrag zu {{ correction.edition.title }}
<span id=\"text\" class=\"edit\">{{ correction.text }}</span>{% if correction.position %}, <span id=\"position\" class=\"edit\">{{ correction.position }}</span>{% endif %}
<span>in </span><span id=\"compilation\">{{ correction.compilation.short }}</span>
{% if correction.compilation.collection starts with 'BL' and correction.compilationPage %}
<span>S. </span><span id=\"compilationPage\" class=\"edit\">{{ correction.compilationPage }}</span>
{% elseif correction.compilation.collection == 'BOEP' %}
<span id=\"compilationIndex\" class=\"edit\">{{ correction.compilationIndex }}</span>
{% endif %}
<span>(</span>BL-Online-Id {{ correction.id }}<span>)</span>
{% endblock %}
{% block gamma %}
{% if correction.registerEntries|length %}
Weitere identifier und Links:
<a href=\"http://www.trismegistos.org/text/{{ correction.tm }}\" title=\"Weitere Informationen auf Trismegistos\" target=\"_blank\">TM {{ correction.tm }}</a>
{% if correction.ddb %}
=
<a href=\"https://papyri.info/hgv/{{ correction.hgv }}\" title=\"Weitere Informationen auf papyri.info\" target=\"_blank\">{{ correction.ddb }}</a>
{% elseif correction.dclp %}
=
<a href=\"https://papyri.info/dclp/{{ correction.tm }}\" title=\"Weitere Informationen auf papyri.info\" target=\"_blank\">DCLP auf Papyri.info</a>
{% endif %}
{% if correction.hgv %}
=
HGV {{ correction.hgv }}
{% endif %}
{% endif %}
{% endblock %}
{% block body %}
<p id=\"description\" class=\"editArea greek\">{{ correction.description }}</p>
{% if correction.registerEntries|length > 1 %}
<h4>Siehe auch:</h4>
{% include 'register/snippetList.html.twig' with {'correction': correction} %}
{% endif %}
{% endblock %}
", "apiary/info.html.twig", "/var/www/beehive_dev/templates/apiary/info.html.twig");
}
}