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/clone/wp-conte.../plugins/contact-.../modules/constant...
File: service.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! class_exists( 'WPCF7_Service_OAuth2' ) ) {
[2] Fix | Delete
return;
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
class WPCF7_ConstantContact extends WPCF7_Service_OAuth2 {
[6] Fix | Delete
[7] Fix | Delete
const service_name = 'constant_contact';
[8] Fix | Delete
[9] Fix | Delete
const authorization_endpoint
[10] Fix | Delete
= 'https://authz.constantcontact.com/oauth2/default/v1/authorize';
[11] Fix | Delete
[12] Fix | Delete
const token_endpoint
[13] Fix | Delete
= 'https://authz.constantcontact.com/oauth2/default/v1/token';
[14] Fix | Delete
[15] Fix | Delete
private static $instance;
[16] Fix | Delete
protected $contact_lists = array();
[17] Fix | Delete
[18] Fix | Delete
public static function get_instance() {
[19] Fix | Delete
if ( empty( self::$instance ) ) {
[20] Fix | Delete
self::$instance = new self;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
return self::$instance;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
private function __construct() {
[27] Fix | Delete
$this->authorization_endpoint = self::authorization_endpoint;
[28] Fix | Delete
$this->token_endpoint = self::token_endpoint;
[29] Fix | Delete
[30] Fix | Delete
$option = (array) WPCF7::get_option( self::service_name );
[31] Fix | Delete
[32] Fix | Delete
if ( isset( $option['client_id'] ) ) {
[33] Fix | Delete
$this->client_id = $option['client_id'];
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
if ( isset( $option['client_secret'] ) ) {
[37] Fix | Delete
$this->client_secret = $option['client_secret'];
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
if ( isset( $option['access_token'] ) ) {
[41] Fix | Delete
$this->access_token = $option['access_token'];
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
if ( isset( $option['refresh_token'] ) ) {
[45] Fix | Delete
$this->refresh_token = $option['refresh_token'];
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
if ( $this->is_active() ) {
[49] Fix | Delete
if ( isset( $option['contact_lists'] ) ) {
[50] Fix | Delete
$this->contact_lists = $option['contact_lists'];
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
add_action( 'wpcf7_admin_init', array( $this, 'auth_redirect' ) );
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
public function auth_redirect() {
[58] Fix | Delete
$auth = isset( $_GET['auth'] ) ? trim( $_GET['auth'] ) : '';
[59] Fix | Delete
[60] Fix | Delete
if ( self::service_name === $auth
[61] Fix | Delete
and current_user_can( 'wpcf7_manage_integration' ) ) {
[62] Fix | Delete
$redirect_to = add_query_arg(
[63] Fix | Delete
array(
[64] Fix | Delete
'service' => self::service_name,
[65] Fix | Delete
'action' => 'auth_redirect',
[66] Fix | Delete
'code' => isset( $_GET['code'] ) ? trim( $_GET['code'] ) : '',
[67] Fix | Delete
'state' => isset( $_GET['state'] ) ? trim( $_GET['state'] ) : '',
[68] Fix | Delete
),
[69] Fix | Delete
menu_page_url( 'wpcf7-integration', false )
[70] Fix | Delete
);
[71] Fix | Delete
[72] Fix | Delete
wp_safe_redirect( $redirect_to );
[73] Fix | Delete
exit();
[74] Fix | Delete
}
[75] Fix | Delete
}
[76] Fix | Delete
[77] Fix | Delete
protected function save_data() {
[78] Fix | Delete
$option = array_merge(
[79] Fix | Delete
(array) WPCF7::get_option( self::service_name ),
[80] Fix | Delete
array(
[81] Fix | Delete
'client_id' => $this->client_id,
[82] Fix | Delete
'client_secret' => $this->client_secret,
[83] Fix | Delete
'access_token' => $this->access_token,
[84] Fix | Delete
'refresh_token' => $this->refresh_token,
[85] Fix | Delete
'contact_lists' => $this->contact_lists,
[86] Fix | Delete
)
[87] Fix | Delete
);
[88] Fix | Delete
[89] Fix | Delete
WPCF7::update_option( self::service_name, $option );
[90] Fix | Delete
}
[91] Fix | Delete
[92] Fix | Delete
protected function reset_data() {
[93] Fix | Delete
$this->client_id = '';
[94] Fix | Delete
$this->client_secret = '';
[95] Fix | Delete
$this->access_token = '';
[96] Fix | Delete
$this->refresh_token = '';
[97] Fix | Delete
$this->contact_lists = array();
[98] Fix | Delete
[99] Fix | Delete
$this->save_data();
[100] Fix | Delete
}
[101] Fix | Delete
[102] Fix | Delete
public function get_title() {
[103] Fix | Delete
return __( 'Constant Contact', 'contact-form-7' );
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
public function get_categories() {
[107] Fix | Delete
return array( 'email_marketing' );
[108] Fix | Delete
}
[109] Fix | Delete
[110] Fix | Delete
public function icon() {
[111] Fix | Delete
}
[112] Fix | Delete
[113] Fix | Delete
public function link() {
[114] Fix | Delete
echo 'constantcontact.com';
[115] Fix | Delete
}
[116] Fix | Delete
[117] Fix | Delete
protected function get_redirect_uri() {
[118] Fix | Delete
return admin_url( '/?auth=' . self::service_name );
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
protected function menu_page_url( $args = '' ) {
[122] Fix | Delete
$args = wp_parse_args( $args, array() );
[123] Fix | Delete
[124] Fix | Delete
$url = menu_page_url( 'wpcf7-integration', false );
[125] Fix | Delete
$url = add_query_arg( array( 'service' => self::service_name ), $url );
[126] Fix | Delete
[127] Fix | Delete
if ( ! empty( $args ) ) {
[128] Fix | Delete
$url = add_query_arg( $args, $url );
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
return $url;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
public function load( $action = '' ) {
[135] Fix | Delete
if ( 'auth_redirect' == $action ) {
[136] Fix | Delete
$code = isset( $_GET['code'] ) ? urldecode( $_GET['code'] ) : '';
[137] Fix | Delete
$state = isset( $_GET['state'] ) ? urldecode( $_GET['state'] ) : '';
[138] Fix | Delete
[139] Fix | Delete
if ( $code and $state
[140] Fix | Delete
and wpcf7_verify_nonce( $state, 'wpcf7_constant_contact_authorize' ) ) {
[141] Fix | Delete
$response = $this->request_token( $code );
[142] Fix | Delete
}
[143] Fix | Delete
[144] Fix | Delete
if ( ! empty( $this->access_token ) ) {
[145] Fix | Delete
$message = 'success';
[146] Fix | Delete
} else {
[147] Fix | Delete
$message = 'failed';
[148] Fix | Delete
}
[149] Fix | Delete
[150] Fix | Delete
wp_safe_redirect( $this->menu_page_url(
[151] Fix | Delete
array(
[152] Fix | Delete
'action' => 'setup',
[153] Fix | Delete
'message' => $message,
[154] Fix | Delete
)
[155] Fix | Delete
) );
[156] Fix | Delete
[157] Fix | Delete
exit();
[158] Fix | Delete
}
[159] Fix | Delete
[160] Fix | Delete
if ( 'setup' == $action and 'POST' == $_SERVER['REQUEST_METHOD'] ) {
[161] Fix | Delete
check_admin_referer( 'wpcf7-constant-contact-setup' );
[162] Fix | Delete
[163] Fix | Delete
if ( ! empty( $_POST['reset'] ) ) {
[164] Fix | Delete
$this->reset_data();
[165] Fix | Delete
} else {
[166] Fix | Delete
$this->client_id = isset( $_POST['client_id'] )
[167] Fix | Delete
? trim( $_POST['client_id'] ) : '';
[168] Fix | Delete
[169] Fix | Delete
$this->client_secret = isset( $_POST['client_secret'] )
[170] Fix | Delete
? trim( $_POST['client_secret'] ) : '';
[171] Fix | Delete
[172] Fix | Delete
$this->save_data();
[173] Fix | Delete
$this->authorize( 'contact_data offline_access' );
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
wp_safe_redirect( $this->menu_page_url( 'action=setup' ) );
[177] Fix | Delete
exit();
[178] Fix | Delete
}
[179] Fix | Delete
}
[180] Fix | Delete
[181] Fix | Delete
protected function authorize( $scope = '' ) {
[182] Fix | Delete
$endpoint = add_query_arg(
[183] Fix | Delete
array_map( 'urlencode', array(
[184] Fix | Delete
'response_type' => 'code',
[185] Fix | Delete
'client_id' => $this->client_id,
[186] Fix | Delete
'redirect_uri' => $this->get_redirect_uri(),
[187] Fix | Delete
'scope' => $scope,
[188] Fix | Delete
'state' => wpcf7_create_nonce( 'wpcf7_constant_contact_authorize' ),
[189] Fix | Delete
) ),
[190] Fix | Delete
$this->authorization_endpoint
[191] Fix | Delete
);
[192] Fix | Delete
[193] Fix | Delete
if ( wp_redirect( sanitize_url( $endpoint ) ) ) {
[194] Fix | Delete
exit();
[195] Fix | Delete
}
[196] Fix | Delete
}
[197] Fix | Delete
[198] Fix | Delete
public function email_exists( $email ) {
[199] Fix | Delete
$endpoint = add_query_arg(
[200] Fix | Delete
array(
[201] Fix | Delete
'email' => $email,
[202] Fix | Delete
'status' => 'all',
[203] Fix | Delete
),
[204] Fix | Delete
'https://api.cc.email/v3/contacts'
[205] Fix | Delete
);
[206] Fix | Delete
[207] Fix | Delete
$request = array(
[208] Fix | Delete
'method' => 'GET',
[209] Fix | Delete
'headers' => array(
[210] Fix | Delete
'Accept' => 'application/json',
[211] Fix | Delete
'Content-Type' => 'application/json; charset=utf-8',
[212] Fix | Delete
),
[213] Fix | Delete
);
[214] Fix | Delete
[215] Fix | Delete
$response = $this->remote_request( $endpoint, $request );
[216] Fix | Delete
[217] Fix | Delete
if ( 400 <= (int) wp_remote_retrieve_response_code( $response ) ) {
[218] Fix | Delete
if ( WP_DEBUG ) {
[219] Fix | Delete
$this->log( $endpoint, $request, $response );
[220] Fix | Delete
}
[221] Fix | Delete
[222] Fix | Delete
return false;
[223] Fix | Delete
}
[224] Fix | Delete
[225] Fix | Delete
$response_body = wp_remote_retrieve_body( $response );
[226] Fix | Delete
[227] Fix | Delete
if ( empty( $response_body ) ) {
[228] Fix | Delete
return false;
[229] Fix | Delete
}
[230] Fix | Delete
[231] Fix | Delete
$response_body = json_decode( $response_body, true );
[232] Fix | Delete
[233] Fix | Delete
return ! empty( $response_body['contacts'] );
[234] Fix | Delete
}
[235] Fix | Delete
[236] Fix | Delete
public function create_contact( $properties ) {
[237] Fix | Delete
$endpoint = 'https://api.cc.email/v3/contacts';
[238] Fix | Delete
[239] Fix | Delete
$request = array(
[240] Fix | Delete
'method' => 'POST',
[241] Fix | Delete
'headers' => array(
[242] Fix | Delete
'Accept' => 'application/json',
[243] Fix | Delete
'Content-Type' => 'application/json; charset=utf-8',
[244] Fix | Delete
),
[245] Fix | Delete
'body' => wp_json_encode( $properties ),
[246] Fix | Delete
);
[247] Fix | Delete
[248] Fix | Delete
$response = $this->remote_request( $endpoint, $request );
[249] Fix | Delete
[250] Fix | Delete
if ( 400 <= (int) wp_remote_retrieve_response_code( $response ) ) {
[251] Fix | Delete
if ( WP_DEBUG ) {
[252] Fix | Delete
$this->log( $endpoint, $request, $response );
[253] Fix | Delete
}
[254] Fix | Delete
[255] Fix | Delete
return false;
[256] Fix | Delete
}
[257] Fix | Delete
}
[258] Fix | Delete
[259] Fix | Delete
public function get_contact_lists() {
[260] Fix | Delete
$endpoint = 'https://api.cc.email/v3/contact_lists';
[261] Fix | Delete
[262] Fix | Delete
$request = array(
[263] Fix | Delete
'method' => 'GET',
[264] Fix | Delete
'headers' => array(
[265] Fix | Delete
'Accept' => 'application/json',
[266] Fix | Delete
'Content-Type' => 'application/json; charset=utf-8',
[267] Fix | Delete
),
[268] Fix | Delete
);
[269] Fix | Delete
[270] Fix | Delete
$response = $this->remote_request( $endpoint, $request );
[271] Fix | Delete
[272] Fix | Delete
if ( 400 <= (int) wp_remote_retrieve_response_code( $response ) ) {
[273] Fix | Delete
if ( WP_DEBUG ) {
[274] Fix | Delete
$this->log( $endpoint, $request, $response );
[275] Fix | Delete
}
[276] Fix | Delete
[277] Fix | Delete
return false;
[278] Fix | Delete
}
[279] Fix | Delete
[280] Fix | Delete
$response_body = wp_remote_retrieve_body( $response );
[281] Fix | Delete
[282] Fix | Delete
if ( empty( $response_body ) ) {
[283] Fix | Delete
return false;
[284] Fix | Delete
}
[285] Fix | Delete
[286] Fix | Delete
$response_body = json_decode( $response_body, true );
[287] Fix | Delete
[288] Fix | Delete
if ( ! empty( $response_body['lists'] ) ) {
[289] Fix | Delete
return (array) $response_body['lists'];
[290] Fix | Delete
} else {
[291] Fix | Delete
return array();
[292] Fix | Delete
}
[293] Fix | Delete
}
[294] Fix | Delete
[295] Fix | Delete
public function update_contact_lists( $selection = array() ) {
[296] Fix | Delete
$contact_lists = array();
[297] Fix | Delete
$contact_lists_on_api = $this->get_contact_lists();
[298] Fix | Delete
[299] Fix | Delete
if ( false !== $contact_lists_on_api ) {
[300] Fix | Delete
foreach ( (array) $contact_lists_on_api as $list ) {
[301] Fix | Delete
if ( isset( $list['list_id'] ) ) {
[302] Fix | Delete
$list_id = trim( $list['list_id'] );
[303] Fix | Delete
} else {
[304] Fix | Delete
continue;
[305] Fix | Delete
}
[306] Fix | Delete
[307] Fix | Delete
if ( isset( $this->contact_lists[$list_id]['selected'] ) ) {
[308] Fix | Delete
$list['selected'] = $this->contact_lists[$list_id]['selected'];
[309] Fix | Delete
} else {
[310] Fix | Delete
$list['selected'] = array();
[311] Fix | Delete
}
[312] Fix | Delete
[313] Fix | Delete
$contact_lists[$list_id] = $list;
[314] Fix | Delete
}
[315] Fix | Delete
} else {
[316] Fix | Delete
$contact_lists = $this->contact_lists;
[317] Fix | Delete
}
[318] Fix | Delete
[319] Fix | Delete
foreach ( (array) $selection as $key => $ids_or_names ) {
[320] Fix | Delete
foreach( $contact_lists as $list_id => $list ) {
[321] Fix | Delete
if ( in_array( $list['list_id'], (array) $ids_or_names, true )
[322] Fix | Delete
or in_array( $list['name'], (array) $ids_or_names, true ) ) {
[323] Fix | Delete
$contact_lists[$list_id]['selected'][$key] = true;
[324] Fix | Delete
} else {
[325] Fix | Delete
unset( $contact_lists[$list_id]['selected'][$key] );
[326] Fix | Delete
}
[327] Fix | Delete
}
[328] Fix | Delete
}
[329] Fix | Delete
[330] Fix | Delete
$this->contact_lists = $contact_lists;
[331] Fix | Delete
[332] Fix | Delete
if ( $selection ) {
[333] Fix | Delete
$this->save_data();
[334] Fix | Delete
}
[335] Fix | Delete
[336] Fix | Delete
return $this->contact_lists;
[337] Fix | Delete
}
[338] Fix | Delete
[339] Fix | Delete
public function admin_notice( $message = '' ) {
[340] Fix | Delete
switch ( $message ) {
[341] Fix | Delete
case 'success':
[342] Fix | Delete
echo sprintf(
[343] Fix | Delete
'<div class="notice notice-success"><p>%s</p></div>',
[344] Fix | Delete
esc_html( __( "Connection established.", 'contact-form-7' ) )
[345] Fix | Delete
);
[346] Fix | Delete
break;
[347] Fix | Delete
case 'failed':
[348] Fix | Delete
echo sprintf(
[349] Fix | Delete
'<div class="notice notice-error"><p><strong>%1$s</strong>: %2$s</p></div>',
[350] Fix | Delete
esc_html( __( "Error", 'contact-form-7' ) ),
[351] Fix | Delete
esc_html( __( "Failed to establish connection. Please double-check your configuration.", 'contact-form-7' ) )
[352] Fix | Delete
);
[353] Fix | Delete
break;
[354] Fix | Delete
case 'updated':
[355] Fix | Delete
echo sprintf(
[356] Fix | Delete
'<div class="notice notice-success"><p>%s</p></div>',
[357] Fix | Delete
esc_html( __( "Configuration updated.", 'contact-form-7' ) )
[358] Fix | Delete
);
[359] Fix | Delete
break;
[360] Fix | Delete
}
[361] Fix | Delete
}
[362] Fix | Delete
[363] Fix | Delete
public function display( $action = '' ) {
[364] Fix | Delete
echo sprintf(
[365] Fix | Delete
'<p><strong>%1$s</strong> %2$s</p>',
[366] Fix | Delete
esc_html( __( 'Warning:', 'contact-form-7' ) ),
[367] Fix | Delete
wpcf7_link(
[368] Fix | Delete
__( 'https://contactform7.com/2024/02/02/we-end-the-constant-contact-integration/', 'contact-form-7' ),
[369] Fix | Delete
__( "This feature is deprecated. You are not recommended to use it.", 'contact-form-7' )
[370] Fix | Delete
)
[371] Fix | Delete
);
[372] Fix | Delete
[373] Fix | Delete
echo sprintf(
[374] Fix | Delete
'<p>%s</p>',
[375] Fix | Delete
esc_html( __( "The Constant Contact integration module allows you to send contact data collected through your contact forms to the Constant Contact API. You can create reliable email subscription services in a few easy steps.", 'contact-form-7' ) )
[376] Fix | Delete
);
[377] Fix | Delete
[378] Fix | Delete
echo sprintf(
[379] Fix | Delete
'<p><strong>%s</strong></p>',
[380] Fix | Delete
wpcf7_link(
[381] Fix | Delete
__( 'https://contactform7.com/constant-contact-integration/', 'contact-form-7' ),
[382] Fix | Delete
__( 'Constant Contact integration', 'contact-form-7' )
[383] Fix | Delete
)
[384] Fix | Delete
);
[385] Fix | Delete
[386] Fix | Delete
if ( $this->is_active() ) {
[387] Fix | Delete
echo sprintf(
[388] Fix | Delete
'<p class="dashicons-before dashicons-yes">%s</p>',
[389] Fix | Delete
esc_html( __( "This site is connected to the Constant Contact API.", 'contact-form-7' ) )
[390] Fix | Delete
);
[391] Fix | Delete
}
[392] Fix | Delete
[393] Fix | Delete
if ( 'setup' == $action ) {
[394] Fix | Delete
$this->display_setup();
[395] Fix | Delete
} else {
[396] Fix | Delete
echo sprintf(
[397] Fix | Delete
'<p><a href="%1$s" class="button">%2$s</a></p>',
[398] Fix | Delete
esc_url( $this->menu_page_url( 'action=setup' ) ),
[399] Fix | Delete
esc_html( __( 'Setup Integration', 'contact-form-7' ) )
[400] Fix | Delete
);
[401] Fix | Delete
}
[402] Fix | Delete
}
[403] Fix | Delete
[404] Fix | Delete
private function display_setup() {
[405] Fix | Delete
?>
[406] Fix | Delete
<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=setup' ) ); ?>">
[407] Fix | Delete
<?php wp_nonce_field( 'wpcf7-constant-contact-setup' ); ?>
[408] Fix | Delete
<table class="form-table">
[409] Fix | Delete
<tbody>
[410] Fix | Delete
<tr>
[411] Fix | Delete
<th scope="row"><label for="client_id"><?php echo esc_html( __( 'API Key', 'contact-form-7' ) ); ?></label></th>
[412] Fix | Delete
<td><?php
[413] Fix | Delete
if ( $this->is_active() ) {
[414] Fix | Delete
echo esc_html( $this->client_id );
[415] Fix | Delete
echo sprintf(
[416] Fix | Delete
'<input type="hidden" value="%1$s" id="client_id" name="client_id" />',
[417] Fix | Delete
esc_attr( $this->client_id )
[418] Fix | Delete
);
[419] Fix | Delete
} else {
[420] Fix | Delete
echo sprintf(
[421] Fix | Delete
'<input type="text" aria-required="true" value="%1$s" id="client_id" name="client_id" class="regular-text code" />',
[422] Fix | Delete
esc_attr( $this->client_id )
[423] Fix | Delete
);
[424] Fix | Delete
}
[425] Fix | Delete
?></td>
[426] Fix | Delete
</tr>
[427] Fix | Delete
<tr>
[428] Fix | Delete
<th scope="row"><label for="client_secret"><?php echo esc_html( __( 'App Secret', 'contact-form-7' ) ); ?></label></th>
[429] Fix | Delete
<td><?php
[430] Fix | Delete
if ( $this->is_active() ) {
[431] Fix | Delete
echo esc_html( wpcf7_mask_password( $this->client_secret, 4, 4 ) );
[432] Fix | Delete
echo sprintf(
[433] Fix | Delete
'<input type="hidden" value="%1$s" id="client_secret" name="client_secret" />',
[434] Fix | Delete
esc_attr( $this->client_secret )
[435] Fix | Delete
);
[436] Fix | Delete
} else {
[437] Fix | Delete
echo sprintf(
[438] Fix | Delete
'<input type="text" aria-required="true" value="%1$s" id="client_secret" name="client_secret" class="regular-text code" />',
[439] Fix | Delete
esc_attr( $this->client_secret )
[440] Fix | Delete
);
[441] Fix | Delete
}
[442] Fix | Delete
?></td>
[443] Fix | Delete
</tr>
[444] Fix | Delete
<tr>
[445] Fix | Delete
<th scope="row"><label for="redirect_uri"><?php echo esc_html( __( 'Redirect URI', 'contact-form-7' ) ); ?></label></th>
[446] Fix | Delete
<td><?php
[447] Fix | Delete
echo sprintf(
[448] Fix | Delete
'<input type="text" value="%1$s" id="redirect_uri" name="redirect_uri" class="large-text code" readonly="readonly" onfocus="this.select();" style="font-size: 11px;" />',
[449] Fix | Delete
$this->get_redirect_uri()
[450] Fix | Delete
);
[451] Fix | Delete
?>
[452] Fix | Delete
<p class="description"><?php echo esc_html( __( "Set this URL as the redirect URI.", 'contact-form-7' ) ); ?></p>
[453] Fix | Delete
</td>
[454] Fix | Delete
</tr>
[455] Fix | Delete
</tbody>
[456] Fix | Delete
</table>
[457] Fix | Delete
<?php
[458] Fix | Delete
if ( $this->is_active() ) {
[459] Fix | Delete
submit_button(
[460] Fix | Delete
_x( 'Reset Keys', 'API keys', 'contact-form-7' ),
[461] Fix | Delete
'small', 'reset'
[462] Fix | Delete
);
[463] Fix | Delete
} else {
[464] Fix | Delete
submit_button(
[465] Fix | Delete
__( 'Connect to the Constant Contact API', 'contact-form-7' )
[466] Fix | Delete
);
[467] Fix | Delete
}
[468] Fix | Delete
?>
[469] Fix | Delete
</form>
[470] Fix | Delete
<?php
[471] Fix | Delete
}
[472] Fix | Delete
[473] Fix | Delete
}
[474] Fix | Delete
[475] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function