From: Dr. Tobias Quathamer Date: Sat, 6 Jan 2024 19:00:33 +0000 (+0100) Subject: Clean up smarty templates. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6036b8266a1bb895104fccdabbc780ff1e3c23f;p=friendica.git Clean up smarty templates. This simplifies some logic in if-conditions, because smarty just returns an empty string for undefined variables. Also, this commit removes unnecessary values from HTML input attributes. --- diff --git a/view/templates/field_checkbox.tpl b/view/templates/field_checkbox.tpl index b1e6540d88..caf7a050cd 100644 --- a/view/templates/field_checkbox.tpl +++ b/view/templates/field_checkbox.tpl @@ -1,7 +1,7 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_input.tpl b/view/templates/field_input.tpl index 3455891b9d..d5c9c078db 100644 --- a/view/templates/field_input.tpl +++ b/view/templates/field_input.tpl @@ -1,7 +1,7 @@ - +
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_intcheckbox.tpl b/view/templates/field_intcheckbox.tpl index 0bb6ef2c54..b039083301 100644 --- a/view/templates/field_intcheckbox.tpl +++ b/view/templates/field_intcheckbox.tpl @@ -1,8 +1,8 @@ - +
- + {{if $field.4}} {{$field.4 nofilter}} {{/if}} diff --git a/view/templates/field_openid.tpl b/view/templates/field_openid.tpl index 033a1f8e50..4a30d9e780 100644 --- a/view/templates/field_openid.tpl +++ b/view/templates/field_openid.tpl @@ -1,6 +1,6 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_password.tpl b/view/templates/field_password.tpl index a0ac6a735f..9831c79b87 100644 --- a/view/templates/field_password.tpl +++ b/view/templates/field_password.tpl @@ -1,6 +1,6 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_select.tpl b/view/templates/field_select.tpl index f02110628e..fff54424f0 100644 --- a/view/templates/field_select.tpl +++ b/view/templates/field_select.tpl @@ -4,9 +4,9 @@ diff --git a/view/templates/field_textarea.tpl b/view/templates/field_textarea.tpl index 797556ea9f..16feaaa736 100644 --- a/view/templates/field_textarea.tpl +++ b/view/templates/field_textarea.tpl @@ -1,7 +1,7 @@
- + {{if $field.3}} {{$field.3 nofilter}} {{/if}} diff --git a/view/templates/field_themeselect.tpl b/view/templates/field_themeselect.tpl index 60676e5d1f..d8de748dc6 100644 --- a/view/templates/field_themeselect.tpl +++ b/view/templates/field_themeselect.tpl @@ -6,7 +6,7 @@ {{if $field.3}} diff --git a/view/theme/frio/templates/field_checkbox.tpl b/view/theme/frio/templates/field_checkbox.tpl index 2fd4641c33..448b2b8eea 100644 --- a/view/theme/frio/templates/field_checkbox.tpl +++ b/view/theme/frio/templates/field_checkbox.tpl @@ -1,8 +1,8 @@
- -