*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'title' => [$this, 'block_title'], 'content' => [$this, 'block_content'], 'scripts' => [$this, 'block_scripts'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 1 return "layout.twig"; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $this->parent = $this->load("layout.twig", 1); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 3 /** * @return iterable */ public function block_title(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 4 if (((array_key_exists("post", $context) && !(null === ($context["post"] ?? null))) && (CoreExtension::getAttribute($this->env, $this->source, ($context["post"] ?? null), "id", [], "any", false, false, false, 4) > 0))) { // line 5 yield "Éditer l'article "; } else { // line 7 yield "Créer un article "; } yield from []; } // line 11 /** * @return iterable */ public function block_content(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 12 yield "

"; // line 14 if (((array_key_exists("post", $context) && !(null === ($context["post"] ?? null))) && (CoreExtension::getAttribute($this->env, $this->source, ($context["post"] ?? null), "id", [], "any", false, false, false, 14) > 0))) { // line 15 yield " Éditer l'article "; } else { // line 17 yield " Créer un article "; } // line 19 yield "

"; // line 22 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["action"] ?? null), "html", null, true); yield "\">

Annuler

"; // line 48 if (((array_key_exists("post", $context) && !(null === ($context["post"] ?? null))) && (CoreExtension::getAttribute($this->env, $this->source, ($context["post"] ?? null), "id", [], "any", false, false, false, 48) > 0))) { // line 49 yield "
Créé le : "; // line 51 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["post"] ?? null), "createdAt", [], "any", false, false, false, 51), "d/m/Y à H:i"), "html", null, true); yield "
Modifié le : "; // line 52 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, ($context["post"] ?? null), "updatedAt", [], "any", false, false, false, 52), "d/m/Y à H:i"), "html", null, true); yield "
"; } // line 55 yield " "; yield from []; } // line 58 /** * @return iterable */ public function block_scripts(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 59 yield " "; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "pages/post_form.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 168 => 59, 161 => 58, 155 => 55, 149 => 52, 145 => 51, 141 => 49, 139 => 48, 132 => 43, 128 => 41, 124 => 39, 122 => 38, 114 => 32, 105 => 25, 98 => 22, 94 => 19, 90 => 17, 86 => 15, 84 => 14, 80 => 12, 73 => 11, 66 => 7, 62 => 5, 60 => 4, 53 => 3, 42 => 1,); } public function getSourceContext(): Source { return new Source("", "pages/post_form.twig", "/home/julien/Documents/Git/julien/blog-slim/views/pages/post_form.twig"); } }