diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-04-24 01:38:16 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-04-24 01:38:16 -0700 |
commit | ef5ef9efc7a519f74f6bbdf8c87ba9bc16be5651 (patch) | |
tree | 4ad329820c488264a036b945ed6a81de46445469 /includes/theme.inc | |
parent | 4d3217b4db094d4808fe8b0c3caea6e3b10dd575 (diff) | |
download | brdo-ef5ef9efc7a519f74f6bbdf8c87ba9bc16be5651.tar.gz brdo-ef5ef9efc7a519f74f6bbdf8c87ba9bc16be5651.tar.bz2 |
Issue #908282 by jbrown, pillarsdotnet: add width and height attributes to increase front-end performance.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 5325ff737..9bd706209 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1760,10 +1760,10 @@ function theme_table($variables) { */ function theme_tablesort_indicator($variables) { if ($variables['style'] == "asc") { - return theme('image', array('path' => 'misc/arrow-asc.png', 'alt' => t('sort ascending'), 'title' => t('sort ascending'))); + return theme('image', array('path' => 'misc/arrow-asc.png', 'width' => 13, 'height' => 13, 'alt' => t('sort ascending'), 'title' => t('sort ascending'))); } else { - return theme('image', array('path' => 'misc/arrow-desc.png', 'alt' => t('sort descending'), 'title' => t('sort descending'))); + return theme('image', array('path' => 'misc/arrow-desc.png', 'width' => 13, 'height' => 13, 'alt' => t('sort descending'), 'title' => t('sort descending'))); } } @@ -1876,7 +1876,7 @@ function theme_more_help_link($variables) { */ function theme_feed_icon($variables) { $text = t('Subscribe to @feed-title', array('@feed-title' => $variables['title'])); - if ($image = theme('image', array('path' => 'misc/feed.png', 'alt' => $text))) { + if ($image = theme('image', array('path' => 'misc/feed.png', 'width' => 16, 'height' => 16, 'alt' => $text))) { return l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => $text))); } } |