From ce06d32dd81e3a9c5c5c8a5e27562b5c55b49c81 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 17 Jun 2010 19:08:00 +0000 Subject: - UI unification - Added button to hide/unhide the preview pane (#1484215) --- program/localization/en_US/labels.inc | 2 ++ program/localization/pl_PL/labels.inc | 2 ++ program/steps/mail/func.inc | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'program') diff --git a/program/localization/en_US/labels.inc b/program/localization/en_US/labels.inc index 20f9f7ecb..34de9159b 100644 --- a/program/localization/en_US/labels.inc +++ b/program/localization/en_US/labels.inc @@ -142,6 +142,7 @@ $labels['markunread'] = 'As unread'; $labels['markflagged'] = 'As flagged'; $labels['markunflagged'] = 'As unflagged'; $labels['messageactions'] = 'More actions...'; +$labels['preview'] = 'Preview'; $labels['select'] = 'Select'; $labels['all'] = 'All'; @@ -246,6 +247,7 @@ $labels['email'] = 'E-Mail'; $labels['addcontact'] = 'Add new contact'; $labels['editcontact'] = 'Edit contact'; +$labels['contacts'] = 'Contacts'; $labels['edit'] = 'Edit'; $labels['cancel'] = 'Cancel'; diff --git a/program/localization/pl_PL/labels.inc b/program/localization/pl_PL/labels.inc index 35b9d61dd..4f2646b21 100644 --- a/program/localization/pl_PL/labels.inc +++ b/program/localization/pl_PL/labels.inc @@ -345,5 +345,7 @@ $labels['japanese'] = 'japoński'; $labels['korean'] = 'koreański'; $labels['chinese'] = 'chiński'; $labels['folderactions'] = 'Działania na folderach...'; +$labels['contacts'] = 'Kontakty'; +$labels['preview'] = 'Podgląd'; ?> diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index a63b50907..1614f4ccc 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -407,14 +407,15 @@ function rcmail_message_list_head($attrib, $a_show_cols) */ function rcmail_messagecontent_frame($attrib) { - global $OUTPUT; + global $OUTPUT, $RCMAIL; if (empty($attrib['id'])) $attrib['id'] = 'rcmailcontentwindow'; $attrib['name'] = $attrib['id']; - $OUTPUT->set_env('contentframe', $attrib['id']); + if ($RCMAIL->config->get('preview_pane')) + $OUTPUT->set_env('contentframe', $attrib['id']); $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); return html::iframe($attrib); -- cgit v1.2.3