/** * Adds the default bbPress styles into the editor * * @see bbp_default_styles filter * @see BBP_Default->enqueue_styles() */ public function sandwich_bbpress_enqueue_editor_styles($styles) { foreach ($styles as $handle => $attributes) { $styleUrl = bbp_enqueue_style($handle, $attributes['file'], $attributes['dependencies'], bbp_get_version(), 'screen'); add_editor_style($styleUrl); } return $styles; }
/** * Load the theme CSS * * @since bbPress (r3732) * * @uses wp_enqueue_style() To enqueue the styles */ public function enqueue_styles() { // Setup styles array $styles = array(); // LTR $styles['bbp-default'] = array('file' => 'css/bbpress.css', 'dependencies' => array()); // RTL helpers if (is_rtl()) { $styles['bbp-default-rtl'] = array('file' => 'css/bbpress-rtl.css', 'dependencies' => array('bbp-default')); } // Filter the scripts $styles = apply_filters('bbp_default_styles', $styles); // Enqueue the styles foreach ($styles as $handle => $attributes) { bbp_enqueue_style($handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen'); } }
/** * Load the theme CSS * * @since 2.1.0 bbPress (r3732) * * @uses wp_enqueue_style() To enqueue the styles */ public function enqueue_styles() { // RTL and/or minified $suffix = is_rtl() ? '-rtl' : ''; $suffix .= defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; // Get and filter the bbp-default style $styles = apply_filters('bbp_default_styles', array('bbp-default' => array('file' => 'css/bbpress' . $suffix . '.css', 'dependencies' => array()))); // Enqueue the styles foreach ($styles as $handle => $attributes) { bbp_enqueue_style($handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen'); } }