1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 21:02:09 +02:00

Legacy Admin layout fixes and tests.

This commit is contained in:
Cameron
2021-01-17 10:36:17 -08:00
parent b286d66e88
commit 299c3717a7
8 changed files with 46 additions and 18 deletions

View File

@@ -787,7 +787,7 @@ function render_clean() // still used by classis, tabbed etc.
{
global $td;
$text = "";
while ($td <= ADLINK_COLS)
while ($td <= defset('ADLINK_COLS', 5))
{
$text .= "<td class='td' style='width:20%;'></td>";
$td++;
@@ -799,7 +799,7 @@ function render_clean() // still used by classis, tabbed etc.
if(is_object($adp))
if(isset($adp) && is_object($adp))
{
$adp->render();
}

View File

@@ -19,7 +19,7 @@ $text = "<div style='text-align:center'>
$admin_cat = e107::getNav()->adminCats();
$newarray = e107::getNav()->adminLinks('core');
$newarray = e107::getNav()->adminLinks('core');
$plugin_array = e107::getNav()->adminLinks('plugin');
foreach ($admin_cat['id'] as $cat_key => $cat_id)

View File

@@ -24,6 +24,7 @@ foreach($newarray as $key=>$funcinfo)
$buts .= e107::getNav()->renderAdminButton($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'default');
}
$text .= $buts;
$td = 0;
while ($td <= 5) {
$text .= "<td class='td' style='width:20%;' ></td>";
$td++;