mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Made theme list dynamic
This commit is contained in:
parent
eab18d9f60
commit
a7caaed4e9
@ -9,52 +9,31 @@
|
|||||||
|
|
||||||
<td width="50%"><?php i18n("Theme"); ?></td>
|
<td width="50%"><?php i18n("Theme"); ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<select class="setting" data-setting="codiad.editor.theme">
|
<select class="setting" data-setting="codiad.editor.theme">
|
||||||
<option value="ambiance">Ambiance</option>
|
<?php
|
||||||
<option value="chaos">Chaos</option>
|
|
||||||
<option value="chrome">Chrome</option>
|
$files = glob( COMPONENTS . "/editor/ace-editor/*.js" );
|
||||||
<option value="clouds">Clouds</option>
|
foreach( $files as $file ) {
|
||||||
<option value="clouds_midnight">Clouds - Midnight</option>
|
|
||||||
<option value="cobalt">Cobalt</option>
|
$name = pathinfo( $file, PATHINFO_FILENAME );
|
||||||
<option value="crimson_editor">Crimson Editor</option>
|
if( strpos( strtolower( $name ), strtolower( "theme-" ) ) !== false ) {
|
||||||
<option value="dawn">Dawn</option>
|
|
||||||
<option value="dreamweaver">Dreamweaver</option>
|
$value = str_replace( "theme-", "", str_replace( ".js", "", $name ) );
|
||||||
<option value="eclipse">Eclipse</option>
|
$name = ucwords( str_replace( "_", " ", $value ) );
|
||||||
<option value="github">GitHub</option>
|
|
||||||
<option value="idle_fingers">Idle Fingers</option>
|
?>
|
||||||
<option value="iplastic">IPlastic</option>
|
<option value="<?php echo $value;?>"><?php echo $name;?></option>
|
||||||
<option value="katzenmilch">Katzenmilch</option>
|
<?php
|
||||||
<option value="kuroir">Kuroir</option>
|
}
|
||||||
<option value="kr_theme">krTheme</option>
|
}
|
||||||
<option value="merbivore">Merbivore</option>
|
?>
|
||||||
<option value="merbivore_soft">Merbivore Soft</option>
|
|
||||||
<option value="mono_industrial">Mono Industrial</option>
|
|
||||||
<option value="monokai">Monokai</option>
|
|
||||||
<option value="pastel_on_dark">Pastel On Dark</option>
|
|
||||||
<option value="solarized_dark">Solarized Dark</option>
|
|
||||||
<option value="solarized_light">Solarized Light</option>
|
|
||||||
<option value="sqlserver">SQL Server</option>
|
|
||||||
<option value="terminal">Terminal</option>
|
|
||||||
<option value="textmate">Textmate</option>
|
|
||||||
<option value="tomorrow">Tomorrow</option>
|
|
||||||
<option value="tomorrow_night">Tomorrow Night</option>
|
|
||||||
<option value="tomorrow_night_blue">Tomorrow Night Blue</option>
|
|
||||||
<option value="tomorrow_night_bright">Tomorrow Night Bright</option>
|
|
||||||
<option value="tomorrow_night_eighties">Tomorrow Night Eighties</option>
|
|
||||||
<option value="twilight" selected>Twilight</option>
|
|
||||||
<option value="vibrant_ink">Vibrant Ink</option>
|
|
||||||
<option value="xcode">XCode</option>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td><?php i18n("Font Size"); ?></td>
|
<td><?php i18n("Font Size"); ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<select class="setting" data-setting="codiad.editor.fontSize">
|
<select class="setting" data-setting="codiad.editor.fontSize">
|
||||||
<option value="10px">10px</option>
|
<option value="10px">10px</option>
|
||||||
<option value="11px">11px</option>
|
<option value="11px">11px</option>
|
||||||
|
@ -7,7 +7,7 @@ class sql {
|
|||||||
const DB_TYPES = array(
|
const DB_TYPES = array(
|
||||||
|
|
||||||
"MySQL" => "mysql",
|
"MySQL" => "mysql",
|
||||||
"PostgresSQL" => "pgsql",
|
"PostgreSQL" => "pgsql",
|
||||||
//"SQLite" => "sqlite",
|
//"SQLite" => "sqlite",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user