{# Use: {% include "_includes/_cta/articleMailListSub" %} #} {% if gloNewsletter.description | length %} {% include "_includes/_elements/contentBlockStart" with { 'blockTyp': 'blockAndWrap' } %} <div class="inlinerow text slideup"> <p> {{ gloNewsletter.description | replace({ '__Thema__': entry.title }) }} <span class="open_mailingList linkbutton" data-slidein-target="/ajax/newsletterSubscribe">{{ 'Jetzt eintragen' | t }}</span> </p> </div> <script>
{# Use: {% include "_includes/_cta/articleMailListSub" %} #} {% if gloNewsletter.description | length %} {% include "_includes/_elements/contentBlockStart" with { 'blockTyp': 'blockAndWrap' } %} <div class="inlinerow text slideup"> <p> {{ gloNewsletter.description | replace({ '__Thema__': entry.title }) }} <span class="open_mailingList linkbutton" data-slidein-target="/ajax/newsletterSubscribe">{{ 'Jetzt eintragen' | t }}</span>
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
{% include "_includes/_builder/articleBuilder" with { 'source': entry.articleBuilder } %} </article> {# meta #} <div class="acticle_post"> {% include "_includes/_cta/articleMailListSub" %} {% include "_includes/_elements/contentBlockStart" with { 'blockTyp': 'blockAndWrap' } %} <div class="blog_wrapper"> {% include "_includes/_elements/shareLink" with { 'classes': 'smnav horizontal icons_m', 'title': 'Teile diesen Beitrag' } %} </div> {% include "_includes/_elements/contentBlockEnd" with { 'blockTyp': 'blockAndWrap' } %}
if (null !== $template && !$template instanceof self) { throw new \LogicException('A block must be a method on a \Twig\Template instance.'); } if (null !== $template) { try { $template->$block($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($template->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{% endblock %} </header> {% endblock %} {% block maincontent %} <main class="maincontent" role="main" id="main"> {% block content %} {% cache %}{% minify %} {% include "_includes/_builder/mainBuilder" with { 'source': entry.mainBuilder } %} {% endminify %}{% endcache %} {% endblock %} </main> {% endblock %}
if (null !== $template && !$template instanceof self) { throw new \LogicException('A block must be a method on a \Twig\Template instance.'); } if (null !== $template) { try { $template->$block($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($template->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{% include "_includes/_builder/headerBuilder" with { 'source': entry is defined ? entry.headerBuilder : '' } %} {% endminify %}{% endcache %} {% endblock %} </header> {% endblock %} {% block maincontent %} <main class="maincontent" role="main" id="main"> {% block content %} {% cache %}{% minify %} {% include "_includes/_builder/mainBuilder" with { 'source': entry.mainBuilder } %} {% endminify %}{% endcache %} {% endblock %}
if (null !== $template && !$template instanceof self) { throw new \LogicException('A block must be a method on a \Twig\Template instance.'); } if (null !== $template) { try { $template->$block($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($template->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{% endblock %} {% block loadInHead %}{% endblock %} {{ head() }} </head> <body id="body" class="{% block bodyClass %}{% endblock %}"> <a class="skip_to_content" href="#main">{{ 'Zum Hauptinhalt wechseln' | t }}</a> {% block site %} <div class="site"> {% block header %} <header class="mainhead"> {% block topbar %} {% cache %}{% minify %} {% include "_includes/_baseParts/mainTopbar" %}
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
{# extend layout #} {% extends "_layouts/base" %} {# macro #} {% import '_macros/images' as helpImage %} {% import '_macros/imagesBox' as helpImageBox %}
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
} public function display(array $context = []) { // using func_get_args() allows to not expose the blocks argument // as it should only be used by internal code $this->template->display($context, \func_get_args()[1] ?? []); } public function hasBlock(string $name, array $context = []): bool { return $this->template->hasBlock($name, $context); }
{% include ["site/books/" ~ entry.type, "site/books/books"] %}
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) { $e->setSourceContext($this->getSourceContext()); } // this is mostly useful for \Twig\Error\LoaderError exceptions
{ return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); } public function render(array $context) { $level = ob_get_level(); if ($this->env->isDebug()) {
if ($this->env->isDebug()) { ob_start(); } else { ob_start(function () { return ''; }); } try { $this->display($context); } catch (\Throwable $e) { while (ob_get_level() > $level) { ob_end_clean(); } throw $e;
} public function render(array $context = []): string { // using func_get_args() allows to not expose the blocks argument // as it should only be used by internal code return $this->template->render($context, \func_get_args()[1] ?? []); } public function display(array $context = []) { // using func_get_args() allows to not expose the blocks argument // as it should only be used by internal code
* @throws LoaderError When the template cannot be found * @throws SyntaxError When an error occurred during compilation * @throws RuntimeError When an error occurred during rendering */ public function render($name, array $context = []): string { return $this->load($name)->render($context); } /** * Displays a template. * * @param string|TemplateWrapper $name The template name
// Render and return $renderingTemplate = $this->_renderingTemplate; $this->_renderingTemplate = $template; try { $output = $this->getTwig()->render($template, $variables); } finally { $this->_renderingTemplate = $renderingTemplate; $this->setTemplateMode($oldTemplateMode); } $this->afterRenderTemplate($template, $variables, $templateMode, $output);
$isRenderingPageTemplate = $this->_isRenderingPageTemplate; $this->_isRenderingPageTemplate = true; try { $this->beginPage(); echo $this->renderTemplate($template, $variables); $this->endPage(); } finally { $this->_isRenderingPageTemplate = $isRenderingPageTemplate; $this->setTemplateMode($oldTemplateMode); $output = ob_get_clean(); }
) { $view->registerAssetBundle(ContentWindowAsset::class); } // Render and return the template try { $response->content = $view->renderPageTemplate($behavior->template, $behavior->variables, $behavior->templateMode); } catch (Throwable $e) { if (!$e->getPrevious() instanceof ExitException) { // Bail on the template response $response->format = Response::FORMAT_HTML; throw $e; }
if (isset($this->formatters[$this->format])) { $formatter = $this->formatters[$this->format]; if (!is_object($formatter)) { $this->formatters[$this->format] = $formatter = Yii::createObject($formatter); } if ($formatter instanceof ResponseFormatterInterface) { $formatter->format($this); } else { throw new InvalidConfigException("The '{$this->format}' response formatter is invalid. It must implement the ResponseFormatterInterface."); } } elseif ($this->format === self::FORMAT_RAW) { if ($this->data !== null) { $this->content = $this->data;
/** * @inheritdoc */ protected function prepare(): void { parent::prepare(); $this->_isPrepared = true; } /** * Clear the output buffer to prevent corrupt downloads. *
public function send() { if ($this->isSent) { return; } $this->trigger(self::EVENT_BEFORE_SEND); $this->prepare(); $this->trigger(self::EVENT_AFTER_PREPARE); $this->sendHeaders(); $this->sendContent(); $this->trigger(self::EVENT_AFTER_SEND); $this->isSent = true; }
$response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send(); $this->state = self::STATE_END; return $response->exitStatus; } catch (ExitException $e) { $this->end($e->statusCode, isset($response) ? $response : null);
Dotenv\Dotenv::createUnsafeMutable(CRAFT_BASE_PATH)->safeLoad(); } // Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run();
$_GET = [ 'p' => 'buecher/thinking-in-bets-annie-duke', 'token' => 'r5hDM5lwTiinFiRD0cBk8zhyW_loUZzF', ];