Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/contact-.../modules
File: submit.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
** A base module for [submit]
[2] Fix | Delete
**/
[3] Fix | Delete
[4] Fix | Delete
/* form_tag handler */
[5] Fix | Delete
[6] Fix | Delete
add_action( 'wpcf7_init', 'wpcf7_add_form_tag_submit', 10, 0 );
[7] Fix | Delete
[8] Fix | Delete
function wpcf7_add_form_tag_submit() {
[9] Fix | Delete
wpcf7_add_form_tag( 'submit', 'wpcf7_submit_form_tag_handler' );
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
function wpcf7_submit_form_tag_handler( $tag ) {
[13] Fix | Delete
$class = wpcf7_form_controls_class( $tag->type, 'has-spinner' );
[14] Fix | Delete
[15] Fix | Delete
$atts = array();
[16] Fix | Delete
[17] Fix | Delete
$atts['class'] = $tag->get_class_option( $class );
[18] Fix | Delete
$atts['id'] = $tag->get_id_option();
[19] Fix | Delete
$atts['tabindex'] = $tag->get_option( 'tabindex', 'signed_int', true );
[20] Fix | Delete
[21] Fix | Delete
$value = isset( $tag->values[0] ) ? $tag->values[0] : '';
[22] Fix | Delete
[23] Fix | Delete
if ( empty( $value ) ) {
[24] Fix | Delete
$value = __( 'Send', 'contact-form-7' );
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
$atts['type'] = 'submit';
[28] Fix | Delete
$atts['value'] = $value;
[29] Fix | Delete
[30] Fix | Delete
$atts = wpcf7_format_atts( $atts );
[31] Fix | Delete
[32] Fix | Delete
$html = sprintf( '<input %1$s />', $atts );
[33] Fix | Delete
[34] Fix | Delete
return $html;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
/* Tag generator */
[39] Fix | Delete
[40] Fix | Delete
add_action( 'wpcf7_admin_init', 'wpcf7_add_tag_generator_submit', 55, 0 );
[41] Fix | Delete
[42] Fix | Delete
function wpcf7_add_tag_generator_submit() {
[43] Fix | Delete
$tag_generator = WPCF7_TagGenerator::get_instance();
[44] Fix | Delete
$tag_generator->add( 'submit', __( 'submit', 'contact-form-7' ),
[45] Fix | Delete
'wpcf7_tag_generator_submit', array( 'nameless' => 1 ) );
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
function wpcf7_tag_generator_submit( $contact_form, $args = '' ) {
[49] Fix | Delete
$args = wp_parse_args( $args, array() );
[50] Fix | Delete
[51] Fix | Delete
$description = __( "Generate a form-tag for a submit button. For more details, see %s.", 'contact-form-7' );
[52] Fix | Delete
[53] Fix | Delete
$desc_link = wpcf7_link( __( 'https://contactform7.com/submit-button/', 'contact-form-7' ), __( 'Submit button', 'contact-form-7' ) );
[54] Fix | Delete
[55] Fix | Delete
?>
[56] Fix | Delete
<div class="control-box">
[57] Fix | Delete
<fieldset>
[58] Fix | Delete
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
[59] Fix | Delete
[60] Fix | Delete
<table class="form-table">
[61] Fix | Delete
<tbody>
[62] Fix | Delete
<tr>
[63] Fix | Delete
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Label', 'contact-form-7' ) ); ?></label></th>
[64] Fix | Delete
<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /></td>
[65] Fix | Delete
</tr>
[66] Fix | Delete
[67] Fix | Delete
<tr>
[68] Fix | Delete
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
[69] Fix | Delete
<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
[70] Fix | Delete
</tr>
[71] Fix | Delete
[72] Fix | Delete
<tr>
[73] Fix | Delete
<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
[74] Fix | Delete
<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
[75] Fix | Delete
</tr>
[76] Fix | Delete
[77] Fix | Delete
</tbody>
[78] Fix | Delete
</table>
[79] Fix | Delete
</fieldset>
[80] Fix | Delete
</div>
[81] Fix | Delete
[82] Fix | Delete
<div class="insert-box">
[83] Fix | Delete
<input type="text" name="submit" class="tag code" readonly="readonly" onfocus="this.select()" />
[84] Fix | Delete
[85] Fix | Delete
<div class="submitbox">
[86] Fix | Delete
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
[87] Fix | Delete
</div>
[88] Fix | Delete
</div>
[89] Fix | Delete
<?php
[90] Fix | Delete
}
[91] Fix | Delete
[92] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function