MCPcopy Create free account
hub / github.com/cedaro/shiny-code / get_themes

Method get_themes

php/Plugin.php:92–107  ·  view source on GitHub ↗

* Retrieve syntax highlighting theme settings. * * @since 0.1.0 * * @return array */

()

Source from the content-addressed store, hash-verified

90 * @return array
91 */
92 public function get_themes(): array {
93 $themes = [
94 'atom-one-dark' => [
95 'name' => esc_html__( 'Atom One Dark', 'shiny-code' ),
96 'codemirror' => '',
97 'prism' => $this->get_url( 'build/css/themes/atom-one-dark/prism.css' ),
98 ],
99 'atom-one-light' => [
100 'name' => esc_html__( 'Atom One Light', 'shiny-code' ),
101 'codemirror' => '',
102 'prism' => $this->get_url( 'build/css/themes/atom-one-light/prism.css' ),
103 ],
104 ];
105
106 return apply_filters( 'shiny_code_themes', $themes );
107 }
108}

Callers 2

enqueue_editor_assetsMethod · 0.80
register_assetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected