Файловый менеджер - Редактировать - /home/lmsyaran/public_html/cache/gantry5/g5_hydrogen/twig/81/81add79269728220ece7bf856eb26aa51efbaf28022eb5eb5da2a29eaf24a449.php
Назад
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; 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; /* @nucleus/layout/grid.html.twig */ class __TwigTemplate_9fed34ff1416afaf2761b0a6ac54aaff714d25643527e21d650c27a4617d9d00 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { // line 1 $context["attr_extra"] = $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->attributeArrayFilter($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "extra", [])); // line 2 $context["class"] = ("g-grid" . (($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "class", [])) ? ((" " . twig_join_filter($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "class", []), " "))) : (""))); // line 4 ob_start(); // line 5 echo " "; if ($this->getAttribute(($context["segment"] ?? null), "children", [])) { // line 6 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null)); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["segment"]) { // line 7 echo " "; $this->loadTemplate((("@nucleus/layout/" . $this->getAttribute($context["segment"], "type", [])) . ".html.twig"), "@nucleus/layout/grid.html.twig", 7)->display(twig_array_merge($context, ["segments" => $this->getAttribute($context["segment"], "children", [])])); // line 8 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 9 echo " "; } $context["html"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 12 if (twig_trim_filter(($context["html"] ?? null))) { // line 13 echo " <div "; if ($this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "id", [])) { echo "id=\""; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["segment"] ?? null), "attributes", []), "id", [])); echo "\" "; } echo "class=\""; echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true); echo "\""; echo ($context["attr_extra"] ?? null); echo ">"; // line 14 echo ($context["html"] ?? null); // line 15 echo "</div> "; } } public function getTemplateName() { return "@nucleus/layout/grid.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 94 => 15, 92 => 14, 80 => 13, 78 => 12, 74 => 9, 60 => 8, 57 => 7, 39 => 6, 36 => 5, 34 => 4, 32 => 2, 30 => 1,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Source("{% set attr_extra = segment.attributes.extra|attribute_array %} {% set class = 'g-grid' ~ (segment.attributes.class ? ' ' ~ segment.attributes.class|join(' ')) %} {%- set html %} {% if segment.children %} {% for segment in segments %} {% include '@nucleus/layout/' ~ segment.type ~ '.html.twig' with { 'segments':segment.children } %} {% endfor %} {% endif %} {% endset %} {%- if html|trim %} <div {% if segment.attributes.id %}id=\"{{ segment.attributes.id|e }}\" {% endif %}class=\"{{ class }}\" {{- attr_extra|raw }}> {{- html|raw -}} </div> {% endif %} ", "@nucleus/layout/grid.html.twig", "/home/lmsyaran/public_html/media/gantry5/engines/nucleus/templates/layout/grid.html.twig"); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка