laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Cdn_GoogleDrive_Popup_AuthR...

55 lines
1.5 KiB
PHP

<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
?>
<form action="admin.php?page=w3tc_cdn" method="post" style="padding: 20px">
<?php
Util_Ui::hidden( '', 'client_id', $client_id );
Util_Ui::hidden( '', 'access_token', $access_token );
Util_Ui::hidden( '', 'refresh_token', $refresh_token );
echo wp_kses(
Util_Ui::nonce_field( 'w3tc' ),
array(
'input' => array(
'type' => array(),
'name' => array(),
'value' => array(),
),
)
);
?>
<br /><br />
<div class="metabox-holder">
<?php Util_Ui::postbox_header( esc_html__( 'Select folder', 'w3-total-cache' ) ); ?>
<table class="form-table">
<tr>
<td><?php esc_html_e( 'Folder:', 'w3-total-cache' ); ?></td>
<td>
<?php foreach ( $folders as $folder ) : ?>
<label>
<input name="folder" type="radio" class="w3tc-ignore-change"
value="<?php echo esc_attr( $folder->id ); ?>" />
<?php echo esc_html( $folder->title ); ?>
</label><br />
<?php endforeach ?>
<label>
<input name="folder" type="radio" class="w3tc-ignore-change" value="" />
<?php esc_html_e( 'Add new folder:', 'w3-total-cache' ); ?>
</label>
<input name="folder_new" type="text" class="w3tc-ignore-change" />
</td>
</tr>
</table>
<p class="submit">
<input type="submit" name="w3tc_cdn_google_drive_auth_set"
class="w3tc-button-save button-primary"
value="<?php esc_attr_e( 'Apply', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>