refactor(ui): hapus badge redundan pada seksi berita dan faq beranda
This commit is contained in:
+5
-10
@@ -261,12 +261,11 @@
|
|||||||
</section>
|
</section>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 9. LATEST NEWS (SEKARANG BERADA DI ATAS FAQ) -->
|
<!-- 9. LATEST NEWS (JUDUL BERSIH TANPA BADGE BERLEBIH) -->
|
||||||
<?php if ( get_option('edukarsa_tampil_news', 1) == 1 ) : ?>
|
<?php if ( get_option('edukarsa_tampil_news', 1) == 1 ) : ?>
|
||||||
<section class="edukarsa-section edukarsa-latest-news" style="padding-top: 50px; padding-bottom: 60px;">
|
<section class="edukarsa-section edukarsa-latest-news" style="padding-top: 50px; padding-bottom: 60px;">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="section-header text-center">
|
<div class="section-header text-center" style="margin-bottom: 35px;">
|
||||||
<span class="badge-title">INFORMASI TERKINI</span>
|
|
||||||
<h2 class="section-title"><?php echo esc_html( get_option('edukarsa_news_title', 'News & Update') ); ?></h2>
|
<h2 class="section-title"><?php echo esc_html( get_option('edukarsa_news_title', 'News & Update') ); ?></h2>
|
||||||
<hr class="title-underline">
|
<hr class="title-underline">
|
||||||
</div>
|
</div>
|
||||||
@@ -300,18 +299,16 @@
|
|||||||
</section>
|
</section>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- 10. SEKSI FAQ / PERTANYAAN UMUM (DI BAWAH BERITA & DEFAULT MINIMIZED) -->
|
<!-- 10. SEKSI FAQ (JUDUL BERSIH TANPA BADGE REDUNDAN) -->
|
||||||
<?php
|
<?php
|
||||||
if ( get_option('edukarsa_tampil_faq', 1) == 1 ) :
|
if ( get_option('edukarsa_tampil_faq', 1) == 1 ) :
|
||||||
$query_faq = new WP_Query( array( 'post_type' => 'faq', 'posts_per_page' => -1, 'order' => 'ASC' ) );
|
$query_faq = new WP_Query( array( 'post_type' => 'faq', 'posts_per_page' => -1, 'order' => 'ASC' ) );
|
||||||
if ( $query_faq->have_posts() ) :
|
if ( $query_faq->have_posts() ) :
|
||||||
$faq_sub = get_option( 'edukarsa_faq_subtitle', 'FAQ' );
|
|
||||||
$faq_title = get_option( 'edukarsa_faq_title', 'Pertanyaan Umum' );
|
$faq_title = get_option( 'edukarsa_faq_title', 'Pertanyaan Umum' );
|
||||||
?>
|
?>
|
||||||
<section class="edukarsa-section edukarsa-faq-section" style="padding: 60px 0 80px; background-color: #f8fafc;">
|
<section class="edukarsa-section edukarsa-faq-section" style="padding: 50px 0 75px; background-color: #f8fafc;">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="section-header text-center" style="margin-bottom: 40px;">
|
<div class="section-header text-center" style="margin-bottom: 35px;">
|
||||||
<?php if ( ! empty( $faq_sub ) ) : ?><span class="badge-title"><?php echo esc_html( $faq_sub ); ?></span><?php endif; ?>
|
|
||||||
<h2 class="section-title"><?php echo esc_html( $faq_title ); ?></h2>
|
<h2 class="section-title"><?php echo esc_html( $faq_title ); ?></h2>
|
||||||
<hr class="title-underline">
|
<hr class="title-underline">
|
||||||
</div>
|
</div>
|
||||||
@@ -347,7 +344,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
// 1. Slider Auto Scroll
|
|
||||||
const slider = document.getElementById('hero-slider-wrapper');
|
const slider = document.getElementById('hero-slider-wrapper');
|
||||||
if (slider && slider.children.length > 1) {
|
if (slider && slider.children.length > 1) {
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
@@ -359,7 +355,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
}, 4000);
|
}, 4000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. FAQ Accordion Toggle Interaction
|
|
||||||
document.querySelectorAll('.faq-header').forEach(function(header) {
|
document.querySelectorAll('.faq-header').forEach(function(header) {
|
||||||
header.addEventListener('click', function() {
|
header.addEventListener('click', function() {
|
||||||
const item = this.parentElement;
|
const item = this.parentElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user