Update from Git Manager GUI
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* - Social Media
|
||||
* - Footer
|
||||
* - Login
|
||||
* - Sidebar
|
||||
* - Import/Export
|
||||
*/
|
||||
|
||||
@@ -198,7 +199,47 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
|
||||
|
||||
// =========================================================================
|
||||
// === 3. SOCIAL MEDIA =====================================================
|
||||
// === 3. SIDEBAR EINSTELLUNGEN ============================================
|
||||
// =========================================================================
|
||||
|
||||
$wp_customize->add_section( 'sidebar_settings', array(
|
||||
'title' => 'Sidebar Einstellungen',
|
||||
'priority' => 35,
|
||||
'description' => 'Konfiguriere die Sidebar auf der Startseite.',
|
||||
) );
|
||||
|
||||
// Sidebar aktivieren
|
||||
$wp_customize->add_setting( 'homepage_sidebar_enabled', array(
|
||||
'default' => false,
|
||||
'sanitize_callback' => 'wp_validate_boolean',
|
||||
) );
|
||||
$wp_customize->add_control( 'homepage_sidebar_enabled', array(
|
||||
'label' => 'Sidebar auf Startseite aktivieren',
|
||||
'description' => 'Zeigt eine Sidebar neben dem Hauptinhalt an.',
|
||||
'section' => 'sidebar_settings',
|
||||
'settings' => 'homepage_sidebar_enabled',
|
||||
'type' => 'checkbox',
|
||||
) );
|
||||
|
||||
// Sidebar Position
|
||||
$wp_customize->add_setting( 'homepage_sidebar_position', array(
|
||||
'default' => 'right',
|
||||
'sanitize_callback' => 'sanitize_key',
|
||||
) );
|
||||
$wp_customize->add_control( 'homepage_sidebar_position', array(
|
||||
'label' => 'Sidebar Position',
|
||||
'section' => 'sidebar_settings',
|
||||
'settings' => 'homepage_sidebar_position',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'left' => 'Links',
|
||||
'right' => 'Rechts',
|
||||
),
|
||||
) );
|
||||
|
||||
|
||||
// =========================================================================
|
||||
// === 4. SOCIAL MEDIA =====================================================
|
||||
// =========================================================================
|
||||
|
||||
$wp_customize->add_section( 'social_links', array( 'title' => 'Social Media Links', 'priority' => 40 ) );
|
||||
@@ -212,7 +253,7 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
|
||||
|
||||
// =========================================================================
|
||||
// === 4. FOOTER-BEREICH ==================================================
|
||||
// === 5. FOOTER-BEREICH ==================================================
|
||||
// =========================================================================
|
||||
|
||||
$wp_customize->add_section( 'footer_settings', array( 'title' => 'Footer-Einstellungen', 'priority' => 50 ) );
|
||||
@@ -241,7 +282,7 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
|
||||
|
||||
// =========================================================================
|
||||
// === 5. ZUSÄTZLICHE FUNKTIONEN ==========================================
|
||||
// === 6. ZUSÄTZLICHE FUNKTIONEN ==========================================
|
||||
// =========================================================================
|
||||
|
||||
// --- Sektion: FAQ Einstellungen ---
|
||||
@@ -251,7 +292,7 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
'label' => 'FAQ System aktivieren', 'section' => 'faq_settings', 'settings' => 'faq_enabled', 'type' => 'checkbox',
|
||||
) );
|
||||
|
||||
// --- Sektion: Team Einstellungen ---
|
||||
// --- 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(
|
||||
@@ -259,7 +300,7 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
) );
|
||||
|
||||
// =========================================================================
|
||||
// === 6. LOGIN-BEREICH ====================================================
|
||||
// === 7. LOGIN-BEREICH ====================================================
|
||||
// =========================================================================
|
||||
|
||||
$wp_customize->add_section( 'login_settings', array(
|
||||
@@ -321,7 +362,7 @@ function minecraft_modern_customize_register( $wp_customize ) {
|
||||
) );
|
||||
|
||||
// =========================================================================
|
||||
// === 7. EXPORT / IMPORT SECTION =========================================
|
||||
// === 8. EXPORT / IMPORT SECTION =========================================
|
||||
// =========================================================================
|
||||
|
||||
$wp_customize->add_section( 'theme_mods_import_export', array(
|
||||
|
||||
Reference in New Issue
Block a user