Upload via GUI (205 Dateien)
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
<div class="faq-archive-container">
|
||||
|
||||
<header class="page-header">
|
||||
<?php
|
||||
// Überschrift optional: Customizer → FAQ Einstellungen, oder per
|
||||
// Filter 'mm_faq_show_title' (so schaltet sie das Child-Theme ein,
|
||||
// ohne das ganze Template zu kopieren).
|
||||
if ( apply_filters( 'mm_faq_show_title', get_theme_mod( 'faq_show_title', false ) ) ) : ?>
|
||||
<h1 class="page-title"><?php esc_html_e( 'Häufig gestellte Fragen (FAQ)', 'minecraft-modern-theme' ); ?></h1>
|
||||
<?php endif; ?>
|
||||
<p><?php _e( 'Wählen Sie eine Kategorie, um die passenden Fragen zu sehen.', 'minecraft-modern-theme' ); ?></p>
|
||||
</header>
|
||||
|
||||
@@ -25,7 +32,7 @@
|
||||
$active_class = $is_first ? 'active' : '';
|
||||
?>
|
||||
<li>
|
||||
<button class="faq-tab-button <?php echo esc_attr($active_class); ?>" data-category="<?php echo esc_attr($category->slug); ?>">
|
||||
<button type="button" class="faq-tab-button <?php echo esc_attr($active_class); ?>" aria-pressed="<?php echo $is_first ? 'true' : 'false'; ?>" data-category="<?php echo esc_attr($category->slug); ?>">
|
||||
<?php echo esc_html( $category->name ); ?>
|
||||
</button>
|
||||
</li>
|
||||
@@ -61,7 +68,7 @@
|
||||
<div class="faq-list">
|
||||
<?php while ( $faqs->have_posts() ) : $faqs->the_post(); ?>
|
||||
<div class="faq-item">
|
||||
<button class="faq-question"><?php the_title(); ?></button>
|
||||
<button class="faq-question" type="button" aria-expanded="false"><?php the_title(); ?></button>
|
||||
<div class="faq-answer"><?php the_content(); ?></div>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
Reference in New Issue
Block a user