X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fmessage_list.tpl;h=01aab28b3a7600c3726f6aac6474206b90c0441c;hp=cb04f12a1398f2c28492d5003598b16ccda61e4a;hb=069a91d353789f95214d40e7f38b4cd0cb240dd7;hpb=2bca4fda62efe475f73eb72f7c41e9df16503e15 diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index cb04f12a..01aab28b 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -3,7 +3,7 @@ /** * message_list.tpl * - * Copyright (c) 1999-2004 The SquirrelMail Project Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Template for viewing a messages list @@ -12,6 +12,7 @@ * @package squirrelmail */ +/** add required includes */ include_once(SM_PATH . 'templates/util_message_list.php'); /* retrieve the template vars */ @@ -75,22 +76,30 @@ if (!($javascript_on && $fancy_index_highlite)) { } } +/** + * Check usage of images for attachments, flags and priority + */ +$bIcons = ($use_icons && $icon_theme) ? true : false; + +/** + * Location of icon images + */ +if ($bIcons) { + $sImageLocation = SM_PATH . 'images/themes/' . $icon_theme . '/'; +} + // set this to an empty string to turn off extra // highlighting of checked rows // //$clickedColor = ''; -if (!empty($color[16])) - $clickedColor = $color[16]; -else - $clickedColor = $color[2]; - +$clickedColor = (empty($color[16])) ? $color[2] : $color[16]; ?>