1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 15:13:04 +02:00

Admin Latest and Status indicators upgraded to bootstrap3.

This commit is contained in:
Cameron
2015-07-22 19:49:02 -07:00
parent 87d47a5924
commit 8356f01d2b
5 changed files with 24 additions and 16 deletions

View File

@@ -1217,26 +1217,26 @@ Inverse 10 <span class="badge badge-inverse">10</span>
*/
if($type != 'invert')
{
$important = 'badge-important';
$warning = 'badge-warning';
$info = 'badge-info';
$important = 'label-important label-danger';
$warning = 'label-warning';
$info = 'label-primary';
$invert = false;
}
else // invert
{
$info = 'badge-important';
$warning = 'badge-warning';
$important = 'badge-info';
$info = 'label-important label-danger';
$warning = 'label-warning';
$important = 'label-primary';
$type = 'latest';
$invert = true;
}
$class = 'badge ';
$class = 'label ';
if($total > 500 && $invert == true)
{
$class .= 'badge-success';
$class .= 'label-success';
}
elseif($total > 100 && $type == 'latest')
{
@@ -1250,7 +1250,11 @@ Inverse 10 <span class="badge badge-inverse">10</span>
{
$class .= $info;
}
if(deftrue('BOOTSTRAP') !== 3)
{
$class = str_replace('label', 'badge', $class);
}
return $class;
}