mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Generic breadcrumb() function added. Removed front-end css styling from admin area.
This commit is contained in:
@@ -580,7 +580,7 @@ if(isset($pref['lan_global_list']))
|
|||||||
|
|
||||||
$sql->db_Mark_Time('Start: CHAP challenge');
|
$sql->db_Mark_Time('Start: CHAP challenge');
|
||||||
|
|
||||||
$die = (e_AJAX_REQUEST == true) ? false : true; // prevent json breakage.
|
$die = (e_AJAX_REQUEST == true) ? false : true;
|
||||||
e107::getSession()
|
e107::getSession()
|
||||||
->challenge() // Make sure there is a unique challenge string for CHAP login
|
->challenge() // Make sure there is a unique challenge string for CHAP login
|
||||||
->check($die); // Token protection
|
->check($die); // Token protection
|
||||||
|
@@ -231,7 +231,7 @@ elseif (isset($pref['themecss']) && $pref['themecss'])
|
|||||||
{
|
{
|
||||||
$css_file = (file_exists(THEME.'admin_'.$pref['themecss']) && !vartrue($_GET['configure'])) ? 'admin_'.$pref['themecss'] : $pref['themecss'];
|
$css_file = (file_exists(THEME.'admin_'.$pref['themecss']) && !vartrue($_GET['configure'])) ? 'admin_'.$pref['themecss'] : $pref['themecss'];
|
||||||
//echo "<link rel='stylesheet' href='".$css_file."' type='text/css' />\n";
|
//echo "<link rel='stylesheet' href='".$css_file."' type='text/css' />\n";
|
||||||
$e_js->themeCSS($css_file);
|
// $e_js->themeCSS($css_file); // Test with superhero.css for frontend bootstrap and 'dark' for backend bootstrap.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -1570,6 +1570,43 @@ class e_form
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render a Breadcrumb in Bootstrap format.
|
||||||
|
* @param $array
|
||||||
|
*/
|
||||||
|
function breadcrumb($array)
|
||||||
|
{
|
||||||
|
if(!is_array($array)){ return; }
|
||||||
|
|
||||||
|
$text = '<ul class="breadcrumb">
|
||||||
|
<li>';
|
||||||
|
|
||||||
|
foreach($array as $val)
|
||||||
|
{
|
||||||
|
$ret = "";
|
||||||
|
$ret .= vartrue($val['url']) ? "<a href='".$val['url']."'>" : "";
|
||||||
|
$ret .= vartrue($val['text'],'');
|
||||||
|
$ret .= vartrue($val['url']) ? "</a>" : "";
|
||||||
|
|
||||||
|
if($ret != '')
|
||||||
|
{
|
||||||
|
$opt[] = $ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= implode("<span class='divider'>/</span></li><li>",$opt);
|
||||||
|
|
||||||
|
$text .= "</li></ul>";
|
||||||
|
|
||||||
|
return $text;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin Button - for front-end, use button();
|
* Admin Button - for front-end, use button();
|
||||||
|
Reference in New Issue
Block a user