WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

WPCF7_ConstantContact::display_setup() private CF7 1.0

{} Это метод класса: WPCF7_ConstantContact{}

Хуков нет.

Возвращает

null. Ничего.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->display_setup();

Код WPCF7_ConstantContact::display_setup() CF7 5.4.1

<?php
private function display_setup() {
?>
<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=setup' ) ); ?>">
<?php wp_nonce_field( 'wpcf7-constant-contact-setup' ); ?>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="client_id"><?php echo esc_html( __( 'API Key', 'contact-form-7' ) ); ?></label></th>
<td><?php
	if ( $this->is_active() ) {
		echo esc_html( $this->client_id );
		echo sprintf(
			'<input type="hidden" value="%1$s" id="client_id" name="client_id" />',
			esc_attr( $this->client_id )
		);
	} else {
		echo sprintf(
			'<input type="text" aria-required="true" value="%1$s" id="client_id" name="client_id" class="regular-text code" />',
			esc_attr( $this->client_id )
		);
	}
?></td>
</tr>
<tr>
<th scope="row"><label for="client_secret"><?php echo esc_html( __( 'App Secret', 'contact-form-7' ) ); ?></label></th>
<td><?php
	if ( $this->is_active() ) {
		echo esc_html( wpcf7_mask_password( $this->client_secret, 4, 4 ) );
		echo sprintf(
			'<input type="hidden" value="%1$s" id="client_secret" name="client_secret" />',
			esc_attr( $this->client_secret )
		);
	} else {
		echo sprintf(
			'<input type="text" aria-required="true" value="%1$s" id="client_secret" name="client_secret" class="regular-text code" />',
			esc_attr( $this->client_secret )
		);
	}
?></td>
</tr>
<tr>
<th scope="row"><label for="redirect_uri"><?php echo esc_html( __( 'Redirect URI', 'contact-form-7' ) ); ?></label></th>
<td><?php
	echo sprintf(
		'<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;" />',
		$this->get_redirect_uri()
	);
?>
<p class="description"><?php echo esc_html( __( "Set this URL as the redirect URI.", 'contact-form-7' ) ); ?></p>
</td>
</tr>
</tbody>
</table>
<?php
	if ( $this->is_active() ) {
		submit_button(
			_x( 'Reset Keys', 'API keys', 'contact-form-7' ),
			'small', 'reset'
		);
	} else {
		submit_button(
			__( 'Connect to the Constant Contact API', 'contact-form-7' )
		);
	}
?>
</form>

<?php
	if ( $this->is_active() and ! empty( $this->contact_lists ) ) {
?>
<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=edit' ) ); ?>">
<?php wp_nonce_field( 'wpcf7-constant-contact-edit' ); ?>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php echo esc_html( _x( 'Contact Lists', 'Constant Contact', 'contact-form-7' ) ); ?></th>
<td>
	<fieldset>
	<legend class="screen-reader-text"><span><?php echo esc_html( _x( "Contact Lists: Select lists to which newly added contacts are to belong.", 'Constant Contact', 'contact-form-7' ) ); ?></span></legend>
	<p class="description"><?php echo esc_html( __( "Select lists to which newly added contacts are to belong.", 'contact-form-7' ) ); ?></p>
	<ul class="checkboxes"><?php
		foreach ( $this->contact_lists as $list ) {
			echo sprintf(
				'<li><input %1$s /> <label for="%2$s">%3$s</label></li>',
				wpcf7_format_atts( array(
					'type' => 'checkbox',
					'name' => 'contact_lists[]',
					'value' => $list['list_id'],
					'id' => 'contact_list_' . $list['list_id'],
					'checked' => empty( $list['selected']['default'] )
						? ''
						: 'checked',
				) ),
				esc_attr( 'contact_list_' . $list['list_id'] ),
				esc_html( $list['name'] )
			);
		}
	?></ul>
	</fieldset>
</td>
</tr>
</tbody>
</table>
<?php
		submit_button();
	}
?>
</form>
<?php
}