forked from mAAdhaTTah/wordpress-github-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.php
More file actions
32 lines (30 loc) · 1.08 KB
/
Copy pathoptions.php
File metadata and controls
32 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Options Page View.
* @package WordPress_GitHub_Sync
*/
?>
<div class="wrap">
<h2><?php esc_html_e( 'WordPress <--> GitHub Sync', 'wordpress-github-sync' ); ?></h2>
<form method="post" action="options.php">
<?php settings_fields( 'wordpress-github-sync' ); ?>
<?php do_settings_sections( 'wordpress-github-sync' ); ?>
<table class="form-table">
<tr>
<th scope="row"><?php esc_html_e( 'Webhook callback', 'wordpress-github-sync' ); ?></th>
<td><code><?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>?action=wpghs_sync_request</code></td>
</tr>
<tr>
<th scope="row"><?php esc_html_e( 'Bulk actions', 'wordpress-github-sync' ); ?></th>
<td>
<a href="<?php echo esc_url( add_query_arg( array( 'action' => 'export' ) ) ); ?>">
<?php esc_html_e( 'Export to GitHub', 'wordpress-github-sync' ); ?>
</a> |
<a href="<?php echo esc_url( add_query_arg( array( 'action' => 'import' ) ) ); ?>">
<?php esc_html_e( 'Import from GitHub', 'wordpress-github-sync' ); ?>
</a>
</td>
</table>
<?php submit_button(); ?>
</form>
</div>