Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // If comments are closed and there are comments, let's leave a little note, shall we?
- if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
- <p class="no-comments"><?php esc_html_e( 'Keine Kommentare möglich.', 'gema' ); ?></p>
- <?php endif;
- $req = get_option( 'require_name_email' );
- $aria_req = ( $req ? " aria-required='true'" : '' );
- comment_form( array(
- '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>',
- 'comment_notes_before' => '',
- 'comment_notes_after' => '',
- 'label_submit' => esc_html__( 'Post', 'gema' )
- ) );
- ?>
- <p></p>
- <hr />
- ###############################################################
- <?php
- // If comments are closed and there are comments, let's leave a little note, shall we?
- if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
- <p class="no-comments"><?php esc_html_e( 'Keine Kommentare möglich.', 'gema' ); ?></p>
- <?php endif;
- $req = get_option( 'require_name_email' );
- $aria_req = ( $req ? " aria-required='true'" : '' );
- /*
- comment_form( array(
- '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>',
- 'comment_notes_before' => '',
- 'comment_notes_after' => '',
- 'label_submit' => esc_html__( 'Post', 'gema' )
- ) );
- */
- ?>
- <p class="no-comments">Kommentare sind heute nicht möglich.</p>
- <p></p>
- <hr />
Add Comment
Please, Sign In to add comment