22bd1662b7e19e313f53cdf31140abec9af39f70a826230f9d601e12216e3a63.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /* partials/javascripts.html.twig */
  3. class __TwigTemplate_5e43703705bf966a6cb85fab83d74780fdd1b29e7bbb2dca893761a903ce41f7 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. $this->getAttribute(($context["assets"] ?? null), "add", array(0 => "jquery", 1 => 101), "method");
  16. // line 2
  17. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.login", 1 => "admin.super"))) {
  18. // line 3
  19. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/vendor.min.js"), 1 => array("loading" => "defer")), "method");
  20. // line 4
  21. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/admin.min.js"), 1 => array("loading" => "defer")), "method");
  22. // line 5
  23. echo "
  24. ";
  25. // line 6
  26. if ((($this->getAttribute(($context["browser"] ?? null), "getBrowser", array()) == "msie") || ($this->getAttribute(($context["browser"] ?? null), "getBrowser", array()) == "edge"))) {
  27. // line 7
  28. echo " ";
  29. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => (($context["theme_url"] ?? null) . "/js/form-attr.polyfill.js")), "method");
  30. }
  31. // line 9
  32. echo "
  33. ";
  34. // line 10
  35. try {
  36. $this->loadTemplate("partials/javascripts-extra.html.twig", "partials/javascripts.html.twig", 10)->display($context);
  37. } catch (Twig_Error_Loader $e) {
  38. // ignore missing template
  39. }
  40. }
  41. }
  42. public function getTemplateName()
  43. {
  44. return "partials/javascripts.html.twig";
  45. }
  46. public function isTraitable()
  47. {
  48. return false;
  49. }
  50. public function getDebugInfo()
  51. {
  52. return array ( 39 => 10, 36 => 9, 32 => 7, 30 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 1,);
  53. }
  54. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  55. public function getSource()
  56. {
  57. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  58. return $this->getSourceContext()->getCode();
  59. }
  60. public function getSourceContext()
  61. {
  62. return new Twig_Source("{% do assets.add('jquery',101) %}
  63. {% if authorize(['admin.login', 'admin.super']) %}
  64. {% do assets.addJs(theme_url~'/js/vendor.min.js', { 'loading':'defer' }) %}
  65. {% do assets.addJs(theme_url~'/js/admin.min.js' , { 'loading':'defer' }) %}
  66. {% if browser.getBrowser == 'msie' or browser.getBrowser == 'edge' %}
  67. {% do assets.addJs(theme_url~'/js/form-attr.polyfill.js') %}
  68. {% endif %}
  69. {% include 'partials/javascripts-extra.html.twig' ignore missing %}
  70. {% endif %}
  71. ", "partials/javascripts.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/javascripts.html.twig");
  72. }
  73. }