commit abde725f0c71db1200f054effe54a718174cbfe0 Author: Joel Pittet Date: Wed Dec 4 18:00:15 2013 -0800 fix table sort indicated and remove image template diff --git a/core/modules/system/templates/image.html.twig b/core/modules/system/templates/image.html.twig deleted file mode 100644 index b6b238a..0000000 --- a/core/modules/system/templates/image.html.twig +++ /dev/null @@ -1,14 +0,0 @@ -{# -/** - * @file - * Default theme implementation of an image. - * - * Available variables: - * - attributes: HTML attributes for the img tag. - * - * @see template_preprocess_image() - * - * @ingroup themeable - */ -#} - diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index ea523ad..c493254 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -120,8 +120,24 @@ function seven_preprocess_admin_block_content(&$variables) { * gray. */ function seven_preprocess_tablesort_indicator(&$variables) { - $variables['uri'] = drupal_get_path('theme', 'seven') . '/images/arrow-' . ($variables['style'] == 'asc' ? 'asc' : 'desc') . '.png'; - $variables['attributes']['src'] = file_create_url($variables['uri']); + $theme_path = drupal_get_path('theme', 'seven'); + if ($variables['style'] == 'asc') { + $variables['uri'] = $theme_path . '/images/arrow-asc.png'; + $text = t('Sort ascending'); + } + else { + $variables['uri'] = $theme_path . '/images/arrow-desc.png'; + $text = t('Sort descending'); + } + + $variables['image'] = array( + '#theme' => 'image', + '#uri' => $variables['uri'], + '#width' => 9, + '#height' => 5, + '#alt' => $text, + '#title' => $text, + ); } /**