Files
szkoleniauryzaj.pl/wp-content/plugins/elfsight-youtube-gallery-cc/includes/templates/admin-api-key.php
2026-04-26 23:47:49 +02:00

30 lines
2.4 KiB
PHP

<article class="elfsight-admin-page-api-key elfsight-admin-page" data-elfsight-admin-page-id="api-key">
<div class="elfsight-admin-page-api-key-container">
<form class="elfsight-admin-page-api-key-form">
<h4 class="elfsight-admin-page-api-key-form-title-connect elfsight-admin-page-api-key-form-title"><?php esc_html_e('Set your YouTube API Key', $this->textDomain); ?></h4>
<h4 class="elfsight-admin-page-api-key-form-title-success elfsight-admin-page-api-key-form-title"><?php esc_html_e('Your YouTube API Key', $this->textDomain); ?></h4>
<div class="elfsight-admin-page-api-key-form-description-wrapper">
<p class="elfsight-admin-page-api-key-form-description elfsight-admin-page-api-key-form-description-connect">
<?php esc_html_e('You have to create your own YouTube API key to use YouTube Gallery widget.', $this->textDomain); ?>
<br><br>
<?php esc_html_e('The following tutorial explains the easy steps to get your YouTube API key: ', $this->textDomain); ?>
<br><br>
<a target="_blank" href="<?php echo esc_url('https://codecanyon.elfsight.com/article/562-how-to-get-youtube-api-key') ?>">
<?php esc_html_e('How to get YouTube API key', $this->textDomain); ?>
</a>
</p>
<span class="elfsight-admin-page-api-key-form-description elfsight-admin-page-api-key-form-description-success">
<?php esc_html_e('You have set a YouTube API Key and your plugin is working correctly now.', $this->textDomain); ?>
</span>
</div>
<input class="elfsight-admin-page-api-key-form-input" value="<?php echo elfsight_youtube_gallery_get_api_key(); ?>" data-nonce="<?php echo wp_create_nonce('elfsight_youtube_gallery_update_api_key_nonce'); ?>" type="text" placeholder="<?php esc_html_e('YouTube API Key', $this->textDomain); ?>">
<a class="elfsight-admin-button elfsight-admin-button-large elfsight-admin-button-green elfsight-admin-page-api-key-form-button elfsight-admin-page-api-key-form-button-connect" href="javascript:void(0)"><?php esc_html_e('Save API key', $this->textDomain); ?></a>
<div class="elfsight-admin-page-api-key-form-reload"><?php esc_html_e('This page will be reload at few seconds..', $this->textDomain); ?></div>
</form>
</div>
</article>