- Patch #30935 by m3avrck: generate width and height attributes for the theme screenshots on the theme administration page.
parent
ee33291b55
commit
fd854ea105
|
@ -137,7 +137,7 @@ function system_user($type, $edit, &$user, $category = NULL) {
|
|||
|
||||
// Screenshot column.
|
||||
$screenshot = dirname($value->filename) .'/screenshot.png';
|
||||
$row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot'), false) : t('no screenshot');
|
||||
$row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot')) : t('no screenshot');
|
||||
|
||||
// Information field.
|
||||
$row[] = '<strong>'. $value->name .'</strong>';
|
||||
|
@ -476,7 +476,7 @@ function system_theme_listing() {
|
|||
$row = array();
|
||||
|
||||
// Screenshot column.
|
||||
$row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot'), false) : t('no screenshot');
|
||||
$row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot')) : t('no screenshot');
|
||||
|
||||
// Information field.
|
||||
$row[] = "<strong>$info->name</strong><br /><em>" . dirname($info->filename) . '</em>';
|
||||
|
|
|
@ -137,7 +137,7 @@ function system_user($type, $edit, &$user, $category = NULL) {
|
|||
|
||||
// Screenshot column.
|
||||
$screenshot = dirname($value->filename) .'/screenshot.png';
|
||||
$row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot'), false) : t('no screenshot');
|
||||
$row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot')) : t('no screenshot');
|
||||
|
||||
// Information field.
|
||||
$row[] = '<strong>'. $value->name .'</strong>';
|
||||
|
@ -476,7 +476,7 @@ function system_theme_listing() {
|
|||
$row = array();
|
||||
|
||||
// Screenshot column.
|
||||
$row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot'), false) : t('no screenshot');
|
||||
$row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot')) : t('no screenshot');
|
||||
|
||||
// Information field.
|
||||
$row[] = "<strong>$info->name</strong><br /><em>" . dirname($info->filename) . '</em>';
|
||||
|
|
Loading…
Reference in New Issue