Make WordPress Themes


Ignore:
Timestamp:
06/26/2025 04:57:24 PM (5 months ago)
Author:
themedropbox
Message:

New version of Blocksy - 2.1.1

Location:
blocksy/2.1.1
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • blocksy/2.1.1/inc/components/single/comments.php

    r265882 r277465  
    5454    $defaults['comment_field'] =
    5555        '<p class="comment-form-field-textarea">
    56             <label for="comment">' . __( 'Add Comment', 'blocksy' ) . '<b class="required">&nbsp;*</b></label>
     56            <label for="comment">' . __('Add Comment', 'blocksy') . '<b class="required">&nbsp;*</b></label>
    5757            <textarea id="comment" name="comment" cols="45" rows="8" required="required">' . '</textarea>
    5858        </p>';
     
    6969    ) {
    7070        $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        }
    7176
    7277        $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>';
    7479    }
    7580
     
    118123        $fields['author'] =
    119124            '<p class="comment-form-field-input-author">
    120             <label for="author">' . __( 'Name', 'blocksy' ) . ' ' . ($req ? '<b class="required">&nbsp;*</b>' : '') . '</label>
     125            <label for="author">' . __('Name', 'blocksy') . ' ' . ($req ? '<b class="required">&nbsp;*</b>' : '') . '</label>
    121126            <input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . '>
    122127            </p>';
     
    125130        $fields['email'] =
    126131            '<p class="comment-form-field-input-email">
    127                 <label for="email">' . __( 'Email', 'blocksy' ) . ' ' . ($req ? '<b class="required">&nbsp;*</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">&nbsp;*</b>' : '') . '</label>
     133                <input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . '>
    129134            </p>';
    130135
     
    134139            $website_field_output =
    135140                '<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">
    138143                </p>';
    139144        }
     
    248253                            array_merge(
    249254                                [
    250                                     'datetime' => get_comment_time( 'c' )
     255                                    'datetime' => get_comment_time('c')
    251256                                ],
    252257                                blocksy_schema_org_definitions('publish_date', [
     
    256261                            blocksy_safe_sprintf(
    257262                                /* 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())
    261266                            )
    262267                        );
    263268
    264                         if ( $meta_with_link ) {
     269                        if ($meta_with_link) {
    265270                            echo blocksy_html_tag(
    266271                                'a',
    267272                                [
    268                                     'href' => esc_attr( get_comment_link( $comment->comment_ID ) ),
     273                                    'href' => esc_attr(get_comment_link($comment->comment_ID)),
    269274                                ],
    270275                                $date_link_content
     
    279284                    ?>
    280285
    281                     <?php edit_comment_link( __( 'Edit', 'blocksy' ), '  ', '' ); ?>
     286                    <?php edit_comment_link(__('Edit', 'blocksy'), '  ', ''); ?>
    282287
    283288                    <?php
     
    301306                <?php comment_text(); ?>
    302307
    303                 <?php if ( '0' === $comment->comment_approved ) : ?>
     308                <?php if ('0' === $comment->comment_approved) : ?>
    304309                    <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'); ?>
    306311                    </em>
    307312                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.