<div class="wrap">
  <h1><?php _e('Baqend &rsaquo; Speed Kit', 'baqend') ?></h1>

  <?php if ($app_name === null): ?>
    <?php include 'loginForm.phtml'; ?>
  <?php else: ?>
    <?php include 'tabs.phtml'; ?>

    <?php if ($speed_kit->isOutdated()): ?>
      <div id="speed-kit-outdated" class="update-nag">
        <form id="form-update-speed-kit">
          <p><?php echo sprintf(__('Your Speed Kit version %s is outdated. Update to version %s now!', 'baqend'), $speed_kit->getLocalVersion(), $speed_kit->getRemoteVersion()) ?></p>
          <div class="submit-wrap">
            <?php submit_button(__('Update Speed Kit', 'baqend')); ?>
            <div class="spinner"></div>
          </div>
          <br class="clear">
        </form>
      </div>
    <?php endif; ?>

    <p><?php _e('Enable <strong>Baqend Speed Kit</strong> to make your website faster!', 'baqend') ?></p>

    <form action="options.php" method="post">
      <?php settings_fields($settings_group); ?>
      <?php echo $fields ?>

      <div class="submit-wrap">
        <?php submit_button(__('Save Settings', 'baqend')); ?>
        <div class="spinner"></div>
      </div>
    </form>

    <br class="clear">

    <form id="form-trigger-speed-kit">
      <p><?php echo __('Click on the following button to manually revalidate your website with Speed Kit.', 'baqend') ?></p>
      <div class="submit-wrap">
        <?php submit_button(__('Revalidate Website', 'baqend')); ?>
        <div class="spinner"></div>
      </div>
      <br class="clear">
    </form>
  <?php endif; ?>
  <br class="clear">
</div>
