PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / trunk
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels vtrunk
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
automatic-youtube-gallery / admin / templates / gallery-list.php

gallery-list.php in Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels trunk, at admin/templates/gallery-list.php

54 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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