From 5e4417425db48df9f2275a8ebc2b7a3dc222834d Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 13 Sep 2017 01:42:34 +0000 Subject: [PATCH] Add trailing text display to edit list widget types git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14720 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/edit_list_associative_widget.tpl | 2 ++ templates/default/edit_list_associative_widget_list_style.tpl | 2 ++ templates/default/edit_list_widget.tpl | 2 ++ templates/default/edit_list_widget_list_style.tpl | 2 ++ 4 files changed, 8 insertions(+) diff --git a/templates/default/edit_list_associative_widget.tpl b/templates/default/edit_list_associative_widget.tpl index e9196e55..4077ed76 100644 --- a/templates/default/edit_list_associative_widget.tpl +++ b/templates/default/edit_list_associative_widget.tpl @@ -84,6 +84,8 @@ if ($use_input_widget) { else echo $input_value_widget . '
'; } +if (!empty($trailing_text)) + echo ($trailing_text_small ? '' : '') . ($trailing_text_is_html ? $trailing_text : sm_encode_html_special_chars($trailing_text)) . ($trailing_text_small ? '' : '') . '
'; // Construct the select input showing all current values in the list diff --git a/templates/default/edit_list_associative_widget_list_style.tpl b/templates/default/edit_list_associative_widget_list_style.tpl index 611604b3..1d6b0e41 100644 --- a/templates/default/edit_list_associative_widget_list_style.tpl +++ b/templates/default/edit_list_associative_widget_list_style.tpl @@ -85,6 +85,8 @@ if ($use_input_widget) { else echo $input_value_widget . '
'; } +if (!empty($trailing_text)) + echo ($trailing_text_small ? '' : '') . ($trailing_text_is_html ? $trailing_text : sm_encode_html_special_chars($trailing_text)) . ($trailing_text_small ? '' : '') . '
'; // Construct the select input showing all current values in the list diff --git a/templates/default/edit_list_widget.tpl b/templates/default/edit_list_widget.tpl index 6fa46b3f..4c2c01b2 100644 --- a/templates/default/edit_list_widget.tpl +++ b/templates/default/edit_list_widget.tpl @@ -38,6 +38,8 @@ extract($t); if ($use_input_widget) echo _("Add") . ' ' . $input_widget . '
'; +if (!empty($trailing_text)) + echo ($trailing_text_small ? '' : '') . ($trailing_text_is_html ? $trailing_text : sm_encode_html_special_chars($trailing_text)) . ($trailing_text_small ? '' : '') . '
'; echo $select_widget; diff --git a/templates/default/edit_list_widget_list_style.tpl b/templates/default/edit_list_widget_list_style.tpl index 2cbd655f..20baf881 100644 --- a/templates/default/edit_list_widget_list_style.tpl +++ b/templates/default/edit_list_widget_list_style.tpl @@ -40,6 +40,8 @@ echo '
'; if ($use_input_widget) echo _("Add") . ' ' . $input_widget . '
'; +if (!empty($trailing_text)) + echo ($trailing_text_small ? '' : '') . ($trailing_text_is_html ? $trailing_text : sm_encode_html_special_chars($trailing_text)) . ($trailing_text_small ? '' : '') . '
'; echo ''; -- 2.25.1