Changes for new icon theming
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Feb 2006 00:04:56 +0000 (00:04 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Feb 2006 00:04:56 +0000 (00:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10782 7612ce4b-ef26-0410-bec9-ea0150e637f0

13 files changed:
functions/addressbook.php
images/themes/default/blank.png [moved from images/blank.png with 100% similarity]
images/themes/default/delitem.png [moved from images/delitem.png with 100% similarity]
images/themes/default/down_pointer.png [moved from images/down_pointer.png with 100% similarity]
images/themes/default/draft.png [moved from images/draft.png with 100% similarity]
images/themes/default/folder.png [moved from images/folder.png with 100% similarity]
images/themes/default/folder_noinf.png [moved from images/folder_noinf.png with 100% similarity]
images/themes/default/inbox.png [moved from images/inbox.png with 100% similarity]
images/themes/default/minus.png [moved from images/minus.png with 100% similarity]
images/themes/default/plus.png [moved from images/plus.png with 100% similarity]
images/themes/default/senti.png [moved from images/senti.png with 100% similarity]
images/themes/default/sort_none.png [moved from images/sort_none.png with 100% similarity]
images/themes/default/up_pointer.png [moved from images/up_pointer.png with 100% similarity]

index d35e9ee..0e14b97 100644 (file)
@@ -20,8 +20,9 @@ if (!defined('SM_PATH'))  {
     define('SM_PATH','../');
 }
 
-/* make sure that display_messages.php is loaded */
+/* required includes */
 include_once(SM_PATH . 'functions/display_messages.php');
+include_once(SM_PATH . 'templates/util_global.php');
 
 global $addrbook_dsn, $addrbook_global_dsn;
 
@@ -382,10 +383,11 @@ function get_abook_sort() {
  * @param string $alt_tag alt tag value (string visible to text only browsers)
  * @param integer $Down sort value when list is sorted ascending
  * @param integer $Up sort value when list is sorted descending
+ * @param string $icon_theme_path Path to user's current icon theme
  * @return string html code with sorting images and urls
  */
 function show_abook_sort_button($abook_sort_order, $alt_tag, $Down, $Up ) {
-    global $form_url;
+    global $form_url, $icon_theme_path;
 
      /* Figure out which image we want to use. */
     if ($abook_sort_order != $Up && $abook_sort_order != $Down) {
@@ -399,11 +401,11 @@ function show_abook_sort_button($abook_sort_order, $alt_tag, $Down, $Up ) {
         $which = 8;
     }
 
-      /* Now that we have everything figured out, show the actual button. */
-    return ' <a href="' . $form_url .'?abook_sort_order=' . $which
-         . '"><img src="../images/' . $img
-         . '" border="0" width="12" height="10" alt="' . $alt_tag . '" title="'
-         . _("Click here to change the sorting of the address list") .'" /></a>';
+    /* 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")) .
+           '</a>';
 }