<?php
if (!defined('ABSPATH')) {
  exit;
}
/* @var UpVimeo_Api_Helper $upvimeo_vimeo_helper */

$upvimeo_vimeo_helper = isset($args['upvimeo_helper']) ? $args['upvimeo_helper'] : (isset($upvimeo_vimeo_helper) ? $upvimeo_vimeo_helper : null);
$upvimeo_db_helper = isset($args['db_helper']) ? $args['db_helper'] : (isset($upvimeo_db_helper) ? $upvimeo_db_helper : null);
$upvimeo_settings_helper = isset($args['settings_helper']) ? $args['settings_helper'] : (isset($upvimeo_settings_helper) ? $upvimeo_settings_helper : null);

/* @var UpVimeo_Db_Helper $upvimeo_db_helper */
/* @var UpVimeo_Settings_Helper $upvimeo_settings_helper */
?>

<h2><?php esc_html_e('Invalid API Details', 'upvimeo-direct-uploads'); ?></h2>
<div class="wvv-box">
  <h3><?php esc_html_e('Oh, snap!', 'upvimeo-direct-uploads'); ?></h3>
  <p>
    <?php echo wp_kses_post(__('Your Vimeo API credentials are missing or are invalid. Go to the <strong>Settings > Vimeo</strong> screen and enter valid vimeo details.', 'upvimeo-direct-uploads')); ?>
  </p>
  <p>
    <?php echo wp_kses_post(sprintf(
      /* translators: %s: link to Vimeo developer portal */
      __('Please go to the %s and re-generate your access token with all the required scopes. If you need help check the link bellow.', 'upvimeo-direct-uploads'),
      '<a target="_blank" href="https://developer.vimeo.com/">Vimeo developer portal</a>'
    )); ?>
  </p>
  <hr />
  <p>
    <a href="<?php echo esc_url(admin_url('admin.php?page=' . UpVimeo_Admin::PAGE_VIMEO)); ?>"
      class="button"><?php esc_html_e('Back', 'upvimeo-direct-uploads'); ?></a>
    <a href="<?php echo esc_url(admin_url('admin.php?page=' . UpVimeo_Admin::PAGE_SETTINGS . '&action=settings')); ?>"
      class="button-primary"><?php esc_html_e('Settings', 'upvimeo-direct-uploads'); ?></a>
  </p>
</div>