6d532b1e30e5dcd8a26e36cb2233efc07d7bb2135dc77dd0244113e7d58e513b.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Markup;
  6. use Twig\Sandbox\SecurityError;
  7. use Twig\Sandbox\SecurityNotAllowedTagError;
  8. use Twig\Sandbox\SecurityNotAllowedFilterError;
  9. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  10. use Twig\Source;
  11. use Twig\Template;
  12. /* select_lang.twig */
  13. class __TwigTemplate_3f3c2ad3692a047bb91160071d51f487ac87b36dcf79a2ea03f6331e454e6628 extends \Twig\Template
  14. {
  15. public function __construct(Environment $env)
  16. {
  17. parent::__construct($env);
  18. $this->parent = false;
  19. $this->blocks = [
  20. ];
  21. }
  22. protected function doDisplay(array $context, array $blocks = [])
  23. {
  24. // line 1
  25. echo " <form method=\"get\" action=\"index.php\" class=\"disableAjax\">
  26. ";
  27. // line 2
  28. echo PhpMyAdmin\Url::getHiddenInputs(($context["_form_params"] ?? null));
  29. echo "
  30. ";
  31. // line 4
  32. if (($context["use_fieldset"] ?? null)) {
  33. // line 5
  34. echo " <fieldset>
  35. <legend lang=\"en\" dir=\"ltr\">";
  36. // line 6
  37. echo ($context["language_title"] ?? null);
  38. echo "</legend>
  39. ";
  40. } else {
  41. // line 8
  42. echo " <bdo lang=\"en\" dir=\"ltr\">
  43. <label for=\"sel-lang\">";
  44. // line 9
  45. echo ($context["language_title"] ?? null);
  46. echo "</label>
  47. </bdo>
  48. ";
  49. }
  50. // line 12
  51. echo "
  52. <select name=\"lang\" class=\"autosubmit\" lang=\"en\" dir=\"ltr\" id=\"sel-lang\">
  53. ";
  54. // line 15
  55. $context['_parent'] = $context;
  56. $context['_seq'] = twig_ensure_traversable(($context["available_languages"] ?? null));
  57. foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
  58. // line 16
  59. echo " ";
  60. // line 17
  61. echo " <option value=\"";
  62. echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["language"], "getCode", [], "method")), "html", null, true);
  63. echo "\"";
  64. // line 18
  65. if ($this->getAttribute($context["language"], "isActive", [], "method")) {
  66. // line 19
  67. echo " selected=\"selected\"";
  68. }
  69. // line 21
  70. echo ">
  71. ";
  72. // line 22
  73. echo $this->getAttribute($context["language"], "getName", [], "method");
  74. echo "
  75. </option>
  76. ";
  77. }
  78. $_parent = $context['_parent'];
  79. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
  80. $context = array_intersect_key($context, $_parent) + $_parent;
  81. // line 25
  82. echo "
  83. </select>
  84. ";
  85. // line 28
  86. if (($context["use_fieldset"] ?? null)) {
  87. // line 29
  88. echo " </fieldset>
  89. ";
  90. }
  91. // line 31
  92. echo "
  93. </form>
  94. ";
  95. }
  96. public function getTemplateName()
  97. {
  98. return "select_lang.twig";
  99. }
  100. public function isTraitable()
  101. {
  102. return false;
  103. }
  104. public function getDebugInfo()
  105. {
  106. return array ( 100 => 31, 96 => 29, 94 => 28, 89 => 25, 80 => 22, 77 => 21, 74 => 19, 72 => 18, 68 => 17, 66 => 16, 62 => 15, 57 => 12, 51 => 9, 48 => 8, 43 => 6, 40 => 5, 38 => 4, 33 => 2, 30 => 1,);
  107. }
  108. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  109. public function getSource()
  110. {
  111. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  112. return $this->getSourceContext()->getCode();
  113. }
  114. public function getSourceContext()
  115. {
  116. return new Source("", "select_lang.twig", "/www/pma/templates/select_lang.twig");
  117. }
  118. }