diff --git a/Minecraft-Modern-Theme/inc/customizer.php b/Minecraft-Modern-Theme/inc/customizer.php index baa6758..b3efdf3 100644 --- a/Minecraft-Modern-Theme/inc/customizer.php +++ b/Minecraft-Modern-Theme/inc/customizer.php @@ -1,4 +1,16 @@ 30, ) ); + // ========================================================================= + // === NEU: THEME PRESETS (VOREINSTELLUNGEN) ============================== + // ========================================================================= + + $wp_customize->add_setting( 'theme_color_preset', array( + 'default' => 'classic', + 'sanitize_callback' => 'sanitize_key', + 'transport' => 'refresh', + ) ); + + $wp_customize->add_control( 'theme_color_preset', array( + 'label' => 'Theme Preset (Farbschema)', + 'description' => 'Wähle ein voreingestelltes Farbschema (z. B. für Nether oder End Dimension).', + 'section' => 'theme_appearance_settings', + 'settings' => 'theme_color_preset', + 'type' => 'select', + 'priority' => 1, // Zeig es ganz oben in dieser Sektion an + 'choices' => array( + 'classic' => 'Classic Minecraft (Diamant-Blau)', + 'nether' => 'Nether (Lava-Rot)', + 'end' => 'The End (Ender-Purpur)', + ), + ) ); + + // ========================================================================= + // === ENDE THEME PRESETS ================================================== + // ========================================================================= + // Akzentfarbe $wp_customize->add_setting( 'primary_accent_color', array( 'default' => '#00d4ff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_accent_color', array( @@ -211,6 +251,13 @@ function minecraft_modern_customize_register( $wp_customize ) { 'label' => 'FAQ System aktivieren', 'section' => 'faq_settings', 'settings' => 'faq_enabled', 'type' => 'checkbox', ) ); + // --- Sektion: Team Einstellungen --- + $wp_customize->add_section( 'team_settings', array( 'title' => 'Team Einstellungen', 'priority' => 65 ) ); + $wp_customize->add_setting( 'team_enabled', array( 'default' => true, 'sanitize_callback' => 'wp_validate_boolean' ) ); + $wp_customize->add_control( 'team_enabled', array( + 'label' => 'Team Showcase aktivieren', 'section' => 'team_settings', 'settings' => 'team_enabled', 'type' => 'checkbox', + ) ); + // ========================================================================= // === 6. LOGIN-BEREICH ==================================================== // ========================================================================= @@ -457,4 +504,45 @@ function minecraft_modern_dynamic_css_output() { + +