fix(review-guidelines): lengkapi comments_template pada page.php dan standardisasi i18n
This commit is contained in:
@@ -1,34 +1,21 @@
|
|||||||
<?php defined( 'ABSPATH' ) || exit; ?>
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
defined( 'ABSPATH' ) || exit;
|
||||||
* Template Halaman Statis (Page) EduKarsa
|
|
||||||
* Menampilkan konten halaman penuh dan sidebar kustom yang sinkron dengan single.php
|
|
||||||
*/
|
|
||||||
get_header();
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
get_header();
|
||||||
|
?>
|
||||||
<main id="primary" class="site-main" style="padding: 45px 0 70px; background-color: #f8fafc; min-height: 75vh;">
|
<main id="primary" class="site-main" style="padding: 45px 0 70px; background-color: #f8fafc; min-height: 75vh;">
|
||||||
<div class="container single-layout-wrapper">
|
<div class="container single-layout-wrapper">
|
||||||
|
|
||||||
<!-- KOLOM KONTEN HALAMAN -->
|
|
||||||
<div class="single-content-column">
|
<div class="single-content-column">
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
<nav class="edukarsa-breadcrumbs" aria-label="<?php esc_attr_e( 'Breadcrumb', 'edukarsa' ); ?>">
|
||||||
<!-- Breadcrumbs -->
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Beranda', 'edukarsa' ); ?></a>
|
||||||
<nav class="edukarsa-breadcrumbs" aria-label="Breadcrumb">
|
|
||||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">Beranda</a>
|
|
||||||
<span class="bc-sep">/</span>
|
<span class="bc-sep">/</span>
|
||||||
<span class="bc-current"><?php the_title(); ?></span>
|
<span class="bc-current"><?php the_title(); ?></span>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'card-style single-article-card' ); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'card-style single-article-card' ); ?>>
|
||||||
|
|
||||||
<header class="entry-header" style="margin-bottom: 25px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px;">
|
<header class="entry-header" style="margin-bottom: 25px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px;">
|
||||||
<h1 class="single-article-title" style="margin: 0;">
|
<h1 class="single-article-title" style="margin: 0;"><?php the_title(); ?></h1>
|
||||||
<?php the_title(); ?>
|
|
||||||
</h1>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php if ( has_post_thumbnail() ) : ?>
|
<?php if ( has_post_thumbnail() ) : ?>
|
||||||
<div class="single-featured-image">
|
<div class="single-featured-image">
|
||||||
<?php the_post_thumbnail( 'full' ); ?>
|
<?php the_post_thumbnail( 'full' ); ?>
|
||||||
@@ -37,34 +24,30 @@ get_header();
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
the_content();
|
the_content();
|
||||||
|
|
||||||
// Paginasi internal halaman jika konten dipecah dengan <!--nextpage-->
|
|
||||||
wp_link_pages( array(
|
wp_link_pages( array(
|
||||||
'before' => '<div class="intra-post-pagination"><span class="page-links-title">' . __( 'Halaman:', 'edukarsa' ) . '</span>',
|
'before' => '<div class="intra-post-pagination"><span class="page-links-title">' . esc_html__( 'Halaman:', 'edukarsa' ) . '</span>',
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span class="page-number-box">',
|
'link_before' => '<span class="page-number-box">',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
) );
|
) );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( comments_open() || get_comments_number() ) :
|
||||||
|
comments_template();
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- KOLOM SIDEBAR DINAMIS -->
|
|
||||||
<div class="single-sidebar-column">
|
<div class="single-sidebar-column">
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
<?php
|
||||||
<?php
|
get_footer();
|
||||||
get_footer();
|
|
||||||
?>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user