From 603ffc2bc071b50851dc9aa5df673a6fac7b783e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 15 Jan 2009 01:00:12 -0700 Subject: [PATCH] Move some more graphics into CSS files. --- imp/templates/index/index.inc | 143 +++++++++++++++++--------------------- imp/themes/screen-dimp.css | 101 +++++++++++++++++++++++++-- imp/themes/silver/screen-dimp.css | 79 +++++++++++++++++++++ 3 files changed, 240 insertions(+), 83 deletions(-) diff --git a/imp/templates/index/index.inc b/imp/templates/index/index.inc index 4524ffad7..30bd697f6 100644 --- a/imp/templates/index/index.inc +++ b/imp/templates/index/index.inc @@ -1,17 +1,6 @@ getImageDir('horde'); -$mailseen = Horde::img('mail_seen.png'); -$mailunseen = Horde::img('mail_unseen.png'); -$delete = Horde::img('delete.png'); -$folder_create = Horde::img('folders/folder_create.png'); -$folder_edit = Horde::img('folders/folder_edit.png'); -$forward = Horde::img('forward.png'); -$flagged = Horde::img('mail_flagged.png'); -$clearflag = Horde::img('mail_clearflag.png'); -$preview = Horde::img('preview.png'); -$tick = Horde::img('tick.png'); -$newwin = Horde::img('newwin.png', _("Open in new window")); // Thread images $thread_imgs = IMP_IMAP_Thread::getImageUrls(); @@ -36,9 +25,7 @@ $has_whitelist = $registry->hasMethod('mail/whitelistFrom'); $sidebar_width = max((int)$prefs->getValue('sidebar_width') - 50, 150) . 'px'; // Quota information -$quota_img = (isset($_SESSION['imp']['quota']) && is_array($_SESSION['imp']['quota'])) - ? Horde::img('quotauncover.gif', '', array('width' => 0, 'height' => 10)) - : null; +$show_quota = (isset($_SESSION['imp']['quota']) && is_array($_SESSION['imp']['quota'])); // Small utility functions to simplify creating dimpactions buttons. // As of right now, we don't show text only links. @@ -164,16 +151,16 @@ function _simpleButton($id, $text, $image, $imagedir = null) <?php echo $menu_item['text'] ?> - +
  • - +
  • - +
    - +
    @@ -181,7 +168,7 @@ function _simpleButton($id, $text, $image, $imagedir = null)
    - 'folderLoading', 'style' => 'display:none')) ?> +
    @@ -272,12 +259,12 @@ function _simpleButton($id, $text, $image, $imagedir = null)