WPCF7_Sendinblue::display_setup
Метод класса: WPCF7_Sendinblue{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->display_setup();
Код WPCF7_Sendinblue::display_setup() WPCF7 Sendinblue::display setup CF7 6.1.5
<?php
private function display_setup() {
$api_key = $this->get_api_key();
?>
<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=setup' ) ); ?>">
<?php wp_nonce_field( 'wpcf7-sendinblue-setup' ); ?>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="publishable"><?php echo esc_html( __( 'API key', 'contact-form-7' ) ); ?></label></th>
<td><?php
if ( $this->is_active() ) {
echo esc_html( wpcf7_mask_password( $api_key, 4, 8 ) );
echo sprintf(
'<input type="hidden" value="%s" id="api_key" name="api_key" />',
esc_attr( $api_key )
);
} else {
echo sprintf(
'<input type="text" aria-required="true" value="%s" id="api_key" name="api_key" class="regular-text code" />',
esc_attr( $api_key )
);
}
?></td>
</tr>
</tbody>
</table>
<?php
if ( $this->is_active() ) {
submit_button(
_x( 'Remove key', 'API keys', 'contact-form-7' ),
'small', 'reset'
);
} else {
submit_button( __( 'Save changes', 'contact-form-7' ) );
}
?>
</form>
<?php
}