lightspeeddevelopment /
lsx
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * LSX functions and definitions - bbPress. |
||
| 4 | * |
||
| 5 | * @package lsx |
||
| 6 | * @subpackage bbpress |
||
| 7 | */ |
||
| 8 | |||
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 10 | exit; |
||
| 11 | } |
||
| 12 | |||
| 13 | global $bbpress; |
||
| 14 | |||
| 15 | if ( ! function_exists( 'lsx_bbpress_scripts_add_styles' ) ) : |
||
|
0 ignored issues
–
show
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * bbPress enqueue styles. |
||
|
0 ignored issues
–
show
|
|||
| 19 | * |
||
| 20 | * @package lsx |
||
| 21 | * @subpackage bbpress |
||
| 22 | */ |
||
| 23 | function lsx_bbpress_scripts_add_styles() { |
||
|
0 ignored issues
–
show
|
|||
| 24 | wp_enqueue_style( 'bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press/bb-press.css', array( 'lsx_main' ), LSX_VERSION ); |
||
| 25 | wp_style_add_data( 'bbpress-lsx', 'rtl', 'replace' ); |
||
| 26 | } |
||
|
0 ignored issues
–
show
|
|||
| 27 | |||
| 28 | add_action( 'wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles' ); |
||
| 29 | |||
|
0 ignored issues
–
show
|
|||
| 30 | endif; |
||
| 31 | |||
| 32 | /**** Remove "Archives:" from the forums archive title. ******/ |
||
|
0 ignored issues
–
show
|
|||
| 33 | |||
| 34 | add_filter( 'get_the_archive_title', 'modify_archive_title', 10, 1 ); |
||
| 35 | |||
| 36 | function modify_archive_title( $title ) { |
||
|
0 ignored issues
–
show
|
|||
| 37 | $title = __( 'Forums', 'lsx' ); |
||
| 38 | return $title; |
||
| 39 | } |
||
|
0 ignored issues
–
show
|
|||
| 40 |