parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["value"] = (((null === ($context["value"] ?? null))) ? ($this->getAttribute(($context["field"] ?? null), "default", array())) : (($context["value"] ?? null))); // line 2 echo " "; // line 3 if ($this->getAttribute(($context["context"] ?? null), "folderExists", array())) { // line 4 echo "
getAttribute(($context["field"] ?? null), "classes", array(), "any", true, true)) { echo twig_escape_filter($this->env, $this->getAttribute(($context["field"] ?? null), "classes", array()), "html", null, true); } echo "\">
"; // line 9 $context["uploadLimit"] = (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "system", array()), "media", array()), "upload_limit", array()) / 1024) / 1024); // line 10 echo " "; $context["dropzoneSettings"] = array("maxFileSize" => ($context["uploadLimit"] ?? null)); // line 11 echo "
env, ($context["base_url"] ?? null), "html", null, true); echo "/media/"; echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true); echo ".json\" data-media-local=\""; // line 14 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->rtrimFilter(($context["base_url_relative_frontend"] ?? null), "/"), "html", null, true); echo "/"; echo twig_escape_filter($this->env, twig_trim_filter($this->getAttribute(($context["admin"] ?? null), "route", array()), "/"), "html", null, true); echo "\" data-media-path=\""; // line 15 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc($this->getAttribute(($context["context"] ?? null), "relativePagePath", array())), "html", null, true); echo "\" data-dropzone-options=\""; // line 16 echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["dropzoneSettings"] ?? null)), "html_attr"); echo "\" data-dropzone-field=\""; // line 17 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true); echo "\">
"; // line 19 if (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "session", array()), "expert", array()) == "0")) { // line 20 echo " env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true); echo "\" value=\""; echo twig_escape_filter($this->env, ($context["value"] ?? null)); echo "\" /> "; } // line 22 echo "
"; } else { // line 25 echo "
"; // line 28 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CANNOT_ADD_MEDIA_FILES_PAGE_NOT_SAVED"), "html", null, true); echo "
"; } } public function getTemplateName() { return "forms/fields/pagemedia/pagemedia.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 94 => 28, 89 => 25, 84 => 22, 76 => 20, 74 => 19, 69 => 17, 65 => 16, 61 => 15, 55 => 14, 49 => 13, 45 => 11, 42 => 10, 40 => 9, 34 => 6, 26 => 4, 24 => 3, 21 => 2, 19 => 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 Twig_Source("{% set value = (value is null ? field.default : value) %} {% if context.folderExists %}
{% set uploadLimit = grav.config.system.media.upload_limit / 1024 / 1024 %} {% set dropzoneSettings = { maxFileSize: uploadLimit } %}
{% if admin.session.expert == '0' %} {% endif %}
{% else %}
{{ \"PLUGIN_ADMIN.CANNOT_ADD_MEDIA_FILES_PAGE_NOT_SAVED\"|tu }}
{% endif %} ", "forms/fields/pagemedia/pagemedia.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig"); } }