feat: tambahkan sidebar pada page.php, box html kustom, dan collapsible accordion dashboard
This commit is contained in:
+23
-3
@@ -32,7 +32,27 @@
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 3. Berita Terkini Dinamis -->
|
||||
<!-- 3. BOX HTML KUSTOM NATIVE (Maps, Widget Luar, Teks Tambahan) -->
|
||||
<?php
|
||||
if ( get_option( 'edukarsa_sidebar_tampil_html', 0 ) == 1 ) :
|
||||
$html_content = get_option( 'edukarsa_sidebar_html_content' );
|
||||
if ( ! empty( $html_content ) ) :
|
||||
$html_title = get_option( 'edukarsa_sidebar_html_title' );
|
||||
?>
|
||||
<div class="card-style sidebar-widget sidebar-custom-html-box">
|
||||
<?php if ( ! empty( $html_title ) ) : ?>
|
||||
<h3 class="sidebar-widget-title"><?php echo esc_html( $html_title ); ?></h3>
|
||||
<?php endif; ?>
|
||||
<div class="sidebar-html-rendered-content">
|
||||
<?php echo do_shortcode( wp_specialchars_decode( $html_content ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
|
||||
<!-- 4. Berita Terkini Dinamis -->
|
||||
<?php if ( get_option( 'edukarsa_sidebar_tampil_recent', 1 ) == 1 ) : ?>
|
||||
<div class="card-style sidebar-widget">
|
||||
<h3 class="sidebar-widget-title"><?php echo esc_html( get_option( 'edukarsa_sidebar_recent_title', 'Warta Terkini' ) ); ?></h3>
|
||||
@@ -72,7 +92,7 @@
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 4. Daftar Kategori Pilihan -->
|
||||
<!-- 5. Daftar Kategori Pilihan -->
|
||||
<?php if ( get_option( 'edukarsa_sidebar_tampil_cats', 1 ) == 1 ) : ?>
|
||||
<div class="card-style sidebar-widget">
|
||||
<h3 class="sidebar-widget-title"><?php echo esc_html( get_option( 'edukarsa_sidebar_cats_title', 'Kategori Pilihan' ) ); ?></h3>
|
||||
@@ -92,7 +112,7 @@
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 5. Banner Poster Promosi / Pengumuman Khusus -->
|
||||
<!-- 6. Banner Poster Sidebar -->
|
||||
<?php
|
||||
$banner_img = get_option( 'edukarsa_sidebar_banner_img' );
|
||||
if ( ! empty( $banner_img ) ) :
|
||||
|
||||
Reference in New Issue
Block a user