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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user