light.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. switch ($extra) {
  3. case 'invite':
  4. $button = '
  5. <center>
  6. <a href="' . $this->getServerPath(true) . '?invite=' . $email['inviteCode'] . '" style="display: inline-block; padding: 11px 30px; margin: 20px 0px 30px; font-size: 15px; color: #fff; background: #1e88e5; border-radius: 60px; text-decoration:none;">Use Invite Code</a>
  7. </center>
  8. ';
  9. break;
  10. case 'reset':
  11. $button = '
  12. <center>
  13. <a href="' . $this->getServerPath(true) . '" style="display: inline-block; padding: 11px 30px; margin: 20px 0px 30px; font-size: 15px; color: #fff; background: #1e88e5; border-radius: 60px; text-decoration:none;">Goto My Site</a>
  14. </center>
  15. ';
  16. break;
  17. default:
  18. $button = null;
  19. break;
  20. }
  21. $email = '
  22. <!DOCTYPE html>
  23. <html>
  24. <head>
  25. <meta content="width=device-width" name="viewport">
  26. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  27. <title>Email</title>
  28. </head>
  29. <body style="margin: 0px; background: rgb(248, 248, 248);">
  30. <div style="background: #f8f8f8; padding: 0px 0px; font-family:arial; line-height:28px; height:100%; width: 100%; color: #514d6a;">
  31. <div style="max-width: 700px;margin: 0px auto;font-size: 14px;">
  32. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; margin-bottom: 20px">
  33. <tbody>
  34. <tr>
  35. <td align="center" style="vertical-align: top; padding-bottom:30px;"><a href="javascript:void(0)" target="_blank"><br>
  36. <img alt="admin Responsive web app kit" src="' . $this->config['PHPMAILER-logo'] . '" style="border:none;width: 100%;"></a></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  41. <tbody>
  42. <tr>
  43. <td style="background: #1e88e5;padding:20px;color:#fff;text-align:center;">' . $subject . '</td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <div style="padding: 40px; background: #fff;">
  48. <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
  49. <tbody>
  50. <tr>
  51. <td>
  52. <p>' . $body . '</p>
  53. ' . $button . '
  54. </td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. </div>
  61. </body>
  62. </html>
  63. ';