| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Dashboard. |
| 5 |
* |
| 6 |
* @link https://plugins360.com |
| 7 |
* @since 1.3.0 |
| 8 |
* |
| 9 |
* @package Automatic_YouTube_Gallery |
| 10 |
*/ |
| 11 |
?> |
| 12 |
|
| 13 |
<div id="ayg-dashboard" class="wrap about-wrap full-width-layout ayg-dashboard"> |
| 14 |
<h1><?php esc_html_e( 'Welcome to "Automatic YouTube Gallery"', 'automatic-youtube-gallery' ); ?></h1> |
| 15 |
|
| 16 |
<p class="about-text"> |
| 17 |
<?php esc_html_e( 'Create responsive, modern & dynamic video galleries by simply adding a YouTube USERNAME, CHANNEL, PLAYLIST, SEARCH KEYWORDS, or a custom list of YouTube URLs.', 'automatic-youtube-gallery' ); ?> |
| 18 |
</p> |
| 19 |
|
| 20 |
<div class="wp-badge"><?php printf( esc_html__( 'Version %s', 'automatic-youtube-gallery' ), AYG_VERSION ); ?></div> |
| 21 |
|
| 22 |
<h2 class="nav-tab-wrapper wp-clearfix"> |
| 23 |
<?php |
| 24 |
$plugin_url = admin_url( 'admin.php?page=automatic-youtube-gallery' ); |
| 25 |
|
| 26 |
foreach ( $tabs as $tab => $title ) { |
| 27 |
$class = ( $tab == $active_tab ) ? 'nav-tab nav-tab-active' : 'nav-tab'; |
| 28 |
printf( '<a href="%s" class="%s">%s</a>', esc_url( add_query_arg( 'tab', $tab, $plugin_url ) ), $class, $title ); |
| 29 |
} |
| 30 |
?> |
| 31 |
</h2> |
| 32 |
|
| 33 |
<?php |
| 34 |
if ( 'dashboard' == $active_tab ) { |
| 35 |
$file = ! empty( $general_settings['api_key'] ) ? 'builder' : 'api-key'; |
| 36 |
require_once AYG_DIR . "admin/templates/{$file}.php"; |
| 37 |
} |
| 38 |
?> |
| 39 |
</div> |
| 40 |
|