mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fix for theme description.
This commit is contained in:
@@ -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'])) ? "<span class='label label-primary'><i class='icon-shopping-cart icon-white'></i> ".$theme['price']."</span>" : "<span class='label label-success'>".TPVLAN_76."</span>";
|
||||
|
||||
|
||||
|
||||
$text = "<table class='table table-striped'>";
|
||||
|
||||
|
||||
@@ -1608,7 +1610,7 @@ class themeHandler
|
||||
$previewPath = e_BASE."index.php?themepreview.".$theme['id'];
|
||||
}
|
||||
|
||||
$thumbnail = "<img src='".$thumbPath."' style='width:100%; max-height:200px;' alt='' />";
|
||||
$thumbnail = "<img src='".$thumbPath."' style='' alt='' />";
|
||||
|
||||
|
||||
if($_GET['mode'] == 'online')
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user