Changeset 2852157
- Timestamp:
- 01/21/2023 05:30:13 AM (3 years ago)
- Location:
- dob-field-for-cf7
- Files:
-
- 4 edited
- 5 copied
-
tags/1.0.2 (copied) (copied from dob-field-for-cf7/trunk)
-
tags/1.0.2/LICENSE (copied) (copied from dob-field-for-cf7/trunk/LICENSE)
-
tags/1.0.2/dob-field-for-cf7.php (copied) (copied from dob-field-for-cf7/trunk/dob-field-for-cf7.php) (1 diff)
-
tags/1.0.2/modules (copied) (copied from dob-field-for-cf7/trunk/modules)
-
tags/1.0.2/modules/dob.php (modified) (14 diffs)
-
tags/1.0.2/readme.txt (copied) (copied from dob-field-for-cf7/trunk/readme.txt) (2 diffs)
-
trunk/dob-field-for-cf7.php (modified) (1 diff)
-
trunk/modules/dob.php (modified) (14 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dob-field-for-cf7/tags/1.0.2/dob-field-for-cf7.php
r2831328 r2852157 7 7 * Author URI: https://tonica.llc/ 8 8 * Text Domain: dob-field-for-cf7 9 * Version: 1.0. 09 * Version: 1.0.2 10 10 */ 11 11 12 const WATTS_TEXT_DOMAIN = 'dob-field-for-cf7';12 const DOB_FIELD_FOR_CF7_TEXT_DOMAIN = 'dob-field-for-cf7'; 13 13 14 14 require_once "modules/dob.php"; -
dob-field-for-cf7/tags/1.0.2/modules/dob.php
r2831328 r2852157 68 68 69 69 $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 ) ) ) 73 73 ]; 74 74 … … 215 215 } else if ( ! checkdate( $values['month'], $values['day'], $values['year'] ) ) { 216 216 // 数値が入力されていた場合のチェック 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 ) ); 218 218 } 219 219 … … 225 225 function dob_field_for_cf7_add_tag_generator_dob() { 226 226 $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 ), 228 228 'dob_field_for_cf7_tag_generator_dob' ); 229 229 } … … 233 233 $type = 'dob'; 234 234 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 ); 236 236 237 237 ?> … … 243 243 <tbody> 244 244 <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> 246 246 <td> 247 247 <fieldset> 248 248 <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> 250 250 <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 ) ); ?> 252 252 </label> 253 253 </fieldset> … … 257 257 <tr> 258 258 <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> 260 260 </th> 261 261 <td><input type="text" name="name" class="tg-name oneline" … … 265 265 <tr> 266 266 <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> 268 268 </th> 269 269 <td><input type="text" name="values" class="oneline" … … 272 272 273 273 <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> 275 275 <td> 276 276 <fieldset> 277 277 <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> 279 279 <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 ) ); ?> 281 281 </label> 282 282 </fieldset> … … 285 285 286 286 <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> 291 291 <input type="radio" name="format" class="formatvalue option" 292 292 id="<?php echo esc_attr( $args['content'] . '-format-ymd' ); ?>" value="YMD" checked> … … 304 304 <td> 305 305 <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> 307 307 <input type="radio" name="separator" class="separatorvalue option" 308 308 id="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>" value="slash" 309 309 checked> 310 310 <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> 312 312 <input type="radio" name="separator" class="separatorvalue option" 313 313 id="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>" value="dash"> 314 314 <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> 316 316 <input type="radio" name="separator" class="separatorvalue option" 317 317 id="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>" 318 318 value="period"> 319 319 <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> 321 321 <input type="radio" name="separator" class="separatorvalue option" 322 322 id="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>" value="comma"> 323 323 <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> 325 325 <input type="radio" name="separator" class="separatorvalue option" 326 326 id="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>" value="blank"> 327 327 <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> 337 337 <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 ) ); ?> 339 339 </label> 340 340 </fieldset> … … 344 344 <tr> 345 345 <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> 347 347 </th> 348 348 <td><input type="text" name="id" class="idvalue oneline option" … … 352 352 <tr> 353 353 <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> 355 355 </th> 356 356 <td><input type="text" name="class" class="classvalue oneline option" … … 367 367 <div class="submitbox"> 368 368 <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 ) ); ?>"/> 370 370 </div> 371 371 … … 373 373 374 374 <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>' ); ?> 376 376 <input type="text" class="mail-tag code hidden" readonly="readonly" 377 377 id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"/></label></p> -
dob-field-for-cf7/tags/1.0.2/readme.txt
r2848952 r2852157 6 6 Tested up to: 6.1.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 46 46 == Changelog == 47 47 48 = 1.0.2 = 49 * Fix Text Domain. 50 51 = 1.0.1 = 52 * Fix Contributors. 53 48 54 = 1.0.0 = 49 55 * First Release. -
dob-field-for-cf7/trunk/dob-field-for-cf7.php
r2831328 r2852157 7 7 * Author URI: https://tonica.llc/ 8 8 * Text Domain: dob-field-for-cf7 9 * Version: 1.0. 09 * Version: 1.0.2 10 10 */ 11 11 12 const WATTS_TEXT_DOMAIN = 'dob-field-for-cf7';12 const DOB_FIELD_FOR_CF7_TEXT_DOMAIN = 'dob-field-for-cf7'; 13 13 14 14 require_once "modules/dob.php"; -
dob-field-for-cf7/trunk/modules/dob.php
r2831328 r2852157 68 68 69 69 $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 ) ) ) 73 73 ]; 74 74 … … 215 215 } else if ( ! checkdate( $values['month'], $values['day'], $values['year'] ) ) { 216 216 // 数値が入力されていた場合のチェック 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 ) ); 218 218 } 219 219 … … 225 225 function dob_field_for_cf7_add_tag_generator_dob() { 226 226 $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 ), 228 228 'dob_field_for_cf7_tag_generator_dob' ); 229 229 } … … 233 233 $type = 'dob'; 234 234 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 ); 236 236 237 237 ?> … … 243 243 <tbody> 244 244 <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> 246 246 <td> 247 247 <fieldset> 248 248 <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> 250 250 <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 ) ); ?> 252 252 </label> 253 253 </fieldset> … … 257 257 <tr> 258 258 <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> 260 260 </th> 261 261 <td><input type="text" name="name" class="tg-name oneline" … … 265 265 <tr> 266 266 <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> 268 268 </th> 269 269 <td><input type="text" name="values" class="oneline" … … 272 272 273 273 <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> 275 275 <td> 276 276 <fieldset> 277 277 <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> 279 279 <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 ) ); ?> 281 281 </label> 282 282 </fieldset> … … 285 285 286 286 <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> 291 291 <input type="radio" name="format" class="formatvalue option" 292 292 id="<?php echo esc_attr( $args['content'] . '-format-ymd' ); ?>" value="YMD" checked> … … 304 304 <td> 305 305 <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> 307 307 <input type="radio" name="separator" class="separatorvalue option" 308 308 id="<?php echo esc_attr( $args['content'] . '-separator-slash' ); ?>" value="slash" 309 309 checked> 310 310 <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> 312 312 <input type="radio" name="separator" class="separatorvalue option" 313 313 id="<?php echo esc_attr( $args['content'] . '-separator-dash' ); ?>" value="dash"> 314 314 <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> 316 316 <input type="radio" name="separator" class="separatorvalue option" 317 317 id="<?php echo esc_attr( $args['content'] . '-separator-period' ); ?>" 318 318 value="period"> 319 319 <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> 321 321 <input type="radio" name="separator" class="separatorvalue option" 322 322 id="<?php echo esc_attr( $args['content'] . '-separator-comma' ); ?>" value="comma"> 323 323 <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> 325 325 <input type="radio" name="separator" class="separatorvalue option" 326 326 id="<?php echo esc_attr( $args['content'] . '-separator-blank' ); ?>" value="blank"> 327 327 <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> 337 337 <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 ) ); ?> 339 339 </label> 340 340 </fieldset> … … 344 344 <tr> 345 345 <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> 347 347 </th> 348 348 <td><input type="text" name="id" class="idvalue oneline option" … … 352 352 <tr> 353 353 <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> 355 355 </th> 356 356 <td><input type="text" name="class" class="classvalue oneline option" … … 367 367 <div class="submitbox"> 368 368 <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 ) ); ?>"/> 370 370 </div> 371 371 … … 373 373 374 374 <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>' ); ?> 376 376 <input type="text" class="mail-tag code hidden" readonly="readonly" 377 377 id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"/></label></p> -
dob-field-for-cf7/trunk/readme.txt
r2848952 r2852157 6 6 Tested up to: 6.1.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 46 46 == Changelog == 47 47 48 = 1.0.2 = 49 * Fix Text Domain. 50 51 = 1.0.1 = 52 * Fix Contributors. 53 48 54 = 1.0.0 = 49 55 * First Release.
Note: See TracChangeset
for help on using the changeset viewer.