Archived
1
0

Use bigger previews in template list

TODO: Generate real previews instead of downscaling the bigger ones, Cleanup inline css
This commit is contained in:
onli
2013-06-23 21:38:23 +02:00
parent c2f788c69b
commit ea317649ac
2 changed files with 19 additions and 8 deletions
+5 -1
View File
@@ -169,7 +169,11 @@ foreach ($stack as $theme => $info) {
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $theme . '/preview_fullsize.jpg')) {
$data['templates'][$theme]['fullsize_preview'] = $serendipity['baseURL'] . $serendipity['templatePath'] . $theme . '/preview_fullsize.jpg';
} elseif (!empty($info['preview_fullsizeURL'])) {
$data['templates'][$theme]['fullsize_preview'] = $info['preview_fullsizeURL'];
if (file_exists($serendipity['serendipityPath'] . '/templates_c/template_cache/'. $theme .'.jpg')) {
$data['templates'][$theme]['fullsize_preview'] = $serendipity['baseURL'] . 'templates_c/template_cache/'. $theme .'.jpg';
} else {
$data['templates'][$theme]['fullsize_preview'] = $info['preview_fullsizeURL'];
}
}
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $theme . '/preview.png')) {