SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/email.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Sprout;
  4.  
  5.  
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. <meta name="format-detection" content="telephone=no">
  13. <!--[if !mso]><!-- -->
  14. <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
  15. <!--<![endif]-->
  16. <!--[if mso]>
  17. <style type=”text/css”>
  18. body,
  19. .fallback-text {
  20. font-family: Arial, sans-serif;
  21. }
  22. </style>
  23. <![endif]-->
  24. <title><?= Enc::html(!empty($html_title)? $html_title : Kohana::config('sprout.site_title')); ?></title>
  25.  
  26. <style type="text/css">
  27. /* Hotmail fixes*/
  28. .ReadMsgBody{
  29. width:100%;
  30. background-color: #ededed;
  31. }
  32. .ExternalClass{
  33. width:100%;
  34. background-color: #ededed;
  35. }
  36.  
  37. body{
  38. -webkit-font-smoothing:antialiased;
  39. background-color: #ededed
  40. }
  41. h1,h2,h3,h4,h5 { margin-top:0; margin-right:0; margin-left:0; margin-bottom:26px; }
  42. h1,.h1{
  43. color:#000000 !important;
  44. font-family: 'Open Sans', 'Franklin Gothic Medium', Futura, Trebuchet MS, Arial, sans-serif;
  45. font-size:24px;
  46. font-weight:bold;
  47. mso-line-height-rule:exactly;
  48. line-height:32px;
  49. }
  50. h2,.h2{
  51. color:#F77752 !important;
  52. font-family: 'Open Sans', 'Franklin Gothic Medium', Futura, Trebuchet MS, Arial, sans-serif;
  53. font-size:22px;
  54. font-weight:bold;
  55. mso-line-height-rule:exactly;
  56. line-height:32px;
  57. }
  58. h3,.h3{
  59. color:#000000 !important;
  60. font-family: 'Open Sans', 'Franklin Gothic Medium', Futura, Trebuchet MS, Arial, sans-serif;
  61. font-size:20px;
  62. font-weight:bold;
  63. mso-line-height-rule:exactly;
  64. line-height: 26px;
  65. }
  66. h4,.h4{
  67. color:#F77752 !important;
  68. font-family: 'Open Sans', 'Franklin Gothic Medium', Futura, Trebuchet MS, Arial, sans-serif;
  69. font-size:16px;
  70. font-weight:bold;
  71. }
  72. h5,.h5{
  73. color:#303030 !important;
  74. font-family: 'Open Sans', 'Franklin Gothic Medium', Futura, Trebuchet MS, Arial, sans-serif;
  75. font-size:16px;
  76. font-weight:bold;
  77. }
  78. p, li, ul, ol {
  79. font-size: 16px;
  80. color: #303030;
  81. font-weight: normal;
  82. text-align: left;
  83. font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  84. mso-line-height-rule:exactly;
  85. line-height: 26px;
  86. margin-top: 0px;
  87. margin-bottom: 26px;
  88. }
  89. ul, ol {
  90. padding-left: 20px;
  91. }
  92. a, a:link,a:visited,a .yshortcuts{
  93. color: #68AF98 !important;
  94. }
  95. a:hover,a:focus,a:active {
  96. color: #68AF98 !important;
  97. text-decoration: none;
  98. }
  99. /* Style iOS auto links to not look like links */
  100. .autolink-fix a {
  101. color: #303030 !important;
  102. text-decoration: none !important;
  103. }
  104. a img {
  105. border: 0;
  106. }
  107.  
  108. table{
  109. border-collapse:collapse;
  110. }
  111.  
  112. @media only screen and (max-device-width: 619px), screen and (max-width: 619px){
  113. .wrappper {
  114. padding: 10px!important;
  115. }
  116. .center-mob{
  117. text-align:center!important;
  118. }
  119. .right-mob{
  120. text-align:right!important;
  121. }
  122. .left-mob{
  123. text-align:left!important;
  124. }
  125. .deviceWidth,
  126. .paddedDeviceWidth {
  127. padding:0;
  128. max-width:100%!important;
  129. }
  130. .deviceWidth {
  131. width:480px!important;
  132. max-height:none!important;
  133. }
  134. .paddedDeviceWidth {
  135. width:440px!important;
  136. }
  137. }
  138. @media only screen and (max-device-width: 560px), screen and (max-width: 560px){
  139. .right-mob-sm {
  140. text-align:right!important;
  141. }
  142. .left-mob-sm {
  143. text-align:left!important;
  144. }
  145. .deviceWidth {
  146. width:380px!important;
  147. }
  148. .paddedDeviceWidth {
  149. width:340px!important;
  150. }
  151. }
  152. @media only screen and (max-device-width: 420px), screen and (max-width: 420px){
  153. .right-mob-xs{
  154. text-align:right!important;
  155. }
  156. .left-mob-xs{
  157. text-align:left!important;
  158. }
  159. .deviceWidth,
  160. .paddedDeviceWidth {
  161. width:100%!important;
  162. }
  163. }
  164. </style>
  165. </head>
  166.  
  167. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="width:100%; margin:0; padding:0;background-color: #ededed;font-size: 16px; color: #303030; font-weight: normal; text-align: left; font-family: 'Open Sans', Arial, Helvetica, sans-serif; mso-line-height-rule:exactly; line-height: 26px;">
  168.  
  169. <!-- Wrapper -->
  170. <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ededed">
  171. <tr>
  172. <td class="wrappper" width="100%" valign="top" style="padding: 20px;">
  173.  
  174. <table width="600" class="deviceWidth" border="0" cellpadding="25" cellspacing="0" align="center" bgcolor="#ffffff">
  175. <tr>
  176. <td align="center">
  177.  
  178. <img src="<?php echo Enc::html(Sprout::absRoot()); ?>skin/default/images/logo_email.gif" alt="<?php echo Enc::html(Kohana::config('sprout.site_title')); ?>">
  179.  
  180. </td>
  181. </tr>
  182. </table>
  183.  
  184. <table width="600" class="deviceWidth" border="0" cellpadding="25" cellspacing="0" align="center" bgcolor="#ffffff">
  185. <tr>
  186. <td class="fallback-text" style="font-size: 16px; color: #303030; font-weight: normal; text-align: left; font-family: 'Open Sans', Arial, Helvetica, sans-serif; mso-line-height-rule:exactly; line-height: 26px; vertical-align: top;padding-bottom: 30px;">
  187.  
  188. <?php echo $content; ?>
  189.  
  190. </td>
  191. </tr>
  192. </table>
  193.  
  194. <table width="600" class="deviceWidth" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ededed">
  195. <tr>
  196. <td style="font-size: 16px; color: #303030; font-weight: normal; text-align: left; font-family: 'Open Sans', Arial, Helvetica, sans-serif; mso-line-height-rule:exactly; line-height: 26px; vertical-align: top;padding-top: 10px;padding-bottom: 15px;">
  197.  
  198. <br>
  199. <strong><?php echo Enc::html(Kohana::config('sprout.site_title')); ?></strong> <br>
  200.  
  201. <div class="footer-link">
  202. <a href="<?php echo Enc::html(Sprout::absRoot()); ?>"><?php echo Enc::html(Sprout::absRoot()); ?></a>
  203. <br>1 Example Street, Example Town SA
  204. <br><a class="icon-desktop_mac-disable-link" href="tel:08-0000-0000">08 0000 0000</a>
  205. </div>
  206.  
  207. </td>
  208. </tr>
  209. </table>
  210.  
  211. </td>
  212. </tr>
  213. </table> <!-- End Wrapper -->
  214.  
  215.  
  216. </body>
  217. </html>
  218.