PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 1.2.0
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v1.2.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.2.0, at admin/templates/settings.php

55 lines 2.0 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 <h1><?php esc_html_e( 'Automatic YouTube Gallery', 'automatic-youtube-gallery' ); ?></h1>
15
16 <h2 class="nav-tab-wrapper">
17 <?php
18 $settings_url = admin_url( 'admin.php?page=automatic-youtube-gallery' );
19
20 foreach ( $this->tabs as $tab => $title ) {
21 $class = ( $tab == $active_tab ) ? 'nav-tab nav-tab-active' : 'nav-tab';
22 printf( '<a href="%s" class="%s">%s</a>', esc_url( add_query_arg( 'tab', $tab, $settings_url ) ), $class, $title );
23 }
24 ?>
25 </h2>
26
27 <?php settings_errors(); ?>
28
29 <form method="post" action="options.php">
30 <?php
31 settings_fields( "ayg_{$active_tab}_settings" );
32 do_settings_sections( "ayg_{$active_tab}_settings" );
33 ?>
34
35 <?php if ( 'general' == $active_tab ) : ?>
36 <table class="form-table" style="margin-top: 0;">
37 <tbody>
38 <tr>
39 <th scope="row">
40 <label for="ayg-delete-cache-button"><?php esc_html_e( 'Delete Cache', 'automatic-youtube-gallery' ); ?></label>
41 </th>
42 <td>
43 <?php wp_nonce_field( 'ayg_delete_cache_nonce', 'ayg_delete_cache_nonce' ); ?>
44 <input type="submit" class="button-secondary" name="ayg_delete_cache" value="<?php esc_attr_e( 'Delete Cache', 'automatic-youtube-gallery' ); ?>" />
45 <p class="description"><?php esc_html_e( 'Delete all of the YouTube API data cached by the plugin.', 'automatic-youtube-gallery' ); ?></p>
46 </td>
47 </tr>
48 </tbody>
49 </table>
50 <?php endif; ?>
51
52 <?php submit_button(); ?>
53 </form>
54 </div>
55