| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Dashboard: Api Key. |
| 5 |
* |
| 6 |
* @link https://plugins360.com |
| 7 |
* @since 1.3.0 |
| 8 |
* |
| 9 |
* @package Automatic_YouTube_Gallery |
| 10 |
*/ |
| 11 |
|
| 12 |
// Exit if accessed directly |
| 13 |
if ( ! defined( 'WPINC' ) ) { |
| 14 |
die; |
| 15 |
} |
| 16 |
?> |
| 17 |
|
| 18 |
<div class="ayg-form ayg-card"> |
| 19 |
<div class="ayg-form-controls"> |
| 20 |
<h2 class="ayg-no-margin"> |
| 21 |
<?php esc_html_e( 'Connect your YouTube API key', 'automatic-youtube-gallery' ); ?> |
| 22 |
<span class="ayg-form-required" aria-hidden="true">*</span> |
| 23 |
</h2> |
| 24 |
|
| 25 |
<div class="ayg-form-control"> |
| 26 |
<input type="text" id="ayg-form-field-api-key" class="ayg-form-field ayg-form-field-api-key widefat" value="" placeholder="<?php esc_attr_e( 'Enter your YouTube API key', 'automatic-youtube-gallery' ); ?>" aria-label="<?php esc_attr_e( 'YouTube API Key', 'automatic-youtube-gallery' ); ?>" autofocus> |
| 27 |
|
| 28 |
<span class="ayg-form-status"></span> |
| 29 |
|
| 30 |
<p class="description"> |
| 31 |
<?php |
| 32 |
printf( |
| 33 |
__( 'A free YouTube Data API key is required to fetch your videos. <a href="%s" target="_blank" rel="noopener noreferrer">Get your API key</a> in just a few minutes.', 'automatic-youtube-gallery' ), |
| 34 |
'https://plugins360.com/automatic-youtube-gallery/how-to-get-youtube-api-key/' |
| 35 |
); |
| 36 |
?> |
| 37 |
</p> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div class="ayg-form-actions"> |
| 41 |
<button type="button" id="ayg-button-save-api-key" class="ayg-button button button-primary button-hero"> |
| 42 |
<?php esc_html_e( 'Proceed', 'automatic-youtube-gallery' ); ?> |
| 43 |
</button> |
| 44 |
<span class="ayg-form-status"></span> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
|