Repository navigation
Expand file tree
/
Copy pathsingle.php
More file actions
91 lines (81 loc) · 4.18 KB
/
Copy pathsingle.php
File metadata and controls
91 lines (81 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php get_header(); ?>
<main class="site-main container">
<!-- Mobile Drawer Triggers -->
<div class="mobile-drawer-triggers">
<button id="trigger-toc" class="drawer-btn" aria-label="<?php echo esc_attr( cb_t( 'toc', 'Daftar Isi' ) ); ?>">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>
</button>
<button id="trigger-info" class="drawer-btn" aria-label="<?php echo esc_attr( cb_t( 'info', 'Info' ) ); ?>">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
</button>
</div>
<!-- Drawer Backdrop -->
<div class="mobile-drawer-backdrop"></div>
<div class="three-column-layout">
<!-- Left Column: Table of Contents -->
<aside class="sidebar-toc mobile-drawer" id="drawer-toc">
<!-- Mobile Close Button -->
<button class="drawer-close-btn" aria-label="Close">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
<?php echo credibleblog_generate_toc(); ?>
</aside>
<!-- Middle Column: Main Content -->
<div class="main-content-column">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content/content-single' );
endwhile;
?>
</div>
<!-- Right Column: Ads Sidebar -->
<aside class="sidebar-ads-column mobile-drawer" id="drawer-info">
<!-- Mobile Close Button -->
<button class="drawer-close-btn" aria-label="Close">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
<?php if ( is_active_sidebar( 'sidebar-ads' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-ads' ); ?>
<?php else : ?>
<div class="ads-clean-placeholder">
<p><?php echo esc_html( cb_t( 'ad_placeholder' ) ); ?></p>
</div>
<?php endif; ?>
</aside>
</div>
<!-- Full Width Related Articles & Comments -->
<?php get_template_part( 'template-parts/post/content-related' ); ?>
<!-- Comments & Ads Layout -->
<div class="comments-layout-wrapper">
<!-- Left Sidebar -->
<aside class="comments-sidebar-left">
<?php if ( is_active_sidebar( 'sidebar-comments-left' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-comments-left' ); ?>
<?php else : ?>
<!-- Placeholder for Ads -->
<div class="ads-placeholder-box">
<span><?php echo esc_html( cb_t( 'ad_placeholder_left', 'Iklan Kiri' ) ); ?></span>
</div>
<?php endif; ?>
</aside>
<div class="comments-column">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
<!-- Right Sidebar -->
<aside class="comments-sidebar-right">
<?php if ( is_active_sidebar( 'sidebar-comments' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-comments' ); ?>
<?php else : ?>
<!-- Placeholder for Ads -->
<div class="ads-placeholder-box">
<span><?php echo esc_html( cb_t( 'ad_placeholder_right', 'Iklan Kanan' ) ); ?></span>
</div>
<?php endif; ?>
</aside>
</div>
</main>
<?php get_footer(); ?>