Plugin Directory

Changeset 2852157


Ignore:
Timestamp:
01/21/2023 05:30:13 AM (3 years ago)
Author:
solaito
Message:

Version up 1.0.2

Location:
dob-field-for-cf7
Files:
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • dob-field-for-cf7/tags/1.0.2/dob-field-for-cf7.php

    r2831328 r2852157  
    77 * Author URI:      https://tonica.llc/
    88 * Text Domain:     dob-field-for-cf7
    9  * Version:         1.0.0
     9 * Version:         1.0.2
    1010 */
    1111
    12 const WATTS_TEXT_DOMAIN = 'dob-field-for-cf7';
     12const DOB_FIELD_FOR_CF7_TEXT_DOMAIN = 'dob-field-for-cf7';
    1313
    1414require_once "modules/dob.php";
  • dob-field-for-cf7/tags/1.0.2/modules/dob.php

    r2831328 r2852157  
    6868
    6969    $html_parts = [
    70         'year'  => dob_field_for_cf7_form_part( $tag, $atts, 'year', $default_value['year'], range( $start_year, $until_year ), esc_html( __( 'Year', WATTS_TEXT_DOMAIN ) ) ),
    71         'month' => dob_field_for_cf7_form_part( $tag, $atts, 'month', $default_value['month'], range( 1, 12 ), esc_html( __( 'Month', WATTS_TEXT_DOMAIN ) ) ),
    72         'day'   => dob_field_for_cf7_form_part( $tag, $atts, 'day', $default_value['day'], range( 1, 31 ), esc_html( __( 'Day', WATTS_TEXT_DOMAIN ) ) )
     70        'year'  => dob_field_for_cf7_form_part( $tag, $atts, 'year', $default_value['year'], range( $start_year, $until_year ), esc_html( __( 'Year', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) ),
     71        'month' => dob_field_for_cf7_form_part( $tag, $atts, 'month', $default_value['month'], range( 1, 12 ), esc_html( __( 'Month', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) ),
     72        'day'   => dob_field_for_cf7_form_part( $tag, $atts, 'day', $default_value['day'], range( 1, 31 ), esc_html( __( 'Day', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) )
    7373    ];
    7474
     
    215215    } else if ( ! checkdate( $values['month'], $values['day'], $values['year'] ) ) {
    216216        // 数値が入力されていた場合のチェック
    217         $result->invalidate( $tag, __( 'The date specified is not a valid date value.', WATTS_TEXT_DOMAIN ) );
     217        $result->invalidate( $tag, __( 'The date specified is not a valid date value.', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) );
    218218    }
    219219
     
    225225function dob_field_for_cf7_add_tag_generator_dob() {
    226226    $tag_generator = WPCF7_TagGenerator::get_instance();
    227     $tag_generator->add( 'dob', __( 'DOB', WATTS_TEXT_DOMAIN ),
     227    $tag_generator->add( 'dob', __( 'DOB', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ),
    228228        'dob_field_for_cf7_tag_generator_dob' );
    229229}
     
    233233    $type = 'dob';
    234234
    235     $description = __( "Generate a form-tag for a date of birth input field.", WATTS_TEXT_DOMAIN );
     235    $description = __( "Generate a form-tag for a date of birth input field.", DOB_FIELD_FOR_CF7_TEXT_DOMAIN );
    236236
    237237    ?>
     
    243243                <tbody>
    244244                <tr>
    245                     <th scope="row"><?php echo esc_html( __( 'Field type', WATTS_TEXT_DOMAIN ) ); ?></th>
     245                    <th scope="row"><?php echo esc_html( __( 'Field type', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
    246246                    <td>
    247247                        <fieldset>
    248248                            <legend
    249                                 class="screen-reader-text"><?php echo esc_html( __( 'Field type', WATTS_TEXT_DOMAIN ) ); ?></legend>
     249                                class="screen-reader-text"><?php echo esc_html( __( 'Field type', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    250250                            <label><input type="checkbox"
    251                                           name="required"/> <?php echo esc_html( __( 'Required field', WATTS_TEXT_DOMAIN ) ); ?>
     251                                          name="required"/> <?php echo esc_html( __( 'Required field', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    252252                            </label>
    253253                        </fieldset>
     
    257257                <tr>
    258258                    <th scope="row"><label
    259                             for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', WATTS_TEXT_DOMAIN ) ); ?></label>
     259                            for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    260260                    </th>
    261261                    <td><input type="text" name="name" class="tg-name oneline"
     
    265265                <tr>
    266266                    <th scope="row"><label
    267                             for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', WATTS_TEXT_DOMAIN ) ); ?></label>
     267                            for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    268268                    </th>
    269269                    <td><input type="text" name="values" class="oneline"
     
    272272
    273273                <tr>
    274                     <th scope="row"><?php echo esc_html( __( 'Options', WATTS_TEXT_DOMAIN ) ); ?></th>
     274                    <th scope="row"><?php echo esc_html( __( 'Options', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
    275275                    <td>
    276276                        <fieldset>
    277277                            <legend
    278                                 class="screen-reader-text"><?php echo esc_html( __( 'Options', WATTS_TEXT_DOMAIN ) ); ?></legend>
     278                                class="screen-reader-text"><?php echo esc_html( __( 'Options', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    279279                            <label><input type="checkbox" name="include_blank"
    280                                           class="option"/> <?php echo esc_html( __( 'Insert a blank item as the first option', WATTS_TEXT_DOMAIN ) ); ?>
     280                                          class="option"/> <?php echo esc_html( __( 'Insert a blank item as the first option', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    281281                            </label>
    282282                        </fieldset>
     
    285285
    286286                <tr>
    287                     <th scope="row" rowspan="3"><?php echo esc_html( __( 'Date Format', WATTS_TEXT_DOMAIN ) ); ?></th>
    288                     <td>
    289                         <fieldset>
    290                             <legend><?php echo esc_html( __( 'Date Style', WATTS_TEXT_DOMAIN ) ); ?></legend>
     287                    <th scope="row" rowspan="3"><?php echo esc_html( __( 'Date Format', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
     288                    <td>
     289                        <fieldset>
     290                            <legend><?php echo esc_html( __( 'Date Style', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    291291                            <input type="radio" name="format" class="formatvalue option"
    292292                                   id="<?php echo esc_attr( $args['content'] . '-format-ymd' ); ?>" value="YMD" checked>
     
    304304                    <td>
    305305                        <fieldset>
    306                             <legend><?php echo esc_html( __( 'Date Separator', WATTS_TEXT_DOMAIN ) ); ?></legend>
     306                            <legend><?php echo esc_html( __( 'Date Separator', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    307307                            <input type="radio" name="separator" class="separatorvalue option"
    308308                                   id="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>" value="slash"
    309309                                   checked>
    310310                            <label
    311                                 for="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>"><?php echo esc_html( __( 'slash', WATTS_TEXT_DOMAIN ) ); ?></label>
     311                                for="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>"><?php echo esc_html( __( 'slash', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    312312                            <input type="radio" name="separator" class="separatorvalue option"
    313313                                   id="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>" value="dash">
    314314                            <label
    315                                 for="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>"><?php echo esc_html( __( 'dash', WATTS_TEXT_DOMAIN ) ); ?></label>
     315                                for="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>"><?php echo esc_html( __( 'dash', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    316316                            <input type="radio" name="separator" class="separatorvalue option"
    317317                                   id="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"
    318318                                   value="period">
    319319                            <label
    320                                 for="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"><?php echo esc_html( __( 'period', WATTS_TEXT_DOMAIN ) ); ?></label>
     320                                for="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"><?php echo esc_html( __( 'period', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    321321                            <input type="radio" name="separator" class="separatorvalue option"
    322322                                   id="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>" value="comma">
    323323                            <label
    324                                 for="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>"><?php echo esc_html( __( 'comma', WATTS_TEXT_DOMAIN ) ); ?></label>
     324                                for="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>"><?php echo esc_html( __( 'comma', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    325325                            <input type="radio" name="separator" class="separatorvalue option"
    326326                                   id="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>" value="blank">
    327327                            <label
    328                                 for="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>"><?php echo esc_html( __( 'blank', WATTS_TEXT_DOMAIN ) ); ?></label>
    329                         </fieldset>
    330                     </td>
    331                 </tr>
    332 
    333                 <tr>
    334                     <td>
    335                         <fieldset>
    336                             <legend><?php echo esc_html( __( 'Display Leading Zero', WATTS_TEXT_DOMAIN ) ); ?></legend>
     328                                for="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>"><?php echo esc_html( __( 'blank', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
     329                        </fieldset>
     330                    </td>
     331                </tr>
     332
     333                <tr>
     334                    <td>
     335                        <fieldset>
     336                            <legend><?php echo esc_html( __( 'Display Leading Zero', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    337337                            <label><input type="checkbox" name="leading_zero"
    338                                           class="option"/> <?php echo esc_html( __( 'Indicates whether to display (or suppress) leading zeros.', WATTS_TEXT_DOMAIN ) ); ?>
     338                                          class="option"/> <?php echo esc_html( __( 'Indicates whether to display (or suppress) leading zeros.', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    339339                            </label>
    340340                        </fieldset>
     
    344344                <tr>
    345345                    <th scope="row"><label
    346                             for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', WATTS_TEXT_DOMAIN ) ); ?></label>
     346                            for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    347347                    </th>
    348348                    <td><input type="text" name="id" class="idvalue oneline option"
     
    352352                <tr>
    353353                    <th scope="row"><label
    354                             for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', WATTS_TEXT_DOMAIN ) ); ?></label>
     354                            for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    355355                    </th>
    356356                    <td><input type="text" name="class" class="classvalue oneline option"
     
    367367        <div class="submitbox">
    368368            <input type="button" class="button button-primary insert-tag"
    369                    value="<?php echo esc_attr( __( 'Insert Tag', WATTS_TEXT_DOMAIN ) ); ?>"/>
     369                   value="<?php echo esc_attr( __( 'Insert Tag', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>"/>
    370370        </div>
    371371
     
    373373
    374374        <p class="description mail-tag"><label
    375                 for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", WATTS_TEXT_DOMAIN ) ), '<strong><span class="mail-tag"></span></strong>' ); ?>
     375                for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ), '<strong><span class="mail-tag"></span></strong>' ); ?>
    376376                <input type="text" class="mail-tag code hidden" readonly="readonly"
    377377                       id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"/></label></p>
  • dob-field-for-cf7/tags/1.0.2/readme.txt

    r2848952 r2852157  
    66Tested up to: 6.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4646== Changelog ==
    4747
     48= 1.0.2 =
     49* Fix Text Domain.
     50
     51= 1.0.1 =
     52* Fix Contributors.
     53
    4854= 1.0.0 =
    4955* First Release.
  • dob-field-for-cf7/trunk/dob-field-for-cf7.php

    r2831328 r2852157  
    77 * Author URI:      https://tonica.llc/
    88 * Text Domain:     dob-field-for-cf7
    9  * Version:         1.0.0
     9 * Version:         1.0.2
    1010 */
    1111
    12 const WATTS_TEXT_DOMAIN = 'dob-field-for-cf7';
     12const DOB_FIELD_FOR_CF7_TEXT_DOMAIN = 'dob-field-for-cf7';
    1313
    1414require_once "modules/dob.php";
  • dob-field-for-cf7/trunk/modules/dob.php

    r2831328 r2852157  
    6868
    6969    $html_parts = [
    70         'year'  => dob_field_for_cf7_form_part( $tag, $atts, 'year', $default_value['year'], range( $start_year, $until_year ), esc_html( __( 'Year', WATTS_TEXT_DOMAIN ) ) ),
    71         'month' => dob_field_for_cf7_form_part( $tag, $atts, 'month', $default_value['month'], range( 1, 12 ), esc_html( __( 'Month', WATTS_TEXT_DOMAIN ) ) ),
    72         'day'   => dob_field_for_cf7_form_part( $tag, $atts, 'day', $default_value['day'], range( 1, 31 ), esc_html( __( 'Day', WATTS_TEXT_DOMAIN ) ) )
     70        'year'  => dob_field_for_cf7_form_part( $tag, $atts, 'year', $default_value['year'], range( $start_year, $until_year ), esc_html( __( 'Year', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) ),
     71        'month' => dob_field_for_cf7_form_part( $tag, $atts, 'month', $default_value['month'], range( 1, 12 ), esc_html( __( 'Month', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) ),
     72        'day'   => dob_field_for_cf7_form_part( $tag, $atts, 'day', $default_value['day'], range( 1, 31 ), esc_html( __( 'Day', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ) )
    7373    ];
    7474
     
    215215    } else if ( ! checkdate( $values['month'], $values['day'], $values['year'] ) ) {
    216216        // 数値が入力されていた場合のチェック
    217         $result->invalidate( $tag, __( 'The date specified is not a valid date value.', WATTS_TEXT_DOMAIN ) );
     217        $result->invalidate( $tag, __( 'The date specified is not a valid date value.', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) );
    218218    }
    219219
     
    225225function dob_field_for_cf7_add_tag_generator_dob() {
    226226    $tag_generator = WPCF7_TagGenerator::get_instance();
    227     $tag_generator->add( 'dob', __( 'DOB', WATTS_TEXT_DOMAIN ),
     227    $tag_generator->add( 'dob', __( 'DOB', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ),
    228228        'dob_field_for_cf7_tag_generator_dob' );
    229229}
     
    233233    $type = 'dob';
    234234
    235     $description = __( "Generate a form-tag for a date of birth input field.", WATTS_TEXT_DOMAIN );
     235    $description = __( "Generate a form-tag for a date of birth input field.", DOB_FIELD_FOR_CF7_TEXT_DOMAIN );
    236236
    237237    ?>
     
    243243                <tbody>
    244244                <tr>
    245                     <th scope="row"><?php echo esc_html( __( 'Field type', WATTS_TEXT_DOMAIN ) ); ?></th>
     245                    <th scope="row"><?php echo esc_html( __( 'Field type', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
    246246                    <td>
    247247                        <fieldset>
    248248                            <legend
    249                                 class="screen-reader-text"><?php echo esc_html( __( 'Field type', WATTS_TEXT_DOMAIN ) ); ?></legend>
     249                                class="screen-reader-text"><?php echo esc_html( __( 'Field type', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    250250                            <label><input type="checkbox"
    251                                           name="required"/> <?php echo esc_html( __( 'Required field', WATTS_TEXT_DOMAIN ) ); ?>
     251                                          name="required"/> <?php echo esc_html( __( 'Required field', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    252252                            </label>
    253253                        </fieldset>
     
    257257                <tr>
    258258                    <th scope="row"><label
    259                             for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', WATTS_TEXT_DOMAIN ) ); ?></label>
     259                            for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    260260                    </th>
    261261                    <td><input type="text" name="name" class="tg-name oneline"
     
    265265                <tr>
    266266                    <th scope="row"><label
    267                             for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', WATTS_TEXT_DOMAIN ) ); ?></label>
     267                            for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    268268                    </th>
    269269                    <td><input type="text" name="values" class="oneline"
     
    272272
    273273                <tr>
    274                     <th scope="row"><?php echo esc_html( __( 'Options', WATTS_TEXT_DOMAIN ) ); ?></th>
     274                    <th scope="row"><?php echo esc_html( __( 'Options', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
    275275                    <td>
    276276                        <fieldset>
    277277                            <legend
    278                                 class="screen-reader-text"><?php echo esc_html( __( 'Options', WATTS_TEXT_DOMAIN ) ); ?></legend>
     278                                class="screen-reader-text"><?php echo esc_html( __( 'Options', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    279279                            <label><input type="checkbox" name="include_blank"
    280                                           class="option"/> <?php echo esc_html( __( 'Insert a blank item as the first option', WATTS_TEXT_DOMAIN ) ); ?>
     280                                          class="option"/> <?php echo esc_html( __( 'Insert a blank item as the first option', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    281281                            </label>
    282282                        </fieldset>
     
    285285
    286286                <tr>
    287                     <th scope="row" rowspan="3"><?php echo esc_html( __( 'Date Format', WATTS_TEXT_DOMAIN ) ); ?></th>
    288                     <td>
    289                         <fieldset>
    290                             <legend><?php echo esc_html( __( 'Date Style', WATTS_TEXT_DOMAIN ) ); ?></legend>
     287                    <th scope="row" rowspan="3"><?php echo esc_html( __( 'Date Format', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></th>
     288                    <td>
     289                        <fieldset>
     290                            <legend><?php echo esc_html( __( 'Date Style', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    291291                            <input type="radio" name="format" class="formatvalue option"
    292292                                   id="<?php echo esc_attr( $args['content'] . '-format-ymd' ); ?>" value="YMD" checked>
     
    304304                    <td>
    305305                        <fieldset>
    306                             <legend><?php echo esc_html( __( 'Date Separator', WATTS_TEXT_DOMAIN ) ); ?></legend>
     306                            <legend><?php echo esc_html( __( 'Date Separator', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    307307                            <input type="radio" name="separator" class="separatorvalue option"
    308308                                   id="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>" value="slash"
    309309                                   checked>
    310310                            <label
    311                                 for="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>"><?php echo esc_html( __( 'slash', WATTS_TEXT_DOMAIN ) ); ?></label>
     311                                for="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>"><?php echo esc_html( __( 'slash', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    312312                            <input type="radio" name="separator" class="separatorvalue option"
    313313                                   id="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>" value="dash">
    314314                            <label
    315                                 for="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>"><?php echo esc_html( __( 'dash', WATTS_TEXT_DOMAIN ) ); ?></label>
     315                                for="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>"><?php echo esc_html( __( 'dash', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    316316                            <input type="radio" name="separator" class="separatorvalue option"
    317317                                   id="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"
    318318                                   value="period">
    319319                            <label
    320                                 for="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"><?php echo esc_html( __( 'period', WATTS_TEXT_DOMAIN ) ); ?></label>
     320                                for="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>"><?php echo esc_html( __( 'period', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    321321                            <input type="radio" name="separator" class="separatorvalue option"
    322322                                   id="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>" value="comma">
    323323                            <label
    324                                 for="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>"><?php echo esc_html( __( 'comma', WATTS_TEXT_DOMAIN ) ); ?></label>
     324                                for="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>"><?php echo esc_html( __( 'comma', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    325325                            <input type="radio" name="separator" class="separatorvalue option"
    326326                                   id="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>" value="blank">
    327327                            <label
    328                                 for="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>"><?php echo esc_html( __( 'blank', WATTS_TEXT_DOMAIN ) ); ?></label>
    329                         </fieldset>
    330                     </td>
    331                 </tr>
    332 
    333                 <tr>
    334                     <td>
    335                         <fieldset>
    336                             <legend><?php echo esc_html( __( 'Display Leading Zero', WATTS_TEXT_DOMAIN ) ); ?></legend>
     328                                for="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>"><?php echo esc_html( __( 'blank', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
     329                        </fieldset>
     330                    </td>
     331                </tr>
     332
     333                <tr>
     334                    <td>
     335                        <fieldset>
     336                            <legend><?php echo esc_html( __( 'Display Leading Zero', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></legend>
    337337                            <label><input type="checkbox" name="leading_zero"
    338                                           class="option"/> <?php echo esc_html( __( 'Indicates whether to display (or suppress) leading zeros.', WATTS_TEXT_DOMAIN ) ); ?>
     338                                          class="option"/> <?php echo esc_html( __( 'Indicates whether to display (or suppress) leading zeros.', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>
    339339                            </label>
    340340                        </fieldset>
     
    344344                <tr>
    345345                    <th scope="row"><label
    346                             for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', WATTS_TEXT_DOMAIN ) ); ?></label>
     346                            for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    347347                    </th>
    348348                    <td><input type="text" name="id" class="idvalue oneline option"
     
    352352                <tr>
    353353                    <th scope="row"><label
    354                             for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', WATTS_TEXT_DOMAIN ) ); ?></label>
     354                            for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?></label>
    355355                    </th>
    356356                    <td><input type="text" name="class" class="classvalue oneline option"
     
    367367        <div class="submitbox">
    368368            <input type="button" class="button button-primary insert-tag"
    369                    value="<?php echo esc_attr( __( 'Insert Tag', WATTS_TEXT_DOMAIN ) ); ?>"/>
     369                   value="<?php echo esc_attr( __( 'Insert Tag', DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ); ?>"/>
    370370        </div>
    371371
     
    373373
    374374        <p class="description mail-tag"><label
    375                 for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", WATTS_TEXT_DOMAIN ) ), '<strong><span class="mail-tag"></span></strong>' ); ?>
     375                for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", DOB_FIELD_FOR_CF7_TEXT_DOMAIN ) ), '<strong><span class="mail-tag"></span></strong>' ); ?>
    376376                <input type="text" class="mail-tag code hidden" readonly="readonly"
    377377                       id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"/></label></p>
  • dob-field-for-cf7/trunk/readme.txt

    r2848952 r2852157  
    66Tested up to: 6.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4646== Changelog ==
    4747
     48= 1.0.2 =
     49* Fix Text Domain.
     50
     51= 1.0.1 =
     52* Fix Contributors.
     53
    4854= 1.0.0 =
    4955* First Release.
Note: See TracChangeset for help on using the changeset viewer.