芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/ebpt.pulsehost.co.uk/wp-content/themes/maxcoach/framework/class-widgets.php
'; $args['after_title'] = ''; return $args; } public function get_default_sidebar_args() { return [ 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ]; } /** * Register widget area. * * @access public * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ public function register_sidebars() { $default_args = $this->get_default_sidebar_args(); register_sidebar( array_merge( $default_args, array( 'id' => 'blog_sidebar', 'name' => esc_html__( 'Blog Sidebar', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); register_sidebar( array_merge( $default_args, array( 'id' => 'page_sidebar', 'name' => esc_html__( 'Page Sidebar', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); register_sidebar( array_merge( $default_args, array( 'id' => 'shop_sidebar', 'name' => esc_html__( 'Shop Sidebar', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); register_sidebar( array_merge( $default_args, array( 'id' => 'course_sidebar', 'name' => esc_html__( 'Course Sidebar', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); register_sidebar( array_merge( $default_args, array( 'id' => 'off_sidebar', 'name' => esc_html__( 'Off Sidebar', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); register_sidebar( array_merge( $default_args, array( 'id' => 'top_bar_widgets', 'name' => esc_html__( 'Top Bar Widgets', 'maxcoach' ), 'description' => esc_html__( 'Add widgets here.', 'maxcoach' ), ) ) ); } } Maxcoach_Widgets::instance()->initialize(); }