self::PANEL_ID, 'title' => __( 'Colors', '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' => __( 'Colors', 'brandy' ), 'description' => '', 'priority' => 10, 'type' => 'brandy_panel', ), ); $configurations[] = array( 'configuration_type' => 'section', 'id' => self::SECTION_ID, 'title' => __( 'Colors', 'brandy' ), 'panel' => self::PANEL_ID, 'type' => 'brandy-section', 'description_hidden' => true, ); $configurations[] = array( 'configuration_type' => 'control', 'id' => self::SECTION_ID, 'label' => __( 'Colors', 'brandy' ), 'section' => self::SECTION_ID, 'type' => 'brandy_settings', 'input_attrs' => array( 'value' => '', 'style' => 'display:none;', ), 'partial' => false, 'default' => ColorService::get_default_palette(), 'transport' => 'postMessage', ); $configurations[] = array( 'configuration_type' => 'control', 'id' => 'global_palettes', 'label' => __( 'Global Palettes', 'brandy' ), 'section' => 'global_palettes', 'type' => 'brandy_settings', 'input_attrs' => array( 'value' => '', 'style' => 'display:none;', ), 'partial' => false, 'default' => ColorService::get_default_global_palettes(), 'transport' => 'postMessage', ); return $configurations; } }