mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 11:10:18 +02:00
[ticket/17100] Refactor code to be more reusable
PHPBB3-17100
This commit is contained in:
@@ -51,15 +51,8 @@
|
||||
<dl>
|
||||
<dt><label for="{options.KEY}">{options.TITLE}{L_COLON}</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
|
||||
<dd>
|
||||
{% if options.CONTENT.tag %}
|
||||
{% if options.CONTENT.tag == 'input' %}
|
||||
{{ form_macros.input(options.CONTENT) }}
|
||||
{% elseif options.CONTENT.tag == 'dimension' %}
|
||||
{{ form_macros.dimension(options.CONTENT) }}
|
||||
{% elseif options.CONTENT.tag == 'radio' %}
|
||||
{{ form_macros.radio_buttons(options.CONTENT) }}
|
||||
{% endif %}
|
||||
{% if options.CONTENT.append %}{{ options.CONTENT.append }}{% endif %}
|
||||
{% if options.CONTENT is iterable %}
|
||||
{{ form_macros.build_template(options.CONTENT)}}
|
||||
{% else %}
|
||||
{options.CONTENT}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user