Нет описания

Support.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2019, Code Atlantic LLC
  4. ******************************************************************************/
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. /**
  9. * Class PUM_Admin_Support
  10. */
  11. class PUM_Admin_Support {
  12. /**
  13. * Support Page
  14. *
  15. * Renders the support page contents.
  16. */
  17. public static function page() { ?>
  18. <style>
  19. .pum-secure-notice {
  20. position: fixed;
  21. top: 32px;
  22. left: 160px;
  23. right: 0;
  24. background: #ebfdeb;
  25. padding: 10px 20px;
  26. color: green;
  27. z-index: 9999;
  28. box-shadow: 0 2px 2px rgba(6, 113, 6, 0.3);
  29. opacity: 0.95;
  30. filter: alpha(opacity=95);
  31. }
  32. #pum-support-frame {
  33. margin: 40px 0 -65px -20px;
  34. }
  35. #pum-support-frame iframe {
  36. width: 100%;
  37. border: 0;
  38. transition: scroll .5s;
  39. }
  40. </style>
  41. <div class="pum-secure-notice">
  42. <i class="dashicons dashicons-lock"></i>
  43. <span><?php _e( '<b>Secure HTTPS contact page</b>, running via iframe from external domain', 'popup-maker' ); ?> </span>
  44. <i class="dashicons dashicons-info" title="https://api.wppopupmaker.com/dashboard-support/"></i>
  45. </div>
  46. <div id="pum-support-frame" class="wrap">
  47. <script type="text/javascript">
  48. (function ($) {
  49. var frame = $('<iframe scrolling="no">')
  50. .css({height: '535px'})
  51. .attr('src', '<?php echo 'https://api.wppopupmaker.com/dashboard-support/?' . build_query( pum_support_assist_args() ); ?>')
  52. .appendTo('#pum-support-frame');
  53. frame.iFrameResize({
  54. checkOrigin: false
  55. });
  56. })(jQuery);
  57. </script>
  58. </div>
  59. <?php
  60. }
  61. }