732ba2a54de1fb5f609c26abad068b332dffe5edcdcc94aae7697bcb8d046b2a.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /* partials/release-toggle.html.twig */
  3. class __TwigTemplate_5eaa666f6e9b4044bc18f4771872cc4283bd5542c5ede4e09bb6674b069ea0f6 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. echo "<form id=\"gpm-release-toggle\">
  16. <div class=\"switch-toggle switch-grav\" data-url=\"";
  17. // line 2
  18. echo twig_escape_filter($this->env, ($context["base_url"] ?? null), "html", null, true);
  19. echo "/ajax.json/task:gpmRelease\">
  20. <input type=\"radio\" value=\"stable\" id=\"stable\" name=\"channel-switch\" class=\"highlight\" ";
  21. // line 3
  22. if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "gpm", array()), "releases", array()) == "stable")) {
  23. echo " checked=\"checked\"";
  24. }
  25. echo ">
  26. <label for=\"stable\">";
  27. // line 4
  28. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.STABLE"), "html", null, true);
  29. echo "</label>
  30. <input type=\"radio\" value=\"testing\" id=\"testing\" name=\"channel-switch\" class=\"highlight\" ";
  31. // line 5
  32. if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "gpm", array()), "releases", array()) == "testing")) {
  33. echo " checked=\"checked\"";
  34. }
  35. echo ">
  36. <label for=\"testing\">";
  37. // line 6
  38. echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.TESTING"), "html", null, true);
  39. echo "</label>
  40. <a></a>
  41. </div>
  42. </form>
  43. ";
  44. }
  45. public function getTemplateName()
  46. {
  47. return "partials/release-toggle.html.twig";
  48. }
  49. public function isTraitable()
  50. {
  51. return false;
  52. }
  53. public function getDebugInfo()
  54. {
  55. return array ( 42 => 6, 36 => 5, 32 => 4, 26 => 3, 22 => 2, 19 => 1,);
  56. }
  57. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  58. public function getSource()
  59. {
  60. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  61. return $this->getSourceContext()->getCode();
  62. }
  63. public function getSourceContext()
  64. {
  65. return new Twig_Source("<form id=\"gpm-release-toggle\">
  66. <div class=\"switch-toggle switch-grav\" data-url=\"{{ base_url }}/ajax.json/task:gpmRelease\">
  67. <input type=\"radio\" value=\"stable\" id=\"stable\" name=\"channel-switch\" class=\"highlight\" {% if config.system.gpm.releases == 'stable' %} checked=\"checked\"{% endif %}>
  68. <label for=\"stable\">{{ \"PLUGIN_ADMIN.STABLE\"|tu }}</label>
  69. <input type=\"radio\" value=\"testing\" id=\"testing\" name=\"channel-switch\" class=\"highlight\" {% if config.system.gpm.releases == 'testing' %} checked=\"checked\"{% endif %}>
  70. <label for=\"testing\">{{ \"PLUGIN_ADMIN.TESTING\"|tu }}</label>
  71. <a></a>
  72. </div>
  73. </form>
  74. ", "partials/release-toggle.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/release-toggle.html.twig");
  75. }
  76. }