bloodcult

Kommentare

Mar 15th, 2021 (edited)
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1.     <?php
  2.     // If comments are closed and there are comments, let's leave a little note, shall we?
  3.     if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
  4.  
  5.         <p class="no-comments"><?php esc_html_e( 'Keine Kommentare möglich.', 'gema' ); ?></p>
  6.  
  7.     <?php endif;
  8.  
  9.     $req = get_option( 'require_name_email' );
  10.     $aria_req = ( $req ? " aria-required='true'" : '' );
  11.  
  12.     comment_form( array(
  13.         'comment_field' => '<p class="comment-form-comment"><label for="comment">' . esc_html_x( 'Comment', 'noun', 'gema' ) . '</label><textarea placeholder="' . esc_attr__( 'Comment', 'gema' ) . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
  14.         'comment_notes_before' => '',
  15.         'comment_notes_after' => '',
  16.         'label_submit' => esc_html__( 'Post', 'gema' )
  17.     ) );
  18.    
  19.     ?>
  20.     <p></p>
  21.     <hr />
  22.  
  23. ###############################################################
  24.  
  25.     <?php
  26.     // If comments are closed and there are comments, let's leave a little note, shall we?
  27.     if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
  28.  
  29.         <p class="no-comments"><?php esc_html_e( 'Keine Kommentare möglich.', 'gema' ); ?></p>
  30.  
  31.     <?php endif;
  32.  
  33.     $req = get_option( 'require_name_email' );
  34.     $aria_req = ( $req ? " aria-required='true'" : '' );
  35.     /*
  36.     comment_form( array(
  37.         'comment_field' => '<p class="comment-form-comment"><label for="comment">' . esc_html_x( 'Comment', 'noun', 'gema' ) . '</label><textarea placeholder="' . esc_attr__( 'Comment', 'gema' ) . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
  38.         'comment_notes_before' => '',
  39.         'comment_notes_after' => '',
  40.         'label_submit' => esc_html__( 'Post', 'gema' )
  41.     ) );
  42.     */
  43.    
  44.     ?>
  45.     <p class="no-comments">Kommentare sind heute nicht möglich.</p>
  46.     <p></p>
  47.     <hr />
Add Comment
Please, Sign In to add comment