Added text icons for sorting
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Feb 2006 17:03:21 +0000 (17:03 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Feb 2006 17:03:21 +0000 (17:03 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10843 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/message_list.tpl

index a335c183da15c45a2d60df15f9644a4c987c94ca..ff63485f019a7d9bc11da6472664b9853494e58b 100644 (file)
@@ -260,16 +260,19 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16];
             if ($sort == $aSortSupported[$iCol][0]) {
                 $newsort = $aSortSupported[$iCol][1];
                 $img = 'up_pointer.png';
+                $text_icon = '&#8657';
             } else if ($sort == $aSortSupported[$iCol][1]) {
                 $newsort = 0;
                 $img = 'down_pointer.png';
+                $text_icon = '&#8659';
             } else {
                 $newsort = $aSortSupported[$iCol][0];
                 $img = 'sort_none.png';
+                $text_icon = '[&nbsp;]';
             }
             /* Now that we have everything figured out, show the actual button. */
             echo " <a href=\"$baseurl&amp;startMessage=1&amp;srt=$newsort\">" .
-                 getIcon($icon_theme_path, $img, '&nbsp;', _("Click here to change the sorting of the message list")) . "\n" .
+                 getIcon($icon_theme_path, $img, $text_icon, _("Click here to change the sorting of the message list")) . "\n" .
                  '</a>';
         }
 ?>