<div class="w-full mt-40 rounded-20 border-main-20 border-solid border-20 bg-white-pure dark:bg-main-reverse dark:border-main-reverse-20 pointer:hover:border-main pointer:dark:hover:border-main-reverse focus:border-main dark:focus:border-main-reverse _transition-colors _focus-default _form-input js-custom-select"> <p class="p-60 js-custom-select-label" data-label-text="{{ 'when'|t }}"> {% set dateSublabel = '' %} {% if currentDateSlug == 'today' %} {% set dateSublabel = 'today'|t %} {% elseif currentDateSlug == 'forthcoming' %} {% set dateSublabel = 'forthcoming'|t %} {% elseif currentDateSlug %} {% set dateSublabel = currentDateSlug|split('|') %} {% set dateSublabel = dateSublabel[0]|date('j') ~ ' ' ~ dateSublabel[0]|date('F') ~ ' ' ~ 'to'|t ~ ' ' ~ dateSublabel[1]|date('j') ~ ' ' ~ dateSublabel[1]|date('F') %} {% endif %} <span>{{ 'when'|t }} <span class="custom-select-sublabel">{{ dateSublabel ? '(' ~ dateSublabel ~ ')' }}</span></span> {% include "_svg/arrow-down" %} </p> <div class="js-custom-select-content"> <fieldset> <div class="_form-group">
if (is_object($value) && get_class($value) === Markup::class) { $arguments[$key] = (string)$value; } } try { return twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck); } catch (UnknownMethodException $e) { // Copy twig_get_attribute()'s BadMethodCallException handling if ($ignoreStrictCheck || !$env->isStrictVariables()) { return null; } throw new RuntimeError($e->getMessage(), -1, $source);
{% if currentDateSlug == 'today' %} {% set dateSublabel = 'today'|t %} {% elseif currentDateSlug == 'forthcoming' %} {% set dateSublabel = 'forthcoming'|t %} {% elseif currentDateSlug %} {% set dateSublabel = currentDateSlug|split('|') %} {% set dateSublabel = dateSublabel[0]|date('j') ~ ' ' ~ dateSublabel[0]|date('F') ~ ' ' ~ 'to'|t ~ ' ' ~ dateSublabel[1]|date('j') ~ ' ' ~ dateSublabel[1]|date('F') %} {% endif %} <span>{{ 'when'|t }} <span class="custom-select-sublabel">{{ dateSublabel ? '(' ~ dateSublabel ~ ')' }}</span></span> {% include "_svg/arrow-down" %} </p>
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
<span class="sr-only">{{ 'close_menu'|t }}</span> <div class="flex items-center justify-center w-full h-full bg-main-reverse-10"> {% include '_svg/close' with { extClass: 'w-full h-80' } only %} </div> </button> <div class="_modal-content-main flex flex-col flex-1 relative z-10 overflow-y-auto"> {% block modalContent %} {% endblock %} </div> </div> </div> {% if gridItems %}
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
<button {{ attr(attrClose) }}> {%- block close -%} {%- endblock -%} </button> {% endif %} {%- block content -%} {%- endblock -%} </div> </div>
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()) {
{% extends '_structures/modal' %} {% set lockSiteScroll = true %} {% set trapFocus = true %} {% set isFullWidth = isFullWidth|default(false) %} {% set displayGrid = displayGrid|default(false) %}
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()) {
{% extends '_com/modal' %} {% set alignRight = true %} {% macro filterInput(label, checked, filterKey, filterValue, group) %} <label class="flex pt-60 pl-60"> <input class="peer sr-only" type="radio" name="{{ filterKey }}" value="{{ filterValue }}" {{ checked ? 'checked' }} />
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 entry.eventsSection.text is not empty %} <p class="_px-security md:w-1/2 mb-60 xs:mb-160 text-40 _markdown"> {{ entry.eventsSection.text }} </p> {% endif %} {# Filter #} {% include '_com/events-filters-modal' with { modalId: filtersModalId } %} <div class="_px-security w-full flex justify-center mb-60 xs:mb-160"> {# Mobile #} {% include '_buttons/standard' with { displayIcon: false, label: 'filters'|t,
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
{% block header %} {% if header %} {% include ['_headers/' ~ (header.type|kebab), '_headers/_undefined'] with { header: header } %} {% endif %} {% endblock %} {% block contentBefore %} {# MODULES BEFORE #} {% if modulesBefore %} {% for module in modulesBefore %} {% include ['_modules/' ~ (module.type|kebab), '_modules/_undefined'] with { module: module, level: 1 } only %} {% endfor %} {% endif %}
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()) {
{% extends '_layouts/_base' %} {% set isArchive = entry.isArchive %} {% set pageSize = 7 %} {% set genreFilterKey = 'genre' %} {% set locationFilterKey = 'location' %} {% set dateFilterKey = 'date' %}
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()) {
{% block head %} {% include '_schemas/organization' %} {% endblock %} {% block page %} {% include '_layouts/' ~ entryType %} {% 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
{% block siteHeader %} {% if not hideHeader %} {% include '_site/header' with { theme: theme } %} {% endif %} {% endblock %} <div class="page" data-page-url="{{ pageUrl }}"> {% block page %} {% endblock %} </div> {% block siteFooter %} {% if not hideFooter %} {% include '_site/footer' %}
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()) {
{% extends '_masters/html' %} {% set entryType = entry.type|kebab %} {% block head %} {% include '_schemas/organization' %} {% endblock %}
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;
$this->env = $env; $this->template = $template; } public function render(array $context = []): string { return $this->template->render($context); } 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) { $previous = $e->getPrevious(); if ($previous instanceof YiiExitException) { // Something called Craft::$app->end() if ($previous instanceof ExitException && $previous->output !== null) { echo $previous->output;
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::create(CRAFT_BASE_PATH)->load(); } // Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run();
$_GET = [ 'p' => 'en/whats-on/', 'date' => '2023-02-08', ];