@@ 9-27 (lines=19) @@ | ||
6 | * @subpackage 404-widget |
|
7 | */ |
|
8 | ||
9 | if ( ! function_exists( 'lsx_widget_area_404_init' ) ) : |
|
10 | /** |
|
11 | * Add Widget. |
|
12 | * |
|
13 | * @package lsx |
|
14 | * @subpackage 404-widget |
|
15 | */ |
|
16 | function lsx_widget_area_404_init() { |
|
17 | register_sidebar( array( |
|
18 | 'name' => esc_html__( '404 page', 'lsx' ), |
|
19 | 'id' => 'sidebar-404', |
|
20 | 'before_widget' => '<aside id="%1$s" class="widget %2$s">', |
|
21 | 'after_widget' => '</aside>', |
|
22 | 'before_title' => '<h3 class="widget-title">', |
|
23 | 'after_title' => '</h3>', |
|
24 | ) ); |
|
25 | } |
|
26 | ||
27 | endif; |
|
28 | ||
29 | add_action( 'widgets_init', 'lsx_widget_area_404_init' ); |
|
30 |
@@ 53-62 (lines=10) @@ | ||
50 | * @return void |
|
51 | */ |
|
52 | public function lsx_widget_area_sensei_init() { |
|
53 | if ( class_exists( 'Sensei_Course_Participants' ) || class_exists( 'Sensei_Course_Progress' ) ) { |
|
54 | register_sidebar( array( |
|
55 | 'name' => esc_html__( 'LSX Sensei Sidebar', 'lsx' ), |
|
56 | 'id' => 'lsx-sensei-sidebar', |
|
57 | 'before_widget' => '<aside id="%1$s" class="widget %2$s">', |
|
58 | 'after_widget' => '</aside>', |
|
59 | 'before_title' => '<h3 class="widget-title">', |
|
60 | 'after_title' => '</h3>', |
|
61 | ) ); |
|
62 | } |
|
63 | } |
|
64 | ||
65 | public function lsx_widget_area_sensei_is_active( $classes ) { |