Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- KOMENTAR-->
- <div class="komentar">
- <?php if($comments) : ?>
- <?php foreach($comments as $comment) : ?>
- <div class="comment-box" id="comment-<?php comment_ID(); ?>">
- <div class="heading">
- <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQHCZuslFbn42wwA9qw6ywBERhtpr_yOFy3Cw&usqp=CAU" alt="emy">
- </div>
- <div class="content">
- <div class="h-in">
- <div class="cont">
- <strong><?php comment_author_link(); ?></strong>
- <small class="pull-right">at <?php comment_time(); ?></small>
- <br>
- </div>
- <?php if ($comment->comment_approved == '0') : ?>
- <p>Your comment is awaiting approval</p>
- <?php endif; ?>
- <p><?php comment_text(); ?></p>
- </div>
- <!-- <a href="#" class="btn btn-primary btn-sm" style="margin-bottom: 9px;">replay</a> -->
- </div>
- </div>
- <?php endforeach; ?>
- <?php else : ?>
- <div class="comment-box" id="comment-<?php comment_ID(); ?>">
- <div class="content">
- <p style="margin: 10px;">No comments yet</p>
- </div>
- </div>
- <?php endif; ?>
- <div class="judulkomentar">
- <strong>Tinggalkan Komentar</strong>
- </div>
- <div class="formulir">
- <?php if(comments_open()) : ?>
- <?php if(get_option('comment_registration') && !$user_ID) : ?>
- <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
- <?php else : ?>
- <?php if($user_ID) : ?>
- <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php wp_get_current_user(); ?></a>.
- <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out »</a></p>
- <?php else : ?>
- <div class="mb-3">
- <label for="exampleFormControlInput1" class="form-label">Nama</label>
- <input type="text" name="author" class="form-control" value="<?php echo $comment_author; ?>" placeholder="Nama Kamu" require>
- </div>
- <div class="mb-3">
- <label for="exampleFormControlInput1" class="form-label">Email</label>
- <input type="email" name="email" class="form-control" value="<?php echo $comment_author_email; ?>" placeholder="Alamat Email Kamu" require>
- </div>
- <?php endif; ?>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <div class="mb-3">
- <label for="exampleFormControlTextarea1" class="form-label">Komentar</label>
- <textarea class="form-control" name="comment" id="comment" rows="3" require></textarea>
- </div>
- <div class="btn">
- <button class="btn" name="submit" type="submit" id="submit" style="background:#0d6efd;color:#fff;" type="submit">Kirim</button>
- </div>
- <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- <?php endif; ?>
- <?php else : ?>
- <p>The comments are closed.</p>
- <?php endif; ?>
- </div>
- </div>
- <!-- KOMENTAR END-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement