]);
/**
** A base module for [count], Twitter-like character count
**/
/* form_tag handler */
add_action( 'wpcf7_init', 'wpcf7_add_form_tag_count', 10, 0 );
function wpcf7_add_form_tag_count() {
wpcf7_add_form_tag( 'count',
'wpcf7_count_form_tag_handler',
array(
'name-attr' => true,
'zero-controls-container' => true,
'not-for-mail' => true,
)
);
}
function wpcf7_count_form_tag_handler( $tag ) {
if ( empty( $tag->name ) ) {
return '';
}
$targets = wpcf7_scan_form_tags( array( 'name' => $tag->name ) );
$maxlength = $minlength = null;
while ( $targets ) {
$target = array_shift( $targets );
if ( 'count' !== $target->type ) {
$maxlength = $target->get_maxlength_option();
$minlength = $target->get_minlength_option();
break;
}
}
if ( $maxlength and $minlength
and $maxlength < $minlength ) {
$maxlength = $minlength = null;
}
if ( $tag->has_option( 'down' ) ) {
$value = (int) $maxlength;
$class = 'wpcf7-character-count down';
} else {
$value = '0';
$class = 'wpcf7-character-count up';
}
$atts = array();
$atts['id'] = $tag->get_id_option();
$atts['class'] = $tag->get_class_option( $class );
$atts['data-target-name'] = $tag->name;
$atts['data-starting-value'] = $value;
$atts['data-current-value'] = $value;
$atts['data-maximum-value'] = $maxlength;
$atts['data-minimum-value'] = $minlength;
$html = sprintf(
'%2$s',
wpcf7_format_atts( $atts ),
$value
);
return $html;
}
King Sales and Service Custom Sprockets » YAMAHA 90/100/110
YAMAHA 90/100/110
| HT 90 1, 1B |
70-71 |
49/52 |
234A |
30-76 |
C |
732 |
14 |
12-27 |
D |
428X106 |
| TTR 90 E |
00-07 |
35 |
134A |
28-76 |
A |
722 |
14 |
12-17 |
C |
420X86 |
| DT 100 |
74-76 |
49 |
234A |
30-76 |
C |
732 |
14 |
12-27 |
D |
428X106 |
| DT 100 |
77-83 |
45 |
134A |
28-76 |
A |
722 |
14 |
12-17 |
C |
420X102 |
| L, LT 100 |
70-73 |
49 |
234A |
30-76 |
C |
732 |
14 |
12-27 |
D |
428X106 |
| LS 100 |
72 |
42 |
134A |
28-76 |
A |
N/A |
|
|
|
420X106 |
| MX 100 |
74-78 |
52 |
234A |
30-76 |
C |
732 |
14 |
12-27 |
D |
428X110 |
| MX 100 |
79-83 |
48 |
134A |
28-76 |
A |
722 |
14 |
12-17 |
C |
420X104 |
| RT 100 |
90-00 |
48 |
134A |
28-76 |
A |
722 |
14 |
12-17 |
C |
420X104 |
| YZ 100 |
76-81 |
40/43/45 |
305A |
28-76 |
B |
652 |
12 |
11-14 |
C |
520X90/100 |
| YZ 100 |
82-83 |
50 |
311A |
42-76 |
B |
652 |
12 |
11-14 |
C |
520X106 |
| TTR 110 |
08-09 |
35 |
134A |
28-76 |
A |
722 |
14 |
12-17 |
C |
420X90 |