parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
$context["supported_core_templates"] = [];
// line 2
$context["supported_custom_templates"] = [];
// line 3
echo "
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["data"] ?? null), "templates", []));
foreach ($context['_seq'] as $context["_key"] => $context["template"]) {
if (twig_in_filter(($context["slot_type"] ?? null), $this->getAttribute($context["template"], "supported_slot_types", []))) {
// line 5
echo "\t";
if ($this->getAttribute($context["template"], "is_core", [])) {
// line 6
echo "\t\t";
$context["supported_core_templates"] = \WPML\Core\twig_array_merge(($context["supported_core_templates"] ?? null), [0 => $context["template"]]);
// line 7
echo "\t";
} else {
// line 8
echo "\t\t";
$context["supported_custom_templates"] = \WPML\Core\twig_array_merge(($context["supported_custom_templates"] ?? null), [0 => $context["template"]]);
// line 9
echo "\t";
}
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['template'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo "
";
// line 12
$context["total_templates"] = (\WPML\Core\twig_length_filter($this->env, ($context["supported_core_templates"] ?? null)) + \WPML\Core\twig_length_filter($this->env, ($context["supported_custom_templates"] ?? null)));
// line 13
echo "
\t
";
$this->loadTemplate("tooltip.twig", "dropdown-templates.twig", 16)->display(twig_array_merge($context, ["content" => $this->getAttribute($this->getAttribute(($context["strings"] ?? null), "tooltips", []), "available_templates", [])]));
echo "
\t
";
}
public function getTemplateName()
{
return "dropdown-templates.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 158 => 35, 154 => 33, 139 => 31, 136 => 30, 132 => 29, 127 => 28, 125 => 27, 121 => 25, 106 => 23, 103 => 22, 99 => 21, 95 => 20, 88 => 18, 79 => 16, 72 => 14, 69 => 13, 67 => 12, 64 => 11, 56 => 9, 53 => 8, 50 => 7, 47 => 6, 44 => 5, 39 => 4, 36 => 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("", "dropdown-templates.twig", "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/sitepress-multilingual-cms/templates/language-switcher-admin-ui/dropdown-templates.twig");
}
}