From 34a45e344515dbc54243ac97c69249501d24e3bf Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 10 Jan 2017 17:57:04 -0800 Subject: [PATCH] Fix for theme description. --- e107_handlers/theme_handler.php | 8 +++++--- e107_themes/bootstrap3/admin_style.css | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 8c20b1a32..b4dc077e3 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -272,6 +272,7 @@ class e_theme $themeArray['path'] = $path; $themeArray['layouts'] = $lays; + $themeArray['description'] = $themeArray['info']; if(file_exists(e_THEME.$path."/preview.jpg")) { @@ -330,6 +331,7 @@ class e_theme $vars['preview'] = varset($vars['screenshots']['image']); $vars['thumbnail'] = varset($vars['preview'][0]); + if(!empty($vars['themePrefs'])) { @@ -341,7 +343,7 @@ class e_theme } - unset($vars['authorEmail'], $vars['authorUrl'], $vars['xhtmlCompliant'], $vars['cssCompliant'], $vars['description'],$vars['screenshots']); + unset($vars['authorEmail'], $vars['authorUrl'], $vars['xhtmlCompliant'], $vars['cssCompliant'], $vars['screenshots']); // Compile layout information into a more usable format. @@ -731,6 +733,7 @@ class themeHandler function getThemeInfo($file) { + // return e_theme::getThemeInfo($file); $mes = e107::getMessage(); $reject = array('e_.*'); @@ -1315,7 +1318,6 @@ class themeHandler $price = (!empty($theme['price'])) ? " ".$theme['price']."" : "".TPVLAN_76.""; - $text = ""; @@ -1608,7 +1610,7 @@ class themeHandler $previewPath = e_BASE."index.php?themepreview.".$theme['id']; } - $thumbnail = ""; + $thumbnail = ""; if($_GET['mode'] == 'online') diff --git a/e107_themes/bootstrap3/admin_style.css b/e107_themes/bootstrap3/admin_style.css index 4767c552d..1777d71c9 100644 --- a/e107_themes/bootstrap3/admin_style.css +++ b/e107_themes/bootstrap3/admin_style.css @@ -1230,8 +1230,10 @@ li.rssRow > div { /* Theme selection */ -.admin-theme-thumb { width:100%; height:130px;overflow:hidden;border:1px solid black; margin:0; margin-bottom:10px; padding:0; } + +.admin-theme-thumb { position:relative; width:100%; height:130px;overflow:hidden;border:1px solid black; margin:0; margin-bottom:10px; padding:0; } .admin-theme-thumb:hover { opacity:0.4 } +.admin-theme-thumb img { position:absolute; height:130px; left:-10px; min-width:110%; } .admin-theme-options { transition: opacity .20s ease-in-out;