parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/2fa_secret/2fa_secret.html.twig", 1);
$this->blocks = array(
'input' => array($this, 'block_input'),
);
}
protected function doGetParent(array $context)
{
return "forms/field.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_input($context, array $blocks = array())
{
// line 4
echo "
";
// line 5
$this->getAttribute(($context["admin"] ?? null), "get2FAData", array(0 => ($context["value"] ?? null)), "method");
// line 6
echo " ";
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "json_response", array());
// line 7
echo " ";
if (($this->getAttribute(($context["data"] ?? null), "status", array()) == "success")) {
// line 8
echo "
env, $this->getAttribute(($context["data"] ?? null), "image", array()), "html", null, true);
echo "\" />
";
// line 11
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.2FA_SECRET"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "secret", array()), "html", null, true);
echo "
env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->fieldNameFilter((($context["scope"] ?? null) . $this->getAttribute(($context["field"] ?? null), "name", array()))), "html", null, true);
echo "\" data-2fa-value value=\"";
echo twig_escape_filter($this->env, twig_replace_filter($this->getAttribute(($context["data"] ?? null), "secret", array()), array(" " => "")), "html", null, true);
echo "\" />
";
} else {
// line 19
echo "
";
// line 20
echo twig_escape_filter($this->env, $this->getAttribute(($context["data"] ?? null), "message", array()), "html", null, true);
echo "
";
}
// line 23
echo "
";
}
public function getTemplateName()
{
return "forms/fields/2fa_secret/2fa_secret.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 82 => 23, 76 => 20, 73 => 19, 65 => 16, 58 => 14, 50 => 11, 45 => 9, 42 => 8, 39 => 7, 36 => 6, 34 => 5, 31 => 4, 28 => 3, 11 => 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("{% extends \"forms/field.html.twig\" %}
{% block input %}
{% endblock %}
", "forms/fields/2fa_secret/2fa_secret.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/forms/fields/2fa_secret/2fa_secret.html.twig");
}
}