Minecraft-Modern-Theme/inc/customizer.php aktualisiert
This commit is contained in:
@@ -84,6 +84,22 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
|||||||
'label' => 'Paginierung (Punkte) ausblenden', 'section' => 'header_slider', 'settings' => 'slider_hide_pagination', 'type' => 'checkbox',
|
'label' => 'Paginierung (Punkte) ausblenden', 'section' => 'header_slider', 'settings' => 'slider_hide_pagination', 'type' => 'checkbox',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
// =========================================================================
|
||||||
|
// === NEU: Slider-Effekt-Einstellungen ===================================
|
||||||
|
// =========================================================================
|
||||||
|
|
||||||
|
$wp_customize->add_setting( 'slider_effect', array( 'default' => 'fade', 'sanitize_callback' => 'sanitize_key' ) );
|
||||||
|
$wp_customize->add_control( 'slider_effect', array(
|
||||||
|
'label' => 'Slider-Effekt', 'section' => 'header_slider', 'settings' => 'slider_effect', 'type' => 'select',
|
||||||
|
'choices' => array( 'slide' => 'Horizontales Gleiten', 'fade' => 'Überblenden', 'cube' => 'Würfel-Effekt' ),
|
||||||
|
) );
|
||||||
|
|
||||||
|
$wp_customize->add_setting( 'slider_direction', array( 'default' => 'horizontal', 'sanitize_callback' => 'sanitize_key' ) );
|
||||||
|
$wp_customize->add_control( 'slider_direction', array(
|
||||||
|
'label' => 'Slider-Richtung (nur für "Gleiten")', 'section' => 'header_slider', 'settings' => 'slider_direction', 'type' => 'select',
|
||||||
|
'choices' => array( 'horizontal' => 'Horizontal', 'vertical' => 'Vertikal' ),
|
||||||
|
) );
|
||||||
|
|
||||||
|
|
||||||
// --- Sektion: Startseiten-Hero (Fallback) ---
|
// --- Sektion: Startseiten-Hero (Fallback) ---
|
||||||
$wp_customize->add_section( 'hero_section', array(
|
$wp_customize->add_section( 'hero_section', array(
|
||||||
@@ -207,7 +223,6 @@ add_action( 'customize_register', 'minecraft_modern_customize_register' );
|
|||||||
// === DYNAMISCHES CSS =====================================================
|
// === DYNAMISCHES CSS =====================================================
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|
||||||
// Diese Funktion bleibt unverändert, da sie bereits gut strukturiert ist.
|
|
||||||
function minecraft_modern_dynamic_css_output() {
|
function minecraft_modern_dynamic_css_output() {
|
||||||
$accent_color = get_theme_mod( 'primary_accent_color', '#00d4ff' );
|
$accent_color = get_theme_mod( 'primary_accent_color', '#00d4ff' );
|
||||||
$slider_font = get_theme_mod( 'slider_font_family', 'Raleway' );
|
$slider_font = get_theme_mod( 'slider_font_family', 'Raleway' );
|
||||||
@@ -252,6 +267,26 @@ function minecraft_modern_dynamic_css_output() {
|
|||||||
.slider-subtitle, .hero-subtitle {
|
.slider-subtitle, .hero-subtitle {
|
||||||
font-size: <?php echo esc_attr($chosen_sizes['subtitle']); ?>;
|
font-size: <?php echo esc_attr($chosen_sizes['subtitle']); ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* =================================================================== */
|
||||||
|
/* === NEU: Trennlinien mit der Akzentfarbe ========================= */
|
||||||
|
/* =================================================================== */
|
||||||
|
|
||||||
|
/* Trennlinie unter dem Header */
|
||||||
|
.site-header {
|
||||||
|
border-bottom: 4px solid var(--primary-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Trennlinie unter dem Slider */
|
||||||
|
.hero-slider {
|
||||||
|
border-bottom: 4px solid var(--primary-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Trennlinie am oberen Rand des Footers */
|
||||||
|
.site-footer {
|
||||||
|
border-top: 4px solid var(--primary-accent);
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user