|
4 | 4 | */ |
5 | 5 |
|
6 | 6 | // Do not delete these lines |
7 | | - if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) |
| 7 | + if ( ! empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) |
8 | 8 | die ('Please do not load this page directly. Thanks!'); |
9 | 9 |
|
10 | 10 | if ( post_password_required() ) { ?> |
11 | 11 | <div class="alert alert-help"> |
12 | | - <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "bonestheme"); ?></p> |
| 12 | + <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'bonestheme' ); ?></p> |
13 | 13 | </div> |
14 | 14 | <?php |
15 | 15 | return; |
|
19 | 19 | <!-- You can start editing here. --> |
20 | 20 |
|
21 | 21 | <?php if ( have_comments() ) : ?> |
22 | | - <h3 id="comments" class="h2"><?php comments_number(__('<span>No</span> Responses', 'bonestheme'), __('<span>One</span> Response', 'bonestheme'), _n('<span>%</span> Response', '<span>%</span> Responses', get_comments_number(),'bonestheme') );?> to “<?php the_title(); ?>”</h3> |
| 22 | + <h3 id="comments" class="h2"><?php comments_number( __( '<span>No</span> Responses', 'bonestheme' ), __( '<span>One</span> Response', 'bonestheme' ), _n( '<span>%</span> Response', '<span>%</span> Responses', get_comments_number(), 'bonestheme' ) );?> to “<?php the_title(); ?>”</h3> |
23 | 23 |
|
24 | 24 | <nav id="comment-nav"> |
25 | 25 | <ul class="clearfix"> |
|
29 | 29 | </nav> |
30 | 30 |
|
31 | 31 | <ol class="commentlist"> |
32 | | - <?php wp_list_comments('type=comment&callback=bones_comments'); ?> |
| 32 | + <?php wp_list_comments( 'type=comment&callback=bones_comments' ); ?> |
33 | 33 | </ol> |
34 | 34 |
|
35 | 35 | <nav id="comment-nav"> |
|
47 | 47 | <?php else : // comments are closed ?> |
48 | 48 |
|
49 | 49 | <!-- If comments are closed. --> |
50 | | - <!--p class="nocomments"><?php _e("Comments are closed.", "bonestheme"); ?></p--> |
| 50 | + <!--p class="nocomments"><?php _e( 'Comments are closed.', 'bonestheme' ); ?></p--> |
51 | 51 |
|
52 | 52 | <?php endif; ?> |
53 | 53 |
|
|
58 | 58 |
|
59 | 59 | <section id="respond" class="respond-form"> |
60 | 60 |
|
61 | | - <h3 id="comment-form-title" class="h2"><?php comment_form_title( __('Leave a Reply', 'bonestheme'), __('Leave a Reply to %s', 'bonestheme' )); ?></h3> |
| 61 | + <h3 id="comment-form-title" class="h2"><?php comment_form_title( __( 'Leave a Reply', 'bonestheme' ), __( 'Leave a Reply to %s', 'bonestheme' )); ?></h3> |
62 | 62 |
|
63 | 63 | <div id="cancel-comment-reply"> |
64 | 64 | <p class="small"><?php cancel_comment_reply_link(); ?></p> |
65 | 65 | </div> |
66 | 66 |
|
67 | 67 | <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> |
68 | 68 | <div class="alert alert-help"> |
69 | | - <p><?php printf( __('You must be %1$slogged in%2$s to post a comment.', 'bonestheme'), '<a href="<?php echo wp_login_url( get_permalink() ); ?>">', '</a>' ); ?></p> |
| 69 | + <p><?php printf( __( 'You must be %1$slogged in%2$s to post a comment.', 'bonestheme' ), '<a href="<?php echo wp_login_url( get_permalink() ); ?>">', '</a>' ); ?></p> |
70 | 70 | </div> |
71 | 71 | <?php else : ?> |
72 | 72 |
|
73 | 73 | <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
74 | 74 |
|
75 | 75 | <?php if ( is_user_logged_in() ) : ?> |
76 | 76 |
|
77 | | - <p class="comments-logged-in-as"><?php _e("Logged in as", "bonestheme"); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e("Log out of this account", "bonestheme"); ?>"><?php _e("Log out", "bonestheme"); ?> <?php _e("»", "bonestheme"); ?></a></p> |
| 77 | + <p class="comments-logged-in-as"><?php _e( 'Logged in as', 'bonestheme' ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e( 'Log out of this account', 'bonestheme' ); ?>"><?php _e( 'Log out', 'bonestheme' ); ?> <?php _e( '»', 'bonestheme' ); ?></a></p> |
78 | 78 |
|
79 | 79 | <?php else : ?> |
80 | 80 |
|
81 | 81 | <ul id="comment-form-elements" class="clearfix"> |
82 | 82 |
|
83 | 83 | <li> |
84 | | - <label for="author"><?php _e("Name", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label> |
85 | | - <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="<?php _e('Your Name*', 'bonestheme'); ?>" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> |
| 84 | + <label for="author"><?php _e( 'Name', 'bonestheme' ); ?> <?php if ($req) _e( '(required)'); ?></label> |
| 85 | + <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="<?php _e( 'Your Name*', 'bonestheme' ); ?>" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> |
86 | 86 | </li> |
87 | 87 |
|
88 | 88 | <li> |
89 | | - <label for="email"><?php _e("Mail", "bonestheme"); ?> <?php if ($req) _e("(required)"); ?></label> |
90 | | - <input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="<?php _e('Your E-Mail*', 'bonestheme'); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> |
91 | | - <small><?php _e("(will not be published)", "bonestheme"); ?></small> |
| 89 | + <label for="email"><?php _e( 'Mail', 'bonestheme' ); ?> <?php if ($req) _e( '(required)'); ?></label> |
| 90 | + <input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="<?php _e( 'Your E-Mail*', 'bonestheme' ); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> |
| 91 | + <small><?php _e("(will not be published)", 'bonestheme' ); ?></small> |
92 | 92 | </li> |
93 | 93 |
|
94 | 94 | <li> |
95 | | - <label for="url"><?php _e("Website", "bonestheme"); ?></label> |
96 | | - <input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="<?php _e('Got a website?', 'bonestheme'); ?>" tabindex="3" /> |
| 95 | + <label for="url"><?php _e( 'Website', 'bonestheme' ); ?></label> |
| 96 | + <input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="<?php _e( 'Got a website?', 'bonestheme' ); ?>" tabindex="3" /> |
97 | 97 | </li> |
98 | 98 |
|
99 | 99 | </ul> |
100 | 100 |
|
101 | 101 | <?php endif; ?> |
102 | 102 |
|
103 | | - <p><textarea name="comment" id="comment" placeholder="<?php _e('Your Comment here...', 'bonestheme'); ?>" tabindex="4"></textarea></p> |
| 103 | + <p><textarea name="comment" id="comment" placeholder="<?php _e( 'Your Comment here...', 'bonestheme' ); ?>" tabindex="4"></textarea></p> |
104 | 104 |
|
105 | 105 | <p> |
106 | | - <input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e('Submit', 'bonestheme'); ?>" /> |
| 106 | + <input name="submit" type="submit" id="submit" class="button" tabindex="5" value="<?php _e( 'Submit', 'bonestheme' ); ?>" /> |
107 | 107 | <?php comment_id_fields(); ?> |
108 | 108 | </p> |
109 | 109 |
|
110 | 110 | <div class="alert alert-info"> |
111 | | - <p id="allowed_tags" class="small"><strong>XHTML:</strong> <?php _e('You can use these tags', 'bonestheme'); ?>: <code><?php echo allowed_tags(); ?></code></p> |
| 111 | + <p id="allowed_tags" class="small"><strong>XHTML:</strong> <?php _e( 'You can use these tags', 'bonestheme' ); ?>: <code><?php echo allowed_tags(); ?></code></p> |
112 | 112 | </div> |
113 | 113 |
|
114 | | - <?php do_action('comment_form', $post->ID); ?> |
| 114 | + <?php do_action( 'comment_form', $post->ID ); ?> |
115 | 115 |
|
116 | 116 | </form> |
117 | 117 |
|
|
0 commit comments