Fix: minor css.
Fix: Alignement of screenshot was wrong. Wrapping too.
This commit is contained in:
parent
f60f5b2751
commit
598a241366
@ -288,7 +288,7 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td colspan="'.$colspan.'">';
|
print '<tr '.$bc[$var].'><td colspan="'.$colspan.'">';
|
||||||
|
|
||||||
print '<table class="nobordernopadding" width="100%">';
|
print '<table class="nobordernopadding" width="100%"><tr><td><div align="center">';
|
||||||
|
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach($dirthemes as $dir)
|
foreach($dirthemes as $dir)
|
||||||
@ -310,22 +310,15 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
|
|||||||
// Disable not stable themes
|
// Disable not stable themes
|
||||||
//if ($conf->global->MAIN_FEATURES_LEVEL < 1 && preg_match('/bureau2crea/i',$subdir)) continue;
|
//if ($conf->global->MAIN_FEATURES_LEVEL < 1 && preg_match('/bureau2crea/i',$subdir)) continue;
|
||||||
|
|
||||||
if ($i % $thumbsbyrow == 0)
|
print '<div class="inline-block" style="margin-top: 10px; margin-bottom: 10px; margin-right: 20px; margin-left: 20px;">';
|
||||||
{
|
|
||||||
print '<tr '.$bc[$var].'>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '<td align="center">';
|
|
||||||
$file=$dirtheme."/".$subdir."/thumb.png";
|
$file=$dirtheme."/".$subdir."/thumb.png";
|
||||||
$url=$urltheme."/".$subdir."/thumb.png";
|
$url=$urltheme."/".$subdir."/thumb.png";
|
||||||
if (! file_exists($file)) $url=$urltheme."/common/nophoto.jpg";
|
if (! file_exists($file)) $url=$urltheme."/common/nophoto.jpg";
|
||||||
print '<table><tr><td>';
|
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].($edit?'?action=edit&theme=':'?theme=').$subdir.(GETPOST("optioncss")?'&optioncss='.GETPOST("optioncss",'alpha',1):'').($fuser?'&id='.$fuser->id:'').'" style="font-weight: normal;" alt="'.$langs->trans("Preview").'">';
|
print '<a href="'.$_SERVER["PHP_SELF"].($edit?'?action=edit&theme=':'?theme=').$subdir.(GETPOST("optioncss")?'&optioncss='.GETPOST("optioncss",'alpha',1):'').($fuser?'&id='.$fuser->id:'').'" style="font-weight: normal;" alt="'.$langs->trans("Preview").'">';
|
||||||
if ($subdir == $conf->global->MAIN_THEME) $title=$langs->trans("ThemeCurrentlyActive");
|
if ($subdir == $conf->global->MAIN_THEME) $title=$langs->trans("ThemeCurrentlyActive");
|
||||||
else $title=$langs->trans("ShowPreview");
|
else $title=$langs->trans("ShowPreview");
|
||||||
print '<img src="'.$url.'" border="0" width="80" height="60" alt="'.$title.'" title="'.$title.'">';
|
print '<img src="'.$url.'" border="0" width="80" height="60" alt="'.$title.'" title="'.$title.'" style="margin-bottom: 5px;">';
|
||||||
print '</a>';
|
print '</a><br>';
|
||||||
print '</td></tr><tr><td align="center">';
|
|
||||||
if ($subdir == $selected_theme)
|
if ($subdir == $selected_theme)
|
||||||
{
|
{
|
||||||
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" checked name="main_theme" value="'.$subdir.'"> <b>'.$subdir.'</b>';
|
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" checked name="main_theme" value="'.$subdir.'"> <b>'.$subdir.'</b>';
|
||||||
@ -334,27 +327,16 @@ function show_theme($fuser,$edit=0,$foruserprofile=false)
|
|||||||
{
|
{
|
||||||
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" name="main_theme" value="'.$subdir.'"> '.$subdir;
|
print '<input '.($edit?'':'disabled').' type="radio" '.$bc[$var].' style="border: 0px;" name="main_theme" value="'.$subdir.'"> '.$subdir;
|
||||||
}
|
}
|
||||||
print '</td></tr></table></td>';
|
print '</div>';
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
if ($i % $thumbsbyrow == 0) print '</tr>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i % $thumbsbyrow != 0)
|
print '</div></td></tr></table>';
|
||||||
{
|
|
||||||
while ($i % $thumbsbyrow != 0)
|
|
||||||
{
|
|
||||||
print '<td> </td>';
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
print '</tr>';
|
|
||||||
}
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|||||||
@ -1283,7 +1283,6 @@ tr.box_titre td.boxclose {
|
|||||||
tr.liste_titre td, tr.liste_titre th, form.liste_titre div {
|
tr.liste_titre td, tr.liste_titre th, form.liste_titre div {
|
||||||
padding:2px;
|
padding:2px;
|
||||||
padding-left:2px !important;
|
padding-left:2px !important;
|
||||||
white-space:nowrap;
|
|
||||||
text-shadow:1px 1px 1px #ffffff;
|
text-shadow:1px 1px 1px #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1391,7 +1391,6 @@ div.liste_titre, tr.liste_titre, form.liste_titre
|
|||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
/* border-bottom: 1px solid #FDFFFF; */
|
/* border-bottom: 1px solid #FDFFFF; */
|
||||||
white-space: nowrap;
|
|
||||||
text-align: <?php echo $left; ?>;
|
text-align: <?php echo $left; ?>;
|
||||||
}
|
}
|
||||||
th.liste_titre, td.liste_titre
|
th.liste_titre, td.liste_titre
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user