theme.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?php
  2. /*
  3. * Some variables are already defined:
  4. *
  5. * - $theme_options An array with all theme options
  6. * - $theme_url Is the absolute URL to the theme folder used to reference images
  7. * - $theme_subject Will be the email subject if set by this theme
  8. *
  9. */
  10. global $newsletter, $post;
  11. if (!defined('ABSPATH'))
  12. exit;
  13. if (empty($theme_options['theme_color']))
  14. $color = '#0088cc';
  15. else
  16. $color = $theme_options['theme_color'];
  17. if (isset($theme_options['theme_posts'])) {
  18. $filters = array();
  19. if (empty($theme_options['theme_max_posts']))
  20. $filters['posts_per_page'] = 10;
  21. else
  22. $filters['posts_per_page'] = (int) $theme_options['theme_max_posts'];
  23. if (!empty($theme_options['theme_categories'])) {
  24. $filters['category__in'] = $theme_options['theme_categories'];
  25. }
  26. if (!empty($theme_options['theme_tags'])) {
  27. $filters['tag'] = $theme_options['theme_tags'];
  28. }
  29. if (!empty($theme_options['theme_post_types'])) {
  30. $filters['post_type'] = $theme_options['theme_post_types'];
  31. }
  32. $posts = get_posts($filters);
  33. }
  34. ?><!DOCTYPE html>
  35. <html>
  36. <head>
  37. <style type="text/css">
  38. .ReadMsgBody {
  39. width: 100%;
  40. }
  41. .ExternalClass {
  42. width: 100%; background-color:#e7e8e9 !important;
  43. }
  44. .yshortcuts {color: #2979be;}
  45. body {
  46. background-color: #e7e8e9;}
  47. </style>
  48. </head>
  49. <body style="background-color:#e7e8e9;">
  50. <br>
  51. <br>
  52. <table border="0" cellspacing="0" cellpadding="1" width="550" align="center">
  53. <tbody>
  54. <tr>
  55. <td style="background-color: #fff;" width="550" valign="top">
  56. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  57. <tbody>
  58. <tr>
  59. <td valign="top" style="background-color: #333; color: #f4f4f4; font-size: 20px; padding: 7px">
  60. <?php echo get_option('blogname') ?>
  61. </td>
  62. </tr>
  63. <!-- main content here -->
  64. <tr>
  65. <td>
  66. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  67. <tbody>
  68. <tr>
  69. <td rowspan="10" width="35"></td>
  70. <td height="30"><br /></td>
  71. <td rowspan="9" width="35"></td>
  72. </tr>
  73. <tr>
  74. <td style="font-size: 32px; font-family: Arial; color: #217abe;">Here the title</td>
  75. </tr>
  76. <tr>
  77. <td style="font-size: 22px; font-family: Arial; color: #262729;">Here the subtitle</td>
  78. </tr>
  79. <tr>
  80. <td style="font-size: 14px; font-family: Arial; color: #444; text-align: left">
  81. <p>Hi {name},</p>
  82. <p>here a great new from me. I absoutely need to share this secret with you.</p>
  83. <p>Here a unordered list:</p>
  84. <ul>
  85. <li>List item 1</li>
  86. <li>List item 2</li>
  87. <li>List item 3</li>
  88. </ul>
  89. <p>Some other words before say good bye!</p>
  90. <p>See you soon.</p>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td height="30"></td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. </td>
  99. </tr>
  100. <!-- end main content -->
  101. <tr>
  102. <td>
  103. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  104. <tbody>
  105. <tr>
  106. <td width="35" height="20"></td>
  107. <td></td>
  108. <td rowspan="3" width="35"></td>
  109. </tr>
  110. <tr>
  111. <td></td>
  112. <td>
  113. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  114. <tbody>
  115. <tr>
  116. <td align="center" style="font-size: 14px; font-family: Arial;">
  117. <?php include WP_PLUGIN_DIR . '/newsletter/emails/themes/default/social.php'; ?>
  118. </td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td height="20"></td>
  126. <td></td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td style="background-color: #000000;" height="2"></td>
  134. </tr>
  135. <tr>
  136. <td style="background-color: #1b1c1e; font-size: 13px; color: #f4f4f4;" height="20" align="center">
  137. To unsubscribe <a style="color: #ccc" href="{unsubscription_url}">click here</a>, to edit your profile
  138. <a style="color: #ccc" href="{profile_url}">click here</a>.
  139. </td>
  140. </tr>
  141. </tbody>
  142. </table>
  143. </td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. </body>
  148. </html>