same text icon style as the one that is used in msg listing. Using nbsp
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 May 2006 06:48:34 +0000 (06:48 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 May 2006 06:48:34 +0000 (06:48 +0000)
instead of regular space in order to prevent wrapping

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11112 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index 75eb55963868c1425d307d05071f329628095df4..1b7356bd37f06a6382720c7f8b0bfb608d1f4b22 100644 (file)
@@ -382,19 +382,22 @@ function show_abook_sort_button($abook_sort_order, $alt_tag, $Down, $Up ) {
      /* Figure out which image we want to use. */
     if ($abook_sort_order != $Up && $abook_sort_order != $Down) {
         $img = 'sort_none.png';
+        $text_icon = '&#9723;'; // U+25FB WHITE MEDIUM SQUARE
         $which = $Up;
     } elseif ($abook_sort_order == $Up) {
         $img = 'up_pointer.png';
+        $text_icon = '&#8679;'; // U+21E7 UPWARDS WHITE ARROW
         $which = $Down;
     } else {
         $img = 'down_pointer.png';
+        $text_icon = '&#8681;'; // U+21E9 DOWNWARDS WHITE ARROW
         $which = 8;
     }
 
     /* Now that we have everything figured out, show the actual button. */
-    return ' <a href="' . $form_url .'?abook_sort_order=' . $which .
-           '">' .
-           getIcon($icon_theme_path, $img, $alt_tag, _("Click here to change the sorting of the address list")) .
+    return '&nbsp;<a href="' . $form_url .'?abook_sort_order=' . $which .
+           '" style="text-decoration:none" title="'.$alt_tag.'">' .
+           getIcon($icon_theme_path, $img, $text_icon, $alt_tag) .
            '</a>';
 }