<?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 = [
'title' => [$this, 'block_title'],
'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_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
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.', 4, $this->source); })()), "id", [], "any", false, false, false, 4), "html", null, true);
echo "|";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
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 8
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.', 8, $this->source); })()), "edition", [], "any", false, false, false, 8), "title", [], "any", false, false, false, 8), "html", null, true);
echo "
<span id=\"text\" class=\"edit\">";
// line 9
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.', 9, $this->source); })()), "text", [], "any", false, false, false, 9), "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.', 9, $this->source); })()), "position", [], "any", false, false, false, 9)) {
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.', 9, $this->source); })()), "position", [], "any", false, false, false, 9), "html", null, true);
echo "</span>";
}
// line 10
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.', 10, $this->source); })()), "compilation", [], "any", false, false, false, 10), "short", [], "any", false, false, false, 10), "html", null, true);
echo "</span>
";
// line 11
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.', 11, $this->source); })()), "compilation", [], "any", false, false, false, 11), "collection", [], "any", false, false, false, 11)) && 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.', 11, $this->source); })()), "compilationPage", [], "any", false, false, false, 11))) {
// line 12
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.', 12, $this->source); })()), "compilationPage", [], "any", false, false, false, 12), "html", null, true);
echo "</span>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 13
(isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 13, $this->source); })()), "compilation", [], "any", false, false, false, 13), "collection", [], "any", false, false, false, 13), "BOEP"))) {
// line 14
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.', 14, $this->source); })()), "compilationIndex", [], "any", false, false, false, 14), "html", null, true);
echo "</span>
";
}
// line 16
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.', 16, $this->source); })()), "id", [], "any", false, false, false, 16), "html", null, true);
echo "<span>)</span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
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 20
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.', 20, $this->source); })()), "registerEntries", [], "any", false, false, false, 20))) {
// line 21
echo " Weitere identifier und Links:
<a href=\"http://www.trismegistos.org/text/";
// line 22
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.', 22, $this->source); })()), "tm", [], "any", false, false, false, 22), "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.', 22, $this->source); })()), "tm", [], "any", false, false, false, 22), "html", null, true);
echo "</a>
";
// line 23
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.', 23, $this->source); })()), "ddb", [], "any", false, false, false, 23)) {
// line 24
echo " =
<a href=\"https://papyri.info/hgv/";
// line 25
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.', 25, $this->source); })()), "hgv", [], "any", false, false, false, 25), "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.', 25, $this->source); })()), "ddb", [], "any", false, false, false, 25), "html", null, true);
echo "</a>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 26
(isset($context["correction"]) || array_key_exists("correction", $context) ? $context["correction"] : (function () { throw new RuntimeError('Variable "correction" does not exist.', 26, $this->source); })()), "dclp", [], "any", false, false, false, 26)) {
// line 27
echo " =
<a href=\"https://papyri.info/dclp/";
// 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); })()), "tm", [], "any", false, false, false, 28), "html", null, true);
echo "\" title=\"Weitere Informationen auf papyri.info\" target=\"_blank\">DCLP auf Papyri.info</a>
";
}
// line 30
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.', 30, $this->source); })()), "hgv", [], "any", false, false, false, 30)) {
// line 31
echo " =
HGV ";
// line 32
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.', 32, $this->source); })()), "hgv", [], "any", false, false, false, 32), "html", null, true);
echo "
";
}
// line 34
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 37
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 38
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.', 38, $this->source); })()), "description", [], "any", false, false, false, 38), "html", null, true);
echo "</p>
";
// line 39
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.', 39, $this->source); })()), "registerEntries", [], "any", false, false, false, 39)), 1))) {
// line 40
echo " <h4>Siehe auch:</h4>
";
// line 41
$this->loadTemplate("register/snippetList.html.twig", "apiary/info.html.twig", 41)->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.', 41, $this->source); })())]));
// line 42
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 ( 229 => 42, 227 => 41, 224 => 40, 222 => 39, 217 => 38, 207 => 37, 196 => 34, 191 => 32, 188 => 31, 185 => 30, 180 => 28, 177 => 27, 175 => 26, 169 => 25, 166 => 24, 164 => 23, 158 => 22, 155 => 21, 152 => 20, 142 => 19, 129 => 16, 123 => 14, 121 => 13, 116 => 12, 114 => 11, 109 => 10, 101 => 9, 96 => 8, 86 => 7, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'frontend.html.twig' %}
{% block title %}
{{ correction.id }}|{{ parent() }}
{% endblock %}
{% 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");
}
}