Merged Colors and Theme Colors array into one
This commit is contained in:
@@ -86,26 +86,25 @@ $config_theme = $row['config_theme'];
|
|||||||
$config_enable_dark_mode = "dark_mode";
|
$config_enable_dark_mode = "dark_mode";
|
||||||
|
|
||||||
$colors_array = array(
|
$colors_array = array(
|
||||||
'green',
|
|
||||||
'olive',
|
|
||||||
'yellowgreen',
|
|
||||||
'lime',
|
|
||||||
'blue',
|
'blue',
|
||||||
'darkblue',
|
'green',
|
||||||
'cadetblue',
|
|
||||||
'cyan',
|
'cyan',
|
||||||
'purple',
|
'yellow',
|
||||||
'indigo',
|
|
||||||
'magenta',
|
|
||||||
'red',
|
'red',
|
||||||
'crimson',
|
|
||||||
'indianred',
|
|
||||||
'pink',
|
|
||||||
'orange',
|
|
||||||
'teal',
|
|
||||||
'black',
|
'black',
|
||||||
'gray-dark',
|
'gray-dark',
|
||||||
'gray'
|
'gray',
|
||||||
|
'light',
|
||||||
|
'indigo',
|
||||||
|
'navy',
|
||||||
|
'purple',
|
||||||
|
'fuchsia',
|
||||||
|
'pink',
|
||||||
|
'maroon',
|
||||||
|
'orange',
|
||||||
|
'lime',
|
||||||
|
'teal',
|
||||||
|
'olive'
|
||||||
);
|
);
|
||||||
|
|
||||||
$net_terms_array = array(
|
$net_terms_array = array(
|
||||||
@@ -927,26 +926,4 @@ $asset_status_array = array(
|
|||||||
'Retired'
|
'Retired'
|
||||||
);
|
);
|
||||||
|
|
||||||
$themes_array = array(
|
|
||||||
'blue',
|
|
||||||
'green',
|
|
||||||
'cyan',
|
|
||||||
'yellow',
|
|
||||||
'red',
|
|
||||||
'black',
|
|
||||||
'gray-dark',
|
|
||||||
'gray',
|
|
||||||
'light',
|
|
||||||
'indigo',
|
|
||||||
'navy',
|
|
||||||
'purple',
|
|
||||||
'fuchsia',
|
|
||||||
'pink',
|
|
||||||
'maroon',
|
|
||||||
'orange',
|
|
||||||
'lime',
|
|
||||||
'teal',
|
|
||||||
'olive'
|
|
||||||
);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -12,17 +12,17 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
foreach($themes_array as $theme_color) {
|
foreach($colors_array as $color) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="col-3 text-center mb-3">
|
<div class="col-3 text-center mb-3">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="radio" name="theme" value="<?php echo $theme_color; ?>" <?php if($config_theme == $theme_color){ echo "checked"; } ?>>
|
<input class="form-check-input" type="radio" name="theme" value="<?php echo $color; ?>" <?php if($config_theme == $color){ echo "checked"; } ?>>
|
||||||
<label class="form-check-label">
|
<label class="form-check-label">
|
||||||
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $theme_color; ?>"></i>
|
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $color; ?>"></i>
|
||||||
<br>
|
<br>
|
||||||
<?php echo $theme_color; ?>
|
<?php echo $color; ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user