]);
/**
** 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 500/550
YAMAHA 500/550
| RZ 500 |
85-86 |
40 |
322A |
34-76 |
D |
777 |
15 |
13-17 |
L |
530 |
| SC 500 |
73-74 |
51 |
243A |
30-76 |
B |
756 |
16 |
11-16 |
D |
520X106 |
| SR 500 |
78-81 |
44 |
135A |
41-76 |
D |
776 |
16 |
12-17 |
G |
530X104 |
| TT 500 |
76-81 |
52/50 |
260A |
38-76 |
B |
756 |
15 |
11-16 |
D |
520X104 |
| TX 500 |
73-74 |
43 |
210A |
30-76 |
D |
776 |
17 |
12-17 |
G |
530X108 |
| WR 500 Z D, E |
92-93 |
50 |
311A |
42-76 |
B |
555 |
15 |
12-16 |
C |
520X118 |
| XS 500 |
75 |
43 |
210A |
30-76 |
D |
776 |
17 |
12-17 |
G |
530X108 |
| XS 500 |
76-78 |
42 |
308A |
32-76 |
D |
776 |
16 |
12-17 |
G |
530X106 |
| XT 500 |
76-81 |
44 |
260A |
38-76 |
B |
756 |
16 |
11-16 |
D |
520X100 |
| XJ 550 R MAXIM, A SECA |
81-83 |
45/46 |
183A |
28-76 |
D |
*SO 745 |
16 |
16 |
J |
530X104 |
| XT 550 |
82-83 |
42 |
315A |
37-76 |
B |
*SO 754 |
15 |
13-15 |
H |
520X98 |