PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 1.3.0
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v1.3.0
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 / settings.php

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

53 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Settings Form.
5 *
6 * @link https://plugins360.com
7 * @since 1.0.0
8 *
9 * @package Automatic_YouTube_Gallery
10 */
11 ?>
12
13 <div id="ayg-settings" class="wrap ayg-settings ayg-settings-theme-<?php echo esc_attr( $active_theme ); ?>">
14 <h2 class="nav-tab-wrapper">
15 <?php
16 $settings_url = admin_url( 'admin.php?page=automatic-youtube-gallery-settings' );
17
18 foreach ( $this->tabs as $tab => $title ) {
19 $class = ( $tab == $active_tab ) ? 'nav-tab nav-tab-active' : 'nav-tab';
20 printf( '<a href="%s" class="%s">%s</a>', esc_url( add_query_arg( 'tab', $tab, $settings_url ) ), $class, $title );
21 }
22 ?>
23 </h2>
24
25 <?php settings_errors(); ?>
26
27 <form method="post" action="options.php">
28 <?php
29 settings_fields( "ayg_{$active_tab}_settings" );
30 do_settings_sections( "ayg_{$active_tab}_settings" );
31 ?>
32
33 <?php if ( 'general' == $active_tab ) : ?>
34 <table id="ayg-table-delete-cache" class="form-table">
35 <tbody>
36 <tr>
37 <th scope="row">
38 <label><?php esc_html_e( 'Delete Cache', 'automatic-youtube-gallery' ); ?></label>
39 </th>
40 <td>
41 <input type="submit" id="ayg-button-delete-cache" class="button-secondary" value="<?php esc_attr_e( 'Delete Cache', 'automatic-youtube-gallery' ); ?>" />
42 <span class="ayg-ajax-status"></span>
43 <p class="description"><?php esc_html_e( 'Delete all of the YouTube API data cached by the plugin.', 'automatic-youtube-gallery' ); ?></p>
44 </td>
45 </tr>
46 </tbody>
47 </table>
48 <?php endif; ?>
49
50 <?php submit_button(); ?>
51 </form>
52 </div>
53