| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Gallery List. |
| 5 |
* |
| 6 |
* @link https://plugins360.com |
| 7 |
* @since 2.8.0 |
| 8 |
* |
| 9 |
* @package Automatic_YouTube_Gallery |
| 10 |
*/ |
| 11 |
|
| 12 |
// Exit if accessed directly |
| 13 |
if ( ! defined( 'WPINC' ) ) { |
| 14 |
die; |
| 15 |
} |
| 16 |
|
| 17 |
require_once AYG_DIR . 'admin/galleries.php'; |
| 18 |
|
| 19 |
$table = $this->gallery_list_table; |
| 20 |
$table->prepare_items(); |
| 21 |
?> |
| 22 |
|
| 23 |
<div id="ayg-gallery-list" class="ayg-gallery-list"> |
| 24 |
<?php if ( ! empty( $_GET['deleted'] ) ) : ?> |
| 25 |
<p class="ayg-notice ayg-notice-success"> |
| 26 |
<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span> |
| 27 |
<?php |
| 28 |
$count = absint( $_GET['deleted'] ); |
| 29 |
|
| 30 |
printf( |
| 31 |
/* translators: %d: number of deleted galleries */ |
| 32 |
esc_html( _n( '%d gallery deleted.', '%d galleries deleted.', $count, 'automatic-youtube-gallery' ) ), |
| 33 |
$count |
| 34 |
); |
| 35 |
?> |
| 36 |
</p> |
| 37 |
<?php endif; ?> |
| 38 |
|
| 39 |
<?php if ( ! empty( $table->items ) ) : ?> |
| 40 |
<p class="ayg-notice ayg-notice-info"> |
| 41 |
<span class="dashicons dashicons-update" aria-hidden="true"></span> |
| 42 |
<?php esc_html_e( 'Your galleries stay up to date automatically on a schedule. If a gallery ever looks out of date, open it and click "Update Gallery" to pull the latest videos right away.', 'automatic-youtube-gallery' ); ?> |
| 43 |
</p> |
| 44 |
<?php endif; ?> |
| 45 |
|
| 46 |
<form class="ayg-form" method="get"> |
| 47 |
<input type="hidden" name="page" value="automatic-youtube-gallery"> |
| 48 |
<?php |
| 49 |
$table->search_box( __( 'Search Galleries', 'automatic-youtube-gallery' ), 'ayg-gallery' ); |
| 50 |
$table->display(); |
| 51 |
?> |
| 52 |
</form> |
| 53 |
</div> |
| 54 |
|