From: Michael M Slusarz Date: Thu, 4 Nov 2010 22:57:05 +0000 (-0600) Subject: Move CSS icon image display code from IMP->Horde X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b7e22a3a79c5e9ff54c78bca500e366a07b2ffa8;p=horde.git Move CSS icon image display code from IMP->Horde --- diff --git a/framework/Core/js/spellchecker.js b/framework/Core/js/spellchecker.js index e3ae778d5..c95215f58 100644 --- a/framework/Core/js/spellchecker.js +++ b/framework/Core/js/spellchecker.js @@ -65,7 +65,7 @@ var SpellChecker = Class.create({ onChoose: this.setLocale.bindAsEventListener(this) }); - this.statusButton.insert({ after: new Element('SPAN', { className: 'spellcheckPopdownImg' }) }); + this.statusButton.insert({ after: new Element('SPAN', { className: 'iconImg spellcheckPopdownImg' }) }); } this.setStatus('CheckSpelling'); diff --git a/horde/themes/ie6_or_less.css b/horde/themes/ie6_or_less.css index 4fe59388d..3c7259dd6 100644 --- a/horde/themes/ie6_or_less.css +++ b/horde/themes/ie6_or_less.css @@ -17,7 +17,7 @@ } /* Fixes broken inline-block. */ -.mimeHeaders { +.iconImg, .mimeHeaders, .treeImg { zoom: 1; *display: inline; } diff --git a/horde/themes/ie7.css b/horde/themes/ie7.css index f8f87a4e5..5fec04839 100644 --- a/horde/themes/ie7.css +++ b/horde/themes/ie7.css @@ -3,7 +3,7 @@ */ /* Fixes broken inline-block. */ -.mimeHeaders { +.iconImg, .mimeHeaders, .treeImg { zoom: 1; *display: inline; } diff --git a/horde/themes/screen.css b/horde/themes/screen.css index 3c58cd378..97c736762 100644 --- a/horde/themes/screen.css +++ b/horde/themes/screen.css @@ -38,6 +38,17 @@ input[type=image] { background: transparent; } +.iconImg { + background-color: transparent; + background-position: center right; + background-repeat: no-repeat; + display: -moz-inline-stack; + display: inline-block; + height: 16px; + vertical-align: bottom; + width: 16px; +} + ins { background: #cfc; } @@ -1337,6 +1348,9 @@ div.GrowlerNoticeExit:hover { .contextSelected { background: #ffa; } +.contextMenu .iconImg { + vertical-align: top; +} /* Social Media Related CSS */ .hordeSmStreamstory { diff --git a/horde/themes/webkit.css b/horde/themes/webkit.css index 321105941..37933e4c1 100644 --- a/horde/themes/webkit.css +++ b/horde/themes/webkit.css @@ -7,7 +7,7 @@ height: 20px; } -.treeRow img { +.iconImg, .treeRow img { vertical-align: middle; } diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 643dec3a0..d29dbfceb 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -119,7 +119,7 @@ var DimpCompose = { opts: opts }; - $(opts.label).insert({ after: new Element('SPAN', { className: 'popdownImg' }).observe('click', function(e) { if (!this.disabled) { this.knl[id].knl.show(); this.knl[id].knl.ignoreClick(e); e.stop(); } }.bindAsEventListener(this)) }); + $(opts.label).insert({ after: new Element('SPAN', { className: 'iconImg popdownImg' }).observe('click', function(e) { if (!this.disabled) { this.knl[id].knl.show(); this.knl[id].knl.ignoreClick(e); e.stop(); } }.bindAsEventListener(this)) }); }, setPopdownLabel: function(id, s, l) diff --git a/imp/js/dimpbase.js b/imp/js/dimpbase.js index 342002473..d384f4689 100644 --- a/imp/js/dimpbase.js +++ b/imp/js/dimpbase.js @@ -411,7 +411,7 @@ var DimpBase = { r.subjectdata += ptr.elt; } else { if (!ptr.elt) { - ptr.elt = '
'; + ptr.elt = '
'; } r.status += ptr.elt; @@ -1047,7 +1047,7 @@ var DimpBase = { $('ctx_flag').insert( a.insert( - new Element('SPAN', { className: 'contextImg' }).addClassName(f.c.escapeHTML()).setStyle(style) + new Element('SPAN', { className: 'iconImg' }).addClassName(f.c.escapeHTML()).setStyle(style) ).insert( f.l.escapeHTML() ) @@ -2582,7 +2582,7 @@ var DimpBase = { cname += ' unsubFolder'; } - div = new Element('SPAN', { className: 'iconSpan' }); + div = new Element('SPAN', { className: 'iconImgSidebar' }); if (ob.i) { div.setStyle({ backgroundImage: 'url("' + ob.i + '")' }); } diff --git a/imp/js/mailbox-dimp.js b/imp/js/mailbox-dimp.js index ae181478a..0775ca663 100644 --- a/imp/js/mailbox-dimp.js +++ b/imp/js/mailbox-dimp.js @@ -14,7 +14,7 @@ DimpBase.msglist_template_horiz = '
' + '
' + - '
' + + '
' + '#{status}' + '
' + '
#{from}
' + @@ -25,8 +25,8 @@ DimpBase.msglist_template_horiz = DimpBase.msglist_template_vert = '
' + - '
' + - '
' + + '
' + + '
' + '#{status}' + '
' + '
' + diff --git a/imp/js/search.js b/imp/js/search.js index f527bb198..ed6a67154 100644 --- a/imp/js/search.js +++ b/imp/js/search.js @@ -246,7 +246,7 @@ var ImpSearch = { div2.insert(node); }); - div2.insert(new Element('A', { href: '#', className: 'searchuiImg searchuiDelete' })); + div2.insert(new Element('A', { href: '#', className: 'iconImg searchuiImg searchuiDelete' })); $('search_criteria_add').clear(); $('search_criteria').insert(div); @@ -306,7 +306,7 @@ var ImpSearch = { var tmp = [ new Element('EM').insert(this.getLabel(id)), - new Element('SPAN').insert(new Element('SPAN')).insert(new Element('A', { href: '#', className: 'calendarPopup', title: this.text.dateselection }).insert(new Element('SPAN', { className: 'searchuiImg searchuiCalendar' }))) + new Element('SPAN').insert(new Element('SPAN')).insert(new Element('A', { href: '#', className: 'calendarPopup', title: this.text.dateselection }).insert(new Element('SPAN', { className: 'iconImg searchuiImg searchuiCalendar' }))) ]; this.replaceDate(this.insertCriteria(tmp), id, data); }, diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 88d40562f..8bc136a57 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -667,7 +667,7 @@ class IMP_Contents if ($is_atc && (is_null($part['bytes']) || $part['bytes'])) { if ($mask & self::SUMMARY_DOWNLOAD) { - $part['download'] = $this->linkView($mime_part, 'download_attach', '', array('class' => 'downloadAtc', 'dload' => true, 'jstext' => _("Download"))); + $part['download'] = $this->linkView($mime_part, 'download_attach', '', array('class' => 'iconImg downloadAtc', 'dload' => true, 'jstext' => _("Download"))); } elseif ($mask & self::SUMMARY_DOWNLOAD_NOJS) { $part['download'] = $this->urlView($mime_part, 'download_attach', array('dload' => true)); } @@ -680,7 +680,7 @@ class IMP_Contents ($part['bytes'] > 204800)) { $viewer = $GLOBALS['injector']->getInstance('IMP_Injector_Factory_MimeViewer')->create($mime_part, $this, $mime_type); if (!$viewer->getMetadata('compressed')) { - $part['download_zip'] = $this->linkView($mime_part, 'download_attach', null, array('class' => 'downloadZipAtc', 'dload' => true, 'jstext' => sprintf(_("Download %s in .zip Format"), $mime_part->getDescription(true)), 'params' => array('zip' => 1))); + $part['download_zip'] = $this->linkView($mime_part, 'download_attach', null, array('class' => 'iconImg downloadZipAtc', 'dload' => true, 'jstext' => sprintf(_("Download %s in .zip Format"), $mime_part->getDescription(true)), 'params' => array('zip' => 1))); } } @@ -689,7 +689,7 @@ class IMP_Contents if (($mask & self::SUMMARY_IMAGE_SAVE) && $GLOBALS['registry']->hasMethod('images/selectGalleries') && ($mime_part->getPrimaryType() == 'image')) { - $part['img_save'] = Horde::link('#', _("Save Image in Gallery"), 'saveImgAtc', null, Horde::popupJs(Horde::url('saveimage.php'), array('params' => array('mbox' => $this->_mailbox, 'uid' => $this->_uid, 'id' => $id), 'height' => 200, 'width' => 450, 'urlencode' => true)) . 'return false;') . ''; + $part['img_save'] = Horde::link('#', _("Save Image in Gallery"), 'iconImg saveImgAtc', null, Horde::popupJs(Horde::url('saveimage.php'), array('params' => array('mbox' => $this->_mailbox, 'uid' => $this->_uid, 'id' => $id), 'height' => 200, 'width' => 450, 'urlencode' => true)) . 'return false;') . ''; } /* Add print link? */ @@ -697,8 +697,8 @@ class IMP_Contents ($mask & self::SUMMARY_PRINT_STUB)) && $this->canDisplay($id, self::RENDER_FULL)) { $part['print'] = ($mask & self::SUMMARY_PRINT) - ? $this->linkViewJS($mime_part, 'print_attach', '', array('css' => 'printAtc', 'jstext' => _("Print"), 'onload' => 'IMP.printWindow', 'params' => $param_array)) - : Horde::link('#', _("Print"), 'printAtc', null, null, null, null, array('mimeid' => $id)) . ''; + ? $this->linkViewJS($mime_part, 'print_attach', '', array('css' => 'iconImg printAtc', 'jstext' => _("Print"), 'onload' => 'IMP.printWindow', 'params' => $param_array)) + : Horde::link('#', _("Print"), 'iconImg printAtc', null, null, null, null, array('mimeid' => $id)) . ''; } /* Strip Attachment? Allow stripping of base parts other than the @@ -710,9 +710,9 @@ class IMP_Contents (strpos($id, '.') === false)) { if ($mask & self::SUMMARY_STRIP_LINK) { $url = Horde::selfUrl(true)->remove(array('actionID', 'imapid', 'uid'))->add(array('actionID' => 'strip_attachment', 'imapid' => $id, 'uid' => $this->_uid, 'message_token' => Horde::getRequestToken('imp.impcontents'))); - $part['strip'] = Horde::link($url, _("Strip Attachment"), 'deleteImg', null, 'return window.confirm(' . Horde_Serialize::serialize(_("Are you sure you wish to PERMANENTLY delete this attachment?"), Horde_Serialize::JSON, 'UTF-8') . ')') . ''; + $part['strip'] = Horde::link($url, _("Strip Attachment"), 'iconImg deleteImg', null, 'return window.confirm(' . Horde_Serialize::serialize(_("Are you sure you wish to PERMANENTLY delete this attachment?"), Horde_Serialize::JSON, 'UTF-8') . ')') . ''; } else { - $part['strip'] = Horde::link('#', _("Strip Attachment"), 'deleteImg stripAtc', null, null, null, null, array('mimeid' => $id)) . ''; + $part['strip'] = Horde::link('#', _("Strip Attachment"), 'iconImg deleteImg stripAtc', null, null, null, null, array('mimeid' => $id)) . ''; } } diff --git a/imp/lib/Imap/Flags.php b/imp/lib/Imap/Flags.php index d81d73489..513638d45 100644 --- a/imp/lib/Imap/Flags.php +++ b/imp/lib/Imap/Flags.php @@ -415,7 +415,7 @@ class IMP_Imap_Flags */ protected function _getDiv($c, $l) { - return '
'; + return '
'; } /** diff --git a/imp/message.php b/imp/message.php index 6ab8b38ce..863c4f67f 100644 --- a/imp/message.php +++ b/imp/message.php @@ -318,12 +318,12 @@ if ($subject = $mime_headers->getValue('subject')) { switch ($priority = $imp_hdr_ui->getPriority($mime_headers)) { case 'high': $basic_headers['priority'] = _("Priority"); - $display_headers['priority'] = '
 ' . _("High"); + $display_headers['priority'] = '
 ' . _("High"); break; case 'low': $basic_headers['priority'] = _("Priority"); - $display_headers['priority'] = '
 ' . _("Low"); + $display_headers['priority'] = '
 ' . _("Low"); break; } diff --git a/imp/templates/dimp/compose/compose-base.html b/imp/templates/dimp/compose/compose-base.html index bb42ada2f..e17de5711 100644 --- a/imp/templates/dimp/compose/compose-base.html +++ b/imp/templates/dimp/compose/compose-base.html @@ -2,7 +2,7 @@
Loading...
@@ -483,8 +483,8 @@ function _simpleButton($id, $text, $image, $nodisplay = false)