From 82c463ceadbfc18631a1f0a8292cfac10987abd9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 18 May 2007 06:30:07 +0000 Subject: [PATCH] Add ability to collapse headers into one line; works with but is unrelated to preview pane functionality. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12408 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default_advanced/read_headers.tpl | 121 ++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 templates/default_advanced/read_headers.tpl diff --git a/templates/default_advanced/read_headers.tpl b/templates/default_advanced/read_headers.tpl new file mode 100644 index 00000000..d26cf745 --- /dev/null +++ b/templates/default_advanced/read_headers.tpl @@ -0,0 +1,121 @@ + +
+ + + + +
+
+ + %s From %s On %s"), $subject, $from, $date); + $expand_link = str_replace('&expand_header=0', '', $PHP_SELF) . '&expand_header=1'; + + echo ''; + + // show normal/full/expanded header listing + } else { + + $collapse_link = str_replace('&expand_header=1', '', $PHP_SELF) . '&expand_header=0'; + $first_time = TRUE; + foreach ($headers_to_display as $field_name=>$value) { + if (empty($value)) { + # Skip enpty headers + continue; + } + ?> + + + + + +
' + . '' + . getIcon($icon_theme_path, 'plus.png', '-', _("Expand Header")) + . ' ' + . $reduced_header + . '
+' + . getIcon($icon_theme_path, 'minus.png', '-', _("Collapse Header")) + . ' '; + echo $field_name . ':'; + $first_time = FALSE; +?> + + +
+ + + + +
+
+
-- 2.25.1