SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /* | |
3 | Plugin Name: MarcTV Quicktags | |
4 | Plugin URI: http://www.marctv.de/blog/2010/08/25/marctv-wordpress-plugins/ | |
5 | Description: Displays a bold, italic, add link and quote button on top of the comment form | |
6 | Version: 1.8 | |
7 | Author: Marc Tönsing | |
8 | Author URI: http://www.marctv.de | |
9 | Stable tag: 1.8 | |
10 | License: GPL2 | |
11 | */ | |
12 | ||
13 | function add_quicktag_scripts() { | |
14 | - | if ( comments_open() && is_singular() ) { |
14 | + | if ( ( comments_open() && is_singular() ) || is_bbpress() ) { |
15 | wp_enqueue_script("marctv_quicktags", plugin_dir_url(__FILE__) . "marctv_quicktags.js", array("quicktags","jquery"), "1.8", 1); | |
16 | wp_enqueue_style("marctv_quicktags", plugin_dir_url(__FILE__) . "marctv_quicktags.css", false, "1.8"); | |
17 | wp_print_styles('editor-buttons'); | |
18 | } | |
19 | } | |
20 | ||
21 | if ( !is_admin() ) { | |
22 | add_action('wp_print_styles', 'add_quicktag_scripts'); | |
23 | } |