-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more functions for a browser extension (#427)
- Loading branch information
Showing
7 changed files
with
136 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* This template contains the browser extension settings | ||
* | ||
* @version 1.0 | ||
* @package Friends | ||
*/ | ||
|
||
?><form method="post"> | ||
<?php wp_nonce_field( 'friends-browser-extension' ); ?> | ||
<table class="form-table"> | ||
<tbody> | ||
<tr> | ||
<th><label for="api-key"><?php esc_html_e( 'API Key', 'friends' ); ?></label></th> | ||
<td> | ||
<input type="text" id="api-key" value="<?php echo esc_attr( $args['browser-api-key'] ); ?>" class="regular-text" readonly /> | ||
<button class="button" id="copy-api-key"><?php esc_html_e( 'Copy', 'friends' ); ?></button> | ||
<!-- Revoke API Key --> | ||
<?php if ( ! empty( $args['browser-api-key'] ) ) : ?> | ||
<button class="button button-destructive" name="revoke-api-key"><?php esc_html_e( 'Revoke', 'friends' ); ?></button> | ||
<?php endif; ?> | ||
<p class="description"><?php esc_html_e( 'With this API key, more features will be enabled in the browser extension.', 'friends' ); ?></p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters