046e7d22614fe0abecf3d5ccf40da7e268fde064d8262c738d660889c8aa6704.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /* forms/fields/markdown/markdown.html.twig */
  3. class __TwigTemplate_4f2d6d573231e9abef1757c8e4961615b10361f4236f2f3ba63503b993a287bf extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. // line 3
  9. $this->parent = $this->loadTemplate("forms/fields/editor/editor.html.twig", "forms/fields/markdown/markdown.html.twig", 3);
  10. $this->blocks = array(
  11. );
  12. }
  13. protected function doGetParent(array $context)
  14. {
  15. return "forms/fields/editor/editor.html.twig";
  16. }
  17. protected function doDisplay(array $context, array $blocks = array())
  18. {
  19. // line 4
  20. $context["codemirrorOptions"] = twig_array_merge(array("mode" => "gfm", "ignore" => array()), (($this->getAttribute(($context["field"] ?? null), "codemirror", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["field"] ?? null), "codemirror", array()), array())) : (array())));
  21. // line 7
  22. if ($this->getAttribute(($context["field"] ?? null), "showPreview", array())) {
  23. // line 8
  24. $context["codemirrorOptions"] = twig_array_merge(($context["codemirrorOptions"] ?? null), array("ignore" => array()));
  25. }
  26. // line 3
  27. $this->parent->display($context, array_merge($this->blocks, $blocks));
  28. }
  29. public function getTemplateName()
  30. {
  31. return "forms/fields/markdown/markdown.html.twig";
  32. }
  33. public function isTraitable()
  34. {
  35. return false;
  36. }
  37. public function getDebugInfo()
  38. {
  39. return array ( 31 => 3, 28 => 8, 26 => 7, 24 => 4, 11 => 3,);
  40. }
  41. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  42. public function getSource()
  43. {
  44. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  45. return $this->getSourceContext()->getCode();
  46. }
  47. public function getSourceContext()
  48. {
  49. return new Twig_Source("{# Deprecated field. Alias to editor/editor.html.twig #}
  50. {% extends \"forms/fields/editor/editor.html.twig\" %}
  51. {% set codemirrorOptions = {'mode': 'gfm', 'ignore': []}|merge(field.codemirror|default({})) %}
  52. {# backward compatibility #}
  53. {% if field.showPreview %}
  54. {% set codemirrorOptions = codemirrorOptions|merge({'ignore': []}) %}
  55. {% endif %}
  56. {# end backward compatibility #}
  57. ", "forms/fields/markdown/markdown.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/markdown/markdown.html.twig");
  58. }
  59. }