| 1 |
<?php |
| 2 |
/** |
| 3 |
* HTML for the all snippets and codevault list table |
| 4 |
* |
| 5 |
* @package Code_Snippets |
| 6 |
* @subpackage Views |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Code_Snippets; |
| 10 |
|
| 11 |
/** |
| 12 |
* Loaded from the manage menu. |
| 13 |
* |
| 14 |
* @var Manage_Menu $this |
| 15 |
*/ |
| 16 |
|
| 17 |
?> |
| 18 |
|
| 19 |
<form method="get" action=""> |
| 20 |
<?php |
| 21 |
List_Table::required_form_fields( 'search_box' ); |
| 22 |
$this->list_table->search_box( __( 'Search Snippets', 'code-snippets' ), 'search_id' ); |
| 23 |
?> |
| 24 |
</form> |
| 25 |
|
| 26 |
<form method="post" action=""> |
| 27 |
<input type="hidden" id="code_snippets_ajax_nonce" |
| 28 |
value="<?php echo esc_attr( wp_create_nonce( 'code_snippets_manage_ajax' ) ); ?>"> |
| 29 |
<?php |
| 30 |
List_Table::required_form_fields(); |
| 31 |
$this->list_table->display(); |
| 32 |
?> |
| 33 |
</form> |
| 34 |
<div class="cloud-key"> |
| 35 |
<p><strong><u><?php esc_html_e( 'Cloud Sync Guide', 'code-snippets' ); ?></u></strong></p> |
| 36 |
<p> |
| 37 |
<span class="dashicons dashicons-cloud cloud-icon cloud-downloaded"></span> |
| 38 |
<?php esc_html_e( 'Snippet downloaded from cloud but not synced with codevault.', 'code-snippets' ); ?> |
| 39 |
</p> |
| 40 |
<p> |
| 41 |
<span class="dashicons dashicons-cloud cloud-icon cloud-synced-legend "></span> |
| 42 |
<?php |
| 43 |
esc_html_e( 'Snippet downloaded and in sync with codevault.', 'code-snippets' ); |
| 44 |
$this->print_pro_message(); |
| 45 |
?> |
| 46 |
</p> |
| 47 |
<p><span class="dashicons dashicons-cloud cloud-icon cloud-not-downloaded"></span> |
| 48 |
<?php |
| 49 |
esc_html_e( 'Snippet in codevault but not downloaded to local site.', 'code-snippets' ); |
| 50 |
$this->print_pro_message(); |
| 51 |
?> |
| 52 |
</p> |
| 53 |
<p> |
| 54 |
<span class="dashicons dashicons-cloud cloud-icon cloud-update"></span> |
| 55 |
<?php |
| 56 |
esc_html_e( 'Snippet update available.', 'code-snippets' ); |
| 57 |
$this->print_pro_message(); |
| 58 |
?> |
| 59 |
</p> |
| 60 |
</div> |
| 61 |
|