register_sections(); add_action( 'brandy_print_global_css', array( $this, 'print_general_css' ) ); add_filter( 'brandy_extra_localize', array( $this, 'add_localize_data' ) ); add_filter( 'brandy_customizer_extra_panels', array( $this, 'register_extra_panels' ) ); } private function register_sections() { ContentSettingsSection::get_instance(); ButtonSettingsSection::get_instance(); InputSettingsSection::get_instance(); SelectSettingsSection::get_instance(); TypographySettingsSection::get_instance(); BlogSettingsSection::get_instance(); BreadcrumbSettingsSection::get_instance(); } public function register_extra_panels( $panels ) { $panels[] = array( 'id' => self::PANEL_ID, 'title' => __( 'General', 'brandy' ), ); return $panels; } /** * Returns module configurations * Because this is the main loader, so return panel configurations * * @override */ public static function get_configurations() { $configurations = array( array( 'configuration_type' => 'panel', 'id' => self::PANEL_ID, 'title' => __( 'General', 'brandy' ), 'description' => '', 'priority' => 10, 'type' => 'brandy_panel', ), ); return $configurations; } public function print_general_css() { ?> apply_filters( 'brandy_general_sections', array() ), 'default_settings' => apply_filters( 'brandy_general_default_settings', array() ), ); return $data; } }