Advertisement
Guest User

ss

a guest
Jan 20th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.28 KB | None | 0 0
  1.                 <!-- KOMENTAR-->
  2.                 <div class="komentar">
  3.                     <?php if($comments) : ?>
  4.                     <?php foreach($comments as $comment) : ?>
  5.                     <div class="comment-box" id="comment-<?php comment_ID(); ?>">
  6.                         <div class="heading">
  7.                             <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQHCZuslFbn42wwA9qw6ywBERhtpr_yOFy3Cw&usqp=CAU" alt="emy">
  8.                         </div>
  9.                         <div class="content">
  10.                             <div class="h-in">
  11.                                 <div class="cont">
  12.                                     <strong><?php comment_author_link(); ?></strong>
  13.                                     <small class="pull-right">at <?php comment_time(); ?></small>
  14.                                     <br>
  15.                                 </div>
  16.                                 <?php if ($comment->comment_approved == '0') : ?>
  17.                                 <p>Your comment is awaiting approval</p>
  18.                                 <?php endif; ?>
  19.                                 <p><?php comment_text(); ?></p>
  20.                             </div>
  21.                             <!--                                <a href="#" class="btn btn-primary btn-sm" style="margin-bottom: 9px;">replay</a> -->
  22.                         </div>
  23.                     </div>
  24.                     <?php endforeach; ?>
  25.                     <?php else : ?>
  26.                     <div class="comment-box" id="comment-<?php comment_ID(); ?>">
  27.                         <div class="content">
  28.                             <p style="margin: 10px;">No comments yet</p>
  29.                         </div>
  30.                     </div>
  31.                     <?php endif; ?>
  32.                    
  33.                     <div class="judulkomentar">
  34.                         <strong>Tinggalkan Komentar</strong>
  35.                     </div>
  36.                     <div class="formulir">
  37.                         <?php if(comments_open()) : ?>
  38.                         <?php if(get_option('comment_registration') && !$user_ID) : ?>
  39.                         <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>
  40.                         <?php else : ?>
  41.                         <?php if($user_ID) : ?>
  42.                         <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php wp_get_current_user(); ?></a>.
  43.                             <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></p>
  44.                             <?php else : ?>
  45.                             <div class="mb-3">
  46.                                 <label for="exampleFormControlInput1" class="form-label">Nama</label>
  47.                                 <input type="text" name="author" class="form-control" value="<?php echo $comment_author; ?>" placeholder="Nama Kamu" require>
  48.                             </div>
  49.                             <div class="mb-3">
  50.                                 <label for="exampleFormControlInput1" class="form-label">Email</label>
  51.                                 <input type="email" name="email" class="form-control" value="<?php echo $comment_author_email; ?>" placeholder="Alamat Email Kamu" require>
  52.                             </div>
  53.                             <?php endif; ?>
  54.                             <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  55.                                 <div class="mb-3">
  56.                                     <label for="exampleFormControlTextarea1" class="form-label">Komentar</label>
  57.                                     <textarea class="form-control" name="comment" id="comment" rows="3" require></textarea>
  58.                                 </div>
  59.                                 <div class="btn">
  60.                                     <button class="btn" name="submit" type="submit" id="submit" style="background:#0d6efd;color:#fff;" type="submit">Kirim</button>
  61.                                 </div>
  62.                                 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  63.                                 <?php do_action('comment_form', $post->ID); ?>
  64.                             </form>
  65.                             <?php endif; ?>
  66.                             <?php else : ?>
  67.                             <p>The comments are closed.</p>
  68.                             <?php endif; ?>
  69.                         </div>
  70.                     </div>
  71.                    
  72.                     <!-- KOMENTAR END-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement