| 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 ); ?> ayg-settings-pagination_type-<?php echo esc_attr( $pagination_type ); ?>"> |
| 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 |
|