2023-10-22 22:21:44 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* File: Cdnfsd_TransparentCDN_Page_View.php
|
|
|
|
*
|
|
|
|
* @since 0.15.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace W3TC;
|
|
|
|
|
|
|
|
if ( ! defined( 'W3TC' ) ) {
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
$key = $config->get_string( 'cdnfsd.transparentcdn.client_id' );
|
|
|
|
$authorized = ! empty( $key );
|
|
|
|
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
Util_Ui::postbox_header(
|
|
|
|
__( 'Configuration: Full-Site Delivery', 'w3-total-cache' ),
|
|
|
|
'',
|
|
|
|
'configuration'
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
<table class="form-table">
|
|
|
|
<tr>
|
|
|
|
<th style="width: 300px;">
|
|
|
|
<label for="cdnfsd_transparentcdn_company_id"> <?php esc_html_e( 'Company id:', 'w3-total-cache' ); ?> </label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input id="cdnfsd_transparentcdn_company_id" class="w3tc-ignore-change" type="text"
|
|
|
|
<?php Util_Ui::sealing_disabled( 'cdnfsd.transparentcdn.company_id' ); ?>
|
|
|
|
name="cdnfsd__transparentcdn__company_id"
|
|
|
|
value="<?php echo esc_attr( $config->get_string( 'cdnfsd.transparentcdn.company_id' ) ); ?>" size="60" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 300px;"><label for="cdnfsd_transparentcdn_clientid"><?php esc_html_e( 'Client id:', 'w3-total-cache' ); ?></label></th>
|
|
|
|
<td>
|
|
|
|
<input id="cdnfsd_transparentcdn_clientid" class="w3tc-ignore-change"
|
|
|
|
<?php Util_Ui::sealing_disabled( 'cdnfsd.transparentcdn.client_id' ); ?> type="text"
|
|
|
|
name="cdnfsd__transparentcdn__client_id"
|
|
|
|
value="<?php echo esc_attr( $config->get_string( 'cdnfsd.transparentcdn.client_id' ) ); ?>" size="60" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 300px;"><label for="cdnfsd_transparentcdn_clientsecret"><?php esc_html_e( 'Client secret:', 'w3-total-cache' ); ?></label></th>
|
|
|
|
<td>
|
|
|
|
<input id="cdnfsd_transparentcdn_clientsecret" class="w3tc-ignore-change"
|
|
|
|
<?php Util_Ui::sealing_disabled( 'cdnfsd.transparentcdn.client_secret' ); ?> type="text"
|
|
|
|
name="cdnfsd__transparentcdn__client_secret"
|
|
|
|
value="<?php echo esc_attr( $config->get_string( 'cdnfsd.transparentcdn.client_secret' ) ); ?>" size="60" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span id="transparentcdn_test" class="button {type: 'transparentcdn', nonce: '<?php echo esc_attr( wp_create_nonce( 'w3tc' ) ); ?>'}">
|
|
|
|
<?php esc_html_e( 'Test TransparentCDN', 'w3-total-cache' ); ?>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td colspan="1">
|
|
|
|
<span id="tcdn_test_status" class="w3tc-status w3tc-process">
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2023-12-08 23:23:36 +00:00
|
|
|
|
2023-10-22 22:21:44 +00:00
|
|
|
<?php Util_Ui::postbox_footer(); ?>
|