theme.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. /*
  3. * Name: CTA 2015
  4. * Type: standard
  5. * Description: Single call to action marketing template
  6. */
  7. if (!defined('ABSPATH')) exit;
  8. $color = '#87aa14';
  9. if (!empty($theme_options['theme_color'])) {
  10. $color = $theme_options['theme_color'];
  11. }
  12. $header = '';
  13. $header_color = '#000000';
  14. if (!empty($theme_options['main_header_logo']['url'])) {
  15. $header = '<img src="' . $theme_options['main_header_logo']['url'] . '" style="max-width: 500px">';
  16. } else {
  17. if (!empty($theme_options['main_header_title'])) {
  18. $header = '<h2 style="color: ' . $header_color . '">' . $theme_options['main_header_title'] . '</h2>';
  19. } else {
  20. $header = '<h2 style="color: ' . $header_color . '">' . get_option('blogname') . '</h2>';
  21. }
  22. if (!empty($theme_options['main_header_sub'])) {
  23. $header .= '<p style="color: #666666">' . $theme_options['main_header_sub'] . '</p>';
  24. }
  25. }
  26. $font_family = 'Verdana';
  27. //$cta_bgcolor = '#008800';
  28. //if (!empty($theme_options['theme_cta_bgcolor'])) {
  29. // $cta_bgcolor = $theme_options['theme_cta_bgcolor'];
  30. //}
  31. $social_icon_url = plugins_url('newsletter') . '/emails/themes/cta-2015/images';
  32. ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  33. <html>
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  36. <title></title>
  37. </head>
  38. <body bgcolor="#ffffff">
  39. <table width="500" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" border="0">
  40. <tr>
  41. <td align="center" style="font-family: Verdana">
  42. <table cellpadding="10" cellspacing="0" border="0" width="100%">
  43. <tr>
  44. <td style="font-size: 12px" align="center">
  45. <a href="{email_url}" style="text-decoration: none">View online</a>
  46. </td>
  47. </tr>
  48. </table>
  49. </td>
  50. </tr>
  51. <!-- header -->
  52. <tr>
  53. <td align="center" style="font-family: Verdana">
  54. <?php echo $header; ?>
  55. </td>
  56. </tr>
  57. <!-- body -->
  58. <tr>
  59. <td style="font-family: Verdana">
  60. <!-- main text -->
  61. <table cellpadding="15" cellspacing="0" align="center" border="0" width="100%">
  62. <tr>
  63. <td style="font-size: 15px" align="center">
  64. <h1>Super catching title</h1>
  65. <p>
  66. Here you should introduce your incredible offer. Remember the golden rule: write
  67. something useful for your readers, not for yourself.
  68. </p>
  69. <p>
  70. If a reader ask the question: what's here for me, the content is answering?
  71. </p>
  72. </td>
  73. </tr>
  74. </table>
  75. <!-- cta -->
  76. <table cellpadding="15" cellspacing="0" align="center" bgcolor="<?php echo $color ?>" border="0" style="border-radius: 5px">
  77. <tr>
  78. <td><a href="#" style="font-size: 15px; color: #ffffff; text-decoration: none">Call to action</a></td>
  79. </tr>
  80. </table>
  81. <!-- spacer -->
  82. <table cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" border="0" width="100%">
  83. <tr>
  84. <td>
  85. &nbsp;
  86. </td>
  87. </tr>
  88. </table>
  89. <?php include WP_PLUGIN_DIR . '/newsletter/emails/themes/default/footer.php'; ?>
  90. <!-- spacer -->
  91. <table cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" border="0" width="100%">
  92. <tr>
  93. <td>
  94. &nbsp;
  95. </td>
  96. </tr>
  97. </table>
  98. <!-- footer -->
  99. <table cellpadding="15" cellspacing="0" align="center" width="100%" bgcolor="#eeeeee" border="0">
  100. <tr>
  101. <td style="font-size: 12px">
  102. <p><a href="{profile_url}">Manage your subscription</a></p>
  103. <p><?php echo $theme_options['main_footer_contact'] ?></p>
  104. <p><?php echo $theme_options['main_footer_legal'] ?></p>
  105. </td>
  106. </tr>
  107. </table>
  108. </td>
  109. </tr>
  110. </table>
  111. </body>
  112. </html>