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

Admin template clean up. 2 new admin styles added. (to be improved). Left admin panel collapse improved. (still needs a cookie to 'stick' .

This commit is contained in:
Cameron
2021-01-29 09:27:38 -08:00
parent 7be16b9e32
commit a6e341274e
12 changed files with 3202 additions and 30 deletions

View File

@@ -1173,10 +1173,17 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
/*
* Search for id
*/
$extraParms = array();
$temp = explode('--id--', $title, 2);
$title = $temp[0];
$id = str_replace(array(' ', '_'), '-', varset($temp[1]));
if(isset($e107_vars['_extras_'])) // hold icon info, but could be more.
{
$extraParms = $e107_vars['_extras_'];
unset($e107_vars['_extras_']);
}
unset($temp);
/*
@@ -1400,9 +1407,18 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
$ns = e107::getRender();
$ns->setUniqueId($id);
$ns->tablerender($title, $text);
$srch = array('{ICON}', '{CAPTION}');
$repl = array(varset($extraParms['icon']), $title);
$title = str_replace($srch,$repl, $tmpl['caption']);
$ret = $ns->tablerender($title, $text, 'default', true);
$ns->setUniqueId(null);
return '';
return $ret;
}