* Retrieve syntax highlighting theme settings. * * @since 0.1.0 * * @return array */
()
| 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 | } |
no outgoing calls
no test coverage detected