access-code.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Author: ExactMetrics team
  4. * Copyright 2018 ExactMetrics team
  5. * Author URI: https://exactmetrics.com
  6. * License: GPLv2 or later
  7. * License URI: http://www.gnu.org/licenses/gpl-2.0.html
  8. */
  9. ?>
  10. <form name="input" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>" method="post">
  11. <table class="gadwp-settings-options">
  12. <tr>
  13. <td colspan="2" class="gadwp-settings-info">
  14. <?php echo __( "Use this link to get your <strong>one-time-use</strong> access code:", 'google-analytics-dashboard-for-wp' ) . ' <a href="' . $data['authUrl'] . '" id="gapi-access-code" target="_blank">' . __ ( "Get Access Code", 'google-analytics-dashboard-for-wp' ) . '</a>.'; ?>
  15. </td>
  16. </tr>
  17. <tr>
  18. <td class="gadwp-settings-title">
  19. <label for="gadwp_access_code" title="<?php _e("Use the red link to get your access code! You need to generate a new one each time you authorize!",'google-analytics-dashboard-for-wp')?>"><?php echo _e( "Access Code:", 'google-analytics-dashboard-for-wp' ); ?></label>
  20. </td>
  21. <td>
  22. <input type="text" id="gadwp_access_code" name="gadwp_access_code" value="" size="61" autocomplete="off" pattern=".\/.{30,}" required="required" title="<?php _e("Use the red link to get your access code! You need to generate a new one each time you authorize!",'google-analytics-dashboard-for-wp')?>">
  23. </td>
  24. </tr>
  25. <tr>
  26. <td colspan="2">
  27. <hr>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td colspan="2">
  32. <input type="submit" class="button button-secondary" name="gadwp_authorize" value="<?php _e( "Save Access Code", 'google-analytics-dashboard-for-wp' ); ?>" />
  33. </td>
  34. </tr>
  35. </table>
  36. </form>