laipower/wp-content/plugins/w3-total-cache/Cdn_StackPath_Popup_View_Intro.php

55 lines
1.4 KiB
PHP
Raw Normal View History

<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
?>
<form class="w3tc_cdn_stackpath_form">
<?php
if ( isset( $details['error_message'] ) ) {
echo '<div class="error">' . esc_html( $details['error_message'] ) . '</div>';
}
?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( esc_html__( 'Your StackPath Account credentials', 'w3-total-cache' ) ); ?>
<table class="form-table">
<tr>
<td>API Key:</td>
<td>
<input name="api_key" type="text" class="w3tc-ignore-change"
style="width: 550px"
value="<?php echo esc_attr( $details['api_key'] ); ?>" />
<p class="description">
<?php
echo wp_kses(
sprintf(
// translators: 1 HTML a tag to Stackpath API key page.
__(
'To obtain API key you can %1$s, log in, and paste the key in above field.',
'w3-total-cache'
),
'<a target="_blank" href="' . esc_url( $url_obtain_key ) . '">' . esc_html__( 'click here', 'w3-total-cache' ) . '</a>'
),
array(
'a' => array(
'target' => array(),
'href' => array(),
),
)
);
?>
</p>
</td>
</tr>
</table>
<p class="submit">
<input type="button"
class="w3tc_cdn_stackpath_list_zones w3tc-button-save button-primary"
value="<?php esc_attr_e( 'Next', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>