first commit
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
/* forms/fields/email/email.html.twig */
|
||||
class __TwigTemplate_a3450616240a857973b145f04cd648c5e821baa9a4c71c6d0a63af5802122bfd extends Twig_Template
|
||||
{
|
||||
public function __construct(Twig_Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("forms/field.html.twig", "forms/fields/email/email.html.twig", 1);
|
||||
$this->blocks = array(
|
||||
'input_attributes' => array($this, 'block_input_attributes'),
|
||||
);
|
||||
}
|
||||
|
||||
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_attributes($context, array $blocks = array())
|
||||
{
|
||||
// line 4
|
||||
echo " type=\"email\"
|
||||
";
|
||||
// line 5
|
||||
if (twig_in_filter($this->getAttribute(($context["field"] ?? null), "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
|
||||
echo "multiple=\"multiple\"";
|
||||
}
|
||||
// line 6
|
||||
echo " ";
|
||||
$this->displayParentBlock("input_attributes", $context, $blocks);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "forms/fields/email/email.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 38 => 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_attributes %}
|
||||
type=\"email\"
|
||||
{% if field.multiple in ['on', 'true', 1] %}multiple=\"multiple\"{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}", "forms/fields/email/email.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/form/templates/forms/fields/email/email.html.twig");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user