Explorar o código

added color option to settingsOption function

CauseFX %!s(int64=4) %!d(string=hai) anos
pai
achega
7c4b973622
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      api/functions/option-functions.php

+ 8 - 0
api/functions/option-functions.php

@@ -369,6 +369,14 @@ trait OptionsFunction
 					'options' => $this->limitOptions()
 				];
 				break;
+			case 'color':
+				$settingMerge = [
+					'type' => 'input',
+					'label' => 'Color',
+					'class' => 'pick-a-color-custom-options',
+					'attr' => 'data-original="' . $this->config[$name] . '"'
+				];
+				break;
 			default:
 				$settingMerge = [
 					'type' => strtolower($type),