Commit bc7e09a4 authored by alexpott's avatar alexpott
Browse files

Issue #2006952 by thedavidmeister: Replace theme() with drupal_render() in seven.theme.

parent 1e0200d1
...@@ -118,14 +118,26 @@ function seven_admin_block_content($variables) { ...@@ -118,14 +118,26 @@ function seven_admin_block_content($variables) {
* gray. * gray.
*/ */
function seven_tablesort_indicator($variables) { function seven_tablesort_indicator($variables) {
$style = $variables['style'];
$theme_path = drupal_get_path('theme', 'seven'); $theme_path = drupal_get_path('theme', 'seven');
if ($style == 'asc') {
return theme('image', array('uri' => $theme_path . '/images/arrow-asc.png', 'alt' => t('sort ascending'), 'width' => 13, 'height' => 13, 'title' => t('sort ascending'))); if($variables['style'] == 'asc') {
$image_uri = $theme_path . '/images/arrow-asc.png';
$text = t('sort ascending');
} }
else { else {
return theme('image', array('uri' => $theme_path . '/images/arrow-desc.png', 'alt' => t('sort descending'), 'width' => 13, 'height' => 13, 'title' => t('sort descending'))); $image_uri = $theme_path . '/images/arrow-desc.png';
$text = t('sort descending');
} }
$image = array(
'#theme' => 'image',
'#uri' => $image_uri,
'#alt' => $text,
'#width' => 13,
'#height' => 13,
'#title' => $text,
);
return drupal_render($image);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment