Skip to content
Snippets Groups Projects
Commit d25c27da authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update colors

parent c6762dbb
No related branches found
No related tags found
No related merge requests found
...@@ -21,21 +21,17 @@ class renderadminlte { ...@@ -21,21 +21,17 @@ class renderadminlte {
'bgcolor'=>[ 'bgcolor'=>[
// for colors see https://adminlte.io/docs/3.2/layout.html // for colors see https://adminlte.io/docs/3.2/layout.html
// https://adminlte.io/themes/v3/pages/UI/general.html
'', // none '', // none
'primary', 'blue',
'secondary',
'success', 'green',
'info', 'cyan',
'warning', 'yellow',
'danger', 'red',
'dark',
'black', 'black',
'dark',
'gray-dark', 'gray-dark',
'gray', 'gray',
'light', 'light',
'indigo', 'indigo',
'lightblue',
'navy', 'navy',
'purple', 'purple',
'fuchsia', 'fuchsia',
...@@ -124,7 +120,7 @@ class renderadminlte { ...@@ -124,7 +120,7 @@ class renderadminlte {
return false; return false;
} }
if(array_search($sValue, $this->_aValidItems[$sType])===false){ if(array_search($sValue, $this->_aValidItems[$sType])===false){
die("ERROR: ".($sReferrer ? $sReferrer.' - ' : '')."value [$sValue] is not a valid for type [$sType]; it must be one of ".implode("|", $this->_aValidItems[$sType])); echo "ERROR: ".($sReferrer ? $sReferrer.' - ' : '')."value [$sValue] is not a valid for type [$sType]; it must be one of ".implode("|", $this->_aValidItems[$sType]).'<br>';
} }
return true; return true;
} }
...@@ -391,7 +387,7 @@ class renderadminlte { ...@@ -391,7 +387,7 @@ class renderadminlte {
} }
$aOptions['_infos'][]="added missing key: $sKey"; $aOptions['_infos'][]="added missing key: $sKey";
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
return $aOptions; return $aOptions;
} }
...@@ -457,7 +453,7 @@ class renderadminlte { ...@@ -457,7 +453,7 @@ class renderadminlte {
$aElement['class']='badge' $aElement['class']='badge'
. ($aOptions['class'] ? ' badge-'.$aOptions['class'] : '') . ($aOptions['class'] ? ' badge-'.$aOptions['class'] : '')
. ($aOptions['type'] ? ' badge-'.$aOptions['type'] : '') . ($aOptions['type'] ? ' badge-'.$aOptions['type'] : '')
. ($aOptions['bgcolor'] ? ' badge-'.$aOptions['bgcolor'] : '') . ($aOptions['bgcolor'] ? ' bg-'.$aOptions['bgcolor'] : '')
; ;
if ($aOptions['id']){ if ($aOptions['id']){
$aElement['id']=$aOptions['id']; $aElement['id']=$aOptions['id'];
...@@ -808,7 +804,7 @@ class renderadminlte { ...@@ -808,7 +804,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
return '<div class="alert' return '<div class="alert'
.($aOptions['type'] ? ' alert-'.$aOptions['type'] : '') .($aOptions['type'] ? ' alert-'.$aOptions['type'] : '')
...@@ -847,7 +843,7 @@ class renderadminlte { ...@@ -847,7 +843,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
return '<small class="label' return '<small class="label'
. ($aOptions['type'] ? ' label-'.$aOptions['type'] : '') . ($aOptions['type'] ? ' label-'.$aOptions['type'] : '')
...@@ -878,7 +874,7 @@ class renderadminlte { ...@@ -878,7 +874,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
return '<div class="callout' return '<div class="callout'
.($aOptions['type'] ? ' callout-'.$aOptions['type'] : '') .($aOptions['type'] ? ' callout-'.$aOptions['type'] : '')
...@@ -917,7 +913,7 @@ class renderadminlte { ...@@ -917,7 +913,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
// system icons on top right // system icons on top right
...@@ -1011,7 +1007,7 @@ class renderadminlte { ...@@ -1011,7 +1007,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
if(!$aOptions['url']){ if(!$aOptions['url']){
$aOptions['url']='#'; $aOptions['url']='#';
...@@ -1047,7 +1043,7 @@ class renderadminlte { ...@@ -1047,7 +1043,7 @@ class renderadminlte {
if(!isset($aOptions[$sKey])){ if(!isset($aOptions[$sKey])){
$aOptions[$sKey]=false; $aOptions[$sKey]=false;
} }
$this->_checkValue($sKey, $aOptions[$sKey]); $this->_checkValue($sKey, $aOptions[$sKey], __METHOD__);
} }
// if onclick is available then add a a-tag to all labels that do not contain a link yet // if onclick is available then add a a-tag to all labels that do not contain a link yet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment