| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( ! defined( 'ABSPATH' ) ) exit; |
| 4 |
|
| 5 |
/** |
| 6 |
* wpForo Classic Theme - WordPress theme specific functions |
| 7 |
* @hook: action - 'after_setup_theme' |
| 8 |
* @description: WordPress theme functions, for wpForo theme functions use functions.php file. |
| 9 |
* @theme: Classic |
| 10 |
*/ |
| 11 |
|
| 12 |
add_filter('wpforo_editor_settings', function($s){ |
| 13 |
if ( 'dark' === wpforo_setting( 'styles', 'color_style' ) ){ |
| 14 |
$s['tinymce']['content_style'] .= "body{background-color:#bbb; color:#111;}"; |
| 15 |
return $s; |
| 16 |
} |
| 17 |
return $s; |
| 18 |
}, 1); |
| 19 |
|