Changeset 277465 for blocksy/2.1.1/inc/components/single/comments.php
- Timestamp:
- 06/26/2025 04:57:24 PM (5 months ago)
- Location:
- blocksy/2.1.1
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from blocksy/2.1.0)
-
inc/components/single/comments.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blocksy/2.1.1/inc/components/single/comments.php
r265882 r277465 54 54 $defaults['comment_field'] = 55 55 '<p class="comment-form-field-textarea"> 56 <label for="comment">' . __( 'Add Comment', 'blocksy') . '<b class="required"> *</b></label>56 <label for="comment">' . __('Add Comment', 'blocksy') . '<b class="required"> *</b></label> 57 57 <textarea id="comment" name="comment" cols="45" rows="8" required="required">' . '</textarea> 58 58 </p>'; … … 69 69 ) { 70 70 $consent = empty($commenter['comment_author_email']) ? '' : ' checked="checked"'; 71 $message = __('Save my name and email in this browser for the next time I comment.', 'blocksy'); 72 73 if ($has_website_field === 'yes') { 74 $message = __('Save my name, email and website in this browser for the next time I comment.', 'blocksy'); 75 } 71 76 72 77 $defaults['comment_notes_after'] .= '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . '>' . 73 '<label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.', 'blocksy'). '</label></p>';78 '<label for="wp-comment-cookies-consent">' . $message . '</label></p>'; 74 79 } 75 80 … … 118 123 $fields['author'] = 119 124 '<p class="comment-form-field-input-author"> 120 <label for="author">' . __( 'Name', 'blocksy') . ' ' . ($req ? '<b class="required"> *</b>' : '') . '</label>125 <label for="author">' . __('Name', 'blocksy') . ' ' . ($req ? '<b class="required"> *</b>' : '') . '</label> 121 126 <input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . '> 122 127 </p>'; … … 125 130 $fields['email'] = 126 131 '<p class="comment-form-field-input-email"> 127 <label for="email">' . __( 'Email', 'blocksy') . ' ' . ($req ? '<b class="required"> *</b>' : '') . '</label>128 <input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email']) . '" size="30"' . $aria_req . '>132 <label for="email">' . __('Email', 'blocksy') . ' ' . ($req ? '<b class="required"> *</b>' : '') . '</label> 133 <input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . '> 129 134 </p>'; 130 135 … … 134 139 $website_field_output = 135 140 '<p class="comment-form-field-input-url"> 136 <label for="url">' . __( 'Website', 'blocksy') . '</label>137 <input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url']) . '" size="30">141 <label for="url">' . __('Website', 'blocksy') . '</label> 142 <input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"> 138 143 </p>'; 139 144 } … … 248 253 array_merge( 249 254 [ 250 'datetime' => get_comment_time( 'c')255 'datetime' => get_comment_time('c') 251 256 ], 252 257 blocksy_schema_org_definitions('publish_date', [ … … 256 261 blocksy_safe_sprintf( 257 262 /* translators: 1: date, 2: time */ 258 wp_kses_post( __( '%1$s / %2$s', 'blocksy' )),259 wp_kses_post( get_comment_date()),260 wp_kses_post( get_comment_time())263 wp_kses_post(__('%1$s / %2$s', 'blocksy')), 264 wp_kses_post(get_comment_date()), 265 wp_kses_post(get_comment_time()) 261 266 ) 262 267 ); 263 268 264 if ( $meta_with_link) {269 if ($meta_with_link) { 265 270 echo blocksy_html_tag( 266 271 'a', 267 272 [ 268 'href' => esc_attr( get_comment_link( $comment->comment_ID )),273 'href' => esc_attr(get_comment_link($comment->comment_ID)), 269 274 ], 270 275 $date_link_content … … 279 284 ?> 280 285 281 <?php edit_comment_link( __( 'Edit', 'blocksy' ), ' ', ''); ?>286 <?php edit_comment_link(__('Edit', 'blocksy'), ' ', ''); ?> 282 287 283 288 <?php … … 301 306 <?php comment_text(); ?> 302 307 303 <?php if ( '0' === $comment->comment_approved) : ?>308 <?php if ('0' === $comment->comment_approved) : ?> 304 309 <em class="ct-awaiting-moderation"> 305 <?php esc_html_e( 'Your comment is awaiting moderation.', 'blocksy'); ?>310 <?php esc_html_e('Your comment is awaiting moderation.', 'blocksy'); ?> 306 311 </em> 307 312 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.