<?php namespace WPML\Core; use \WPML\Core\Twig\Environment; use \WPML\Core\Twig\Error\LoaderError; use \WPML\Core\Twig\Error\RuntimeError; use \WPML\Core\Twig\Markup; use \WPML\Core\Twig\Sandbox\SecurityError; use \WPML\Core\Twig\Sandbox\SecurityNotAllowedTagError; use \WPML\Core\Twig\Sandbox\SecurityNotAllowedFilterError; use \WPML\Core\Twig\Sandbox\SecurityNotAllowedFunctionError; use \WPML\Core\Twig\Source; use \WPML\Core\Twig\Template; /* table-slots.twig */ class __TwigTemplate_a43e9b1189e8282ca17e49376af0bc1be8b7523d3446ee00923959ef36a93600 extends \WPML\Core\Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { // line 1 if (((isset($context["slot_type"]) ? $context["slot_type"] : null) == "statics")) { // line 2 echo "\t"; $context["is_static"] = true; // line 3 echo "\t"; $context["table_id"] = ((("wpml-ls-slot-list-" . (isset($context["slot_type"]) ? $context["slot_type"] : null)) . "-") . (isset($context["slug"]) ? $context["slug"] : null)); } else { // line 5 echo "\t"; $context["table_id"] = ("wpml-ls-slot-list-" . (isset($context["slot_type"]) ? $context["slot_type"] : null)); } // line 7 echo " "; // line 8 if (twig_in_filter((isset($context["slug"]) ? $context["slug"] : null), [0 => "footer", 1 => "post_translations"])) { // line 9 echo " "; $context["label_action"] = $this->getAttribute($this->getAttribute((isset($context["strings"]) ? $context["strings"] : null), "misc", []), "label_action", []); } else { // line 11 echo " "; $context["label_action"] = $this->getAttribute($this->getAttribute((isset($context["strings"]) ? $context["strings"] : null), "misc", []), "label_actions", []); } // line 13 echo " <table id=\""; // line 14 echo \WPML\Core\twig_escape_filter($this->env, (isset($context["table_id"]) ? $context["table_id"] : null), "html", null, true); echo "\" class=\"js-wpml-ls-slot-list wpml-ls-slot-list\""; if ( !(isset($context["slots_settings"]) ? $context["slots_settings"] : null)) { echo " style=\"display:none;\""; } echo "> <thead> <tr> <th>"; // line 17 echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["strings"]) ? $context["strings"] : null), "misc", []), "label_preview", []), "html", null, true); echo "</th> "; // line 18 if ( !(isset($context["is_static"]) ? $context["is_static"] : null)) { echo "<th>"; echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["strings"]) ? $context["strings"] : null), "misc", []), "label_position", []), "html", null, true); echo "</th>"; } // line 19 echo " <th"; if ( !(isset($context["is_static"]) ? $context["is_static"] : null)) { echo " colspan=\"2\""; } echo ">"; echo \WPML\Core\twig_escape_filter($this->env, (isset($context["label_action"]) ? $context["label_action"] : null), "html", null, true); echo "</th></tr> </thead> <tbody> "; // line 22 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["slots_settings"]) ? $context["slots_settings"] : 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["slug"] => $context["slot_settings"]) { // line 23 echo " "; $this->loadTemplate("table-slot-row.twig", "table-slots.twig", 23)->display(twig_array_merge($context, ["slug" => // line 25 $context["slug"], "slot_type" => // line 26 (isset($context["slot_type"]) ? $context["slot_type"] : null), "slot_settings" => // line 27 $context["slot_settings"], "slots" => // line 28 (isset($context["slots"]) ? $context["slots"] : null)])); // line 31 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['slug'], $context['slot_settings'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 32 echo " </tbody> </table>"; } public function getTemplateName() { return "table-slots.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 130 => 32, 116 => 31, 114 => 28, 113 => 27, 112 => 26, 111 => 25, 109 => 23, 92 => 22, 81 => 19, 75 => 18, 71 => 17, 61 => 14, 58 => 13, 54 => 11, 50 => 9, 48 => 8, 45 => 7, 41 => 5, 37 => 3, 34 => 2, 32 => 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("", "table-slots.twig", "/home/lef/public_html/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/table-slots.twig"); } }