From eede7159d83d8b30022965d7f6c4896dc3e7867a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 30 Oct 2009 15:17:16 -0600 Subject: [PATCH] Have 1 help link for the entire compose page --- imp/compose.php | 8 +------- imp/templates/compose/compose.html | 22 +++++----------------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/imp/compose.php b/imp/compose.php index a54a9bdcb..61d8fdc67 100644 --- a/imp/compose.php +++ b/imp/compose.php @@ -916,10 +916,9 @@ if ($redirect) { if ($conf['user']['allow_folders'] && !$readonly_drafts) { $t->set('save_draft_ak', Horde::getAccessKeyAndTitle(_("Save _Draft"))); } - $t->set('help_buttons', Horde_Help::link('imp', 'compose-buttons')); + $t->set('help', Horde_Help::link('imp', 'compose-buttons')); $t->set('di_locked', $prefs->isLocked('default_identity')); if ($t->get('di_locked')) { - $t->set('help_compose-from', Horde_Help::link('imp', 'compose-from')); $t->set('fromaddr_locked', $prefs->isLocked('from_addr')); try { $t->set('from', htmlspecialchars($identity->getFromLine(null, Horde_Util::getFormData('from')))); @@ -932,7 +931,6 @@ if ($redirect) { } else { $select_list = $identity->getSelectList(); $t->set('identity_label', Horde::label('identity', _("_Identity"))); - $t->set('help_compose-from', Horde_Help::link('imp', 'compose-identity')); $t->set('last_identity', $identity->getDefault()); $t->set('count_select_list', count($select_list) > 1); if (count($select_list) > 1) { @@ -999,7 +997,6 @@ if ($redirect) { $addr['multiple'] = false; $addr['input_tabindex'] = ++$tabindex; $addr['input_value'] = htmlspecialchars($header[$val]); - $addr['help_compose'] = Horde_Help::link('imp', 'compose-' . $val); } $address_array[] = $addr; } @@ -1020,7 +1017,6 @@ if ($redirect) { $charset_array[] = array('value' => $charset, 'selected' => (strtolower($charset) == strtolower($encoding)), 'label' => $label); } $t->set('charset_array', $charset_array); - $t->set('help_compose_charset', Horde_Help::link('imp', 'compose-charset')); } if ($t->get('set_priority')) { $t->set('priority_label', Horde::label('priority', _("_Priority"))); @@ -1039,7 +1035,6 @@ if ($redirect) { $priority_option[] = array('val' => $key, 'label' => $val, 'selected' => ($priority == $key)); } $t->set('pri_opt', $priority_option); - $t->set('help_priority', Horde_Help::link('imp', 'compose-priority')); } $t->set('stationery', !empty($stationery_list)); @@ -1084,7 +1079,6 @@ if ($redirect) { ); } $t->set('compose_options', $compose_options); - $t->set('help_options', Horde_Help::link('imp', 'compose-options')); $t->set('ssm', ($conf['user']['allow_folders'] && !$prefs->isLocked('save_sent_mail'))); if ($t->get('ssm')) { diff --git a/imp/templates/compose/compose.html b/imp/templates/compose/compose.html index 7717e5573..5252f7d96 100644 --- a/imp/templates/compose/compose.html +++ b/imp/templates/compose/compose.html @@ -4,7 +4,10 @@ -

+

+
+ +


@@ -22,7 +25,6 @@ -   @@ -48,7 +50,6 @@ -   @@ -56,11 +57,9 @@   -   - -   @@ -83,7 +81,6 @@
-  
@@ -93,7 +90,6 @@ -   @@ -108,7 +104,6 @@ -   @@ -124,7 +119,6 @@ -   @@ -155,7 +149,6 @@ -   @@ -211,7 +204,6 @@ -   @@ -223,7 +215,6 @@ -   @@ -234,7 +225,6 @@ checked="checked" /> -   @@ -286,7 +276,6 @@ -   @@ -299,7 +288,6 @@ -   @@ -311,7 +299,7 @@
- Current Attachments (Total Size: KB / ) + Current Attachments (Total Size: KB / )
-- 2.11.0