OwlCyberSecurity - MANAGER
Edit File: 35c37606fc4778c746548edd2759dfe3.php
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\CoreExtension; use Twig\Extension\SandboxExtension; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use Twig\Source; use Twig\Template; /* config/form_display/input.twig */ class __TwigTemplate_bebb86604dc60c7ad5d44619ee5b5fe9 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 if (($context["option_is_disabled"] ?? null)) { // line 2 yield " "; $context["tr_class"] = (($context["tr_class"] ?? null) . " disabled-field"); } // line 4 yield "<tr"; if (($context["tr_class"] ?? null)) { yield " class=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["tr_class"] ?? null), "html", null, true); yield "\""; } yield "> <th> <label for=\""; // line 6 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\">"; yield ($context["name"] ?? null); yield "</label> "; // line 8 if ( !Twig\Extension\CoreExtension::testEmpty(($context["doc"] ?? null))) { // line 9 yield " <span class=\"doc\"> <a href=\""; // line 10 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["doc"] ?? null), "html", null, true); yield "\" target=\"documentation\">"; yield PhpMyAdmin\Html\Generator::getImage("b_help", _gettext("Documentation")); yield "</a> </span> "; } // line 13 yield " "; // line 14 if (($context["option_is_disabled"] ?? null)) { // line 15 yield " <span class=\"disabled-notice\" title=\""; yield _gettext("This setting is disabled, it will not be applied to your configuration."); yield "\"> "; yield _gettext("Disabled"); // line 17 yield " </span> "; } // line 19 yield " "; // line 20 if ( !Twig\Extension\CoreExtension::testEmpty(($context["description"] ?? null))) { // line 21 yield " <small>"; yield ($context["description"] ?? null); yield "</small> "; } // line 23 yield " </th> <td> "; // line 26 if ((($context["type"] ?? null) == "text")) { // line 27 yield " <input type=\"text\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["value"] ?? null), "html", null, true); yield "\" class=\"w-75"; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? (" custom field-error") : (" custom"))) : ("")); yield "\"> "; } elseif (( // line 28 ($context["type"] ?? null) == "password")) { // line 29 yield " <input type=\"password\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["value"] ?? null), "html", null, true); yield "\" class=\"w-75"; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? (" custom field-error") : (" custom"))) : ("")); yield "\" spellcheck=\"false\"> "; } elseif ((( // line 30 ($context["type"] ?? null) == "short_text") && !is_iterable(($context["value"] ?? null)))) { // line 31 yield " "; // line 32 yield " <input type=\"text\" size=\"25\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["value"] ?? null), "html", null, true); yield "\" class=\""; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? ("custom field-error") : ("custom"))) : ("")); yield "\"> "; } elseif (( // line 33 ($context["type"] ?? null) == "number_text")) { // line 34 yield " <input type=\"number\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["value"] ?? null), "html", null, true); yield "\" class=\""; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? ("custom field-error") : ("custom"))) : ("")); yield "\"> "; } elseif (( // line 35 ($context["type"] ?? null) == "checkbox")) { // line 36 yield " <span class=\"checkbox"; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? (" custom field-error") : (" custom"))) : ("")); yield "\"> <input type=\"checkbox\" name=\""; // line 37 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\""; yield ((($context["value"] ?? null)) ? (" checked") : ("")); yield "> </span> "; } elseif (( // line 39 ($context["type"] ?? null) == "select")) { // line 40 yield " <select name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" class=\"w-75"; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? (" custom field-error") : (" custom"))) : ("")); yield "\"> "; // line 41 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["select_values"] ?? null)); foreach ($context['_seq'] as $context["key"] => $context["val"]) { // line 42 yield " "; if (($context["val"] === true)) { $context["val"] = _gettext("Yes"); } elseif (($context["val"] === false)) { $context["val"] = _gettext("No"); } // line 43 yield " <option value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["key"], "html", null, true); yield "\""; yield ((((($context["key"] === ($context["value"] ?? null)) || ((($context["value"] ?? null) === true) && ($context["key"] === 1))) || ((($context["value"] ?? null) === false) && ($context["key"] === 0)))) ? (" selected") : ("")); yield ((CoreExtension::inFilter($context["key"], ($context["select_values_disabled"] ?? null))) ? (" disabled") : ("")); yield ">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["val"], "html", null, true); yield "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['val'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 45 yield " </select> "; } elseif (( // line 46 ($context["type"] ?? null) == "list")) { // line 47 yield " <textarea cols=\"35\" rows=\"5\" name=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" id=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" class=\""; yield (( !($context["value_is_default"] ?? null)) ? (((($context["has_errors"] ?? null)) ? ("custom field-error") : ("custom"))) : ("")); yield "\">"; // line 48 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["value"] ?? null)); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["key"] => $context["val"]) { if (($context["key"] != "wrapper_params")) { yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["val"], "html", null, true); yield (( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 48)) ? (" ") : ("")); } ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['val'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 49 yield "</textarea> "; } // line 51 yield " "; // line 52 if ((($context["is_setup"] ?? null) && ($context["comment"] ?? null))) { // line 53 yield " <a class=\"userprefs-comment\" title=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["comment"] ?? null), "html", null, true); yield "\">"; yield PhpMyAdmin\Html\Generator::getImage("b_tblops", _gettext("Comment")); yield "</a> "; } // line 55 yield " "; // line 56 if (($context["set_value"] ?? null)) { // line 57 yield " <a class=\"set-value hide\" href=\"#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "="; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["set_value"] ?? null), "html", null, true); yield "\" title=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(_gettext("Set value: %s"), ($context["set_value"] ?? null)), "html", null, true); yield "\">"; // line 58 yield PhpMyAdmin\Html\Generator::getImage("b_edit", Twig\Extension\CoreExtension::sprintf(_gettext("Set value: %s"), ($context["set_value"] ?? null))); // line 59 yield "</a> "; } // line 61 yield " "; // line 62 if (($context["show_restore_default"] ?? null)) { // line 63 yield " <a class=\"restore-default hide\" href=\"#"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "\" title=\""; yield _gettext("Restore default value"); yield "\">"; // line 64 yield PhpMyAdmin\Html\Generator::getImage("s_reload", _gettext("Restore default value")); // line 65 yield "</a> "; } // line 67 yield " "; // line 69 yield " "; if (($context["has_errors"] ?? null)) { // line 70 yield " <dl class=\"inline_errors\"> "; // line 71 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["errors"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["error"]) { // line 72 yield " <dd>"; yield $context["error"]; yield "</dd> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 74 yield " </dl> "; } // line 76 yield " </td> "; // line 78 if ((($context["is_setup"] ?? null) && !(null === ($context["allows_customization"] ?? null)))) { // line 79 yield " <td class=\"userprefs-allow\" title=\""; yield _gettext("Allow users to customize this value"); yield "\"> <input type=\"checkbox\" name=\""; // line 80 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["path"] ?? null), "html", null, true); yield "-userprefs-allow\""; yield ((($context["allows_customization"] ?? null)) ? (" checked") : ("")); yield " aria-label=\""; yield _gettext("Allow users to customize this value"); yield "\"> </td> "; } elseif ( // line 82 ($context["is_setup"] ?? null)) { // line 83 yield " <td> </td> "; } // line 85 yield "</tr> "; return; yield ''; } /** * @codeCoverageIgnore */ public function getTemplateName() { return "config/form_display/input.twig"; } /** * @codeCoverageIgnore */ public function isTraitable() { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo() { return array ( 363 => 85, 359 => 83, 357 => 82, 348 => 80, 343 => 79, 341 => 78, 337 => 76, 333 => 74, 324 => 72, 320 => 71, 317 => 70, 314 => 69, 311 => 67, 307 => 65, 305 => 64, 299 => 63, 297 => 62, 294 => 61, 290 => 59, 288 => 58, 280 => 57, 278 => 56, 275 => 55, 267 => 53, 265 => 52, 262 => 51, 258 => 49, 224 => 48, 216 => 47, 214 => 46, 211 => 45, 197 => 43, 190 => 42, 186 => 41, 177 => 40, 175 => 39, 166 => 37, 161 => 36, 159 => 35, 148 => 34, 146 => 33, 135 => 32, 133 => 31, 131 => 30, 120 => 29, 118 => 28, 107 => 27, 105 => 26, 100 => 23, 94 => 21, 92 => 20, 89 => 19, 85 => 17, 79 => 15, 77 => 14, 74 => 13, 66 => 10, 63 => 9, 61 => 8, 54 => 6, 44 => 4, 40 => 2, 38 => 1,); } public function getSourceContext() { return new Source("", "config/form_display/input.twig", "/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/config/form_display/input.twig"); } }