= esc_html(get_admin_page_title()) ?>
'timber-editor_general_supported-post-types']);
register_setting('timber-editor', 'timber-editor_codemirror_theme');
add_settings_section('timber-editor_codemirror', 'CodeMirror', function () {}, 'timber-editor');
add_settings_field('timber-editor_codemirror_theme', 'Theme', function () {
$theme = self::getCodeMirrorTheme();
$themes = include_once 'codemirror-themes.php';
?>
= __('Preview') ?>
'timber-editor_codemirror_theme']);
}
/**
* @return string[]
*/
public static function getGeneralSupportedPostTypes()
{
return get_option('timber-editor_general_supported-post-types', ['page']) ?: [];
}
/**
* @return string
*/
public static function getCodeMirrorTheme()
{
return get_option('timber-editor_codemirror_theme', 'default');
}
}