mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Monstra Email Templates #164
This commit is contained in:
@@ -1,221 +1,209 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title><?php echo Option::get('sitename'); ?></title>
|
||||
|
||||
<!-- Facebook sharing information tags -->
|
||||
<meta property="og:title" content="<?php echo Option::get('sitename'); ?>" />
|
||||
|
||||
<style type="text/css">
|
||||
/* EMBEDDED CSS
|
||||
Android Mail doesn't support "class" declarations outside of a media query so use inline CSS as a rule.
|
||||
More info: Http://www.emailonacid.com/blog/the_android_mail_app_and_css_class_declarations/ */
|
||||
/* Based on The MailChimp Reset INLINE: Yes. */
|
||||
/* Force Outlook to provide a "view in browser" menu link. */
|
||||
#outlook a {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100% !important;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* Force Hotmail to display emails at full width */
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/****** EMAIL CLIENT BUG FIXES - BEST NOT TO CHANGE THESE ********/
|
||||
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes. */
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div {
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
/* Forces Hotmail to display normal line spacing. More info: http://www.emailonacid.com/forum/viewthread/43/ */
|
||||
#backgroundTable {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100% !important;
|
||||
line-height: 100% !important;
|
||||
}
|
||||
/* End reset */
|
||||
|
||||
/* Images
|
||||
Bring inline: Yes. */
|
||||
img {
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
a img {
|
||||
border:none;
|
||||
}
|
||||
|
||||
/* Forces Hotmail to display emails at full width. */
|
||||
.ExternalClass {width:100%;}
|
||||
/* Yahoo paragraph fix
|
||||
Bring inline: Yes. */
|
||||
p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
/* Forces Hotmail to display normal line spacing. */
|
||||
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height:100%;}
|
||||
/* Hotmail header color reset
|
||||
Bring inline: Yes. */
|
||||
h1, h2, h3, h4, h5, h6 {color: #000 !important;}
|
||||
|
||||
/* Prevents Webkit and Windows Mobile platforms from changing default font sizes. */
|
||||
body {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;}
|
||||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: #000 !important;}
|
||||
|
||||
/* Resets all body margins and padding to "0" for good measure. */
|
||||
body {margin:0; padding:0;}
|
||||
/* Headers links color */
|
||||
h1 a:active,
|
||||
h2 a:active,
|
||||
h3 a:active,
|
||||
h4 a:active,
|
||||
h5 a:active,
|
||||
h6 a:active {
|
||||
color: #000 !important;
|
||||
}
|
||||
h1 a:visited,
|
||||
h2 a:visited,
|
||||
h3 a:visited,
|
||||
h4 a:visited,
|
||||
h5 a:visited,
|
||||
h6 a:visited {
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
/* Resolves webkit padding issue. */
|
||||
table {border-spacing:0;}
|
||||
/* Outlook 07, 10 Padding issue fix
|
||||
Bring inline: No.*/
|
||||
table td {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* Resolves the Outlook 2007, 2010, and Gmail td padding issue. */
|
||||
table td {border-collapse:collapse;}
|
||||
/* Remove spacing around Outlook 07, 10 tables
|
||||
Bring inline: Yes */
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
mso-table-lspace:0pt;
|
||||
mso-table-rspace:0pt;
|
||||
}
|
||||
|
||||
/* Styling your links
|
||||
Bring inline: Yes. */
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/****** END BUG FIXES ********/
|
||||
|
||||
|
||||
/****** RESETTING DEFAULTS, IT IS BEST TO OVERWRITE THESE STYLES INLINE ********/
|
||||
|
||||
|
||||
/* This sets a clean slate for all clients EXCEPT Gmail.
|
||||
From there it forces you to do all of your spacing inline during the development process.
|
||||
Be sure to stick to margins because paragraph padding is not supported by Outlook 2007/2010.
|
||||
Remember: Hotmail does not support "margin" nor the "margin-top" properties.
|
||||
Stick to "margin-bottom", "margin-left", "margin-right" in order to control spacing.
|
||||
It also wise to set the inline top-margin to "0" for consistancy in Gmail for every inline instance
|
||||
of a paragraph tag. */
|
||||
p {margin:0; padding:0; margin-bottom:0;}
|
||||
|
||||
/* This CSS will overwrite Hotmails default CSS and make your headings appear consistant with Gmail.
|
||||
From there, you can override with inline CSS if needed. */
|
||||
h1, h2, h3, h4, h5, h6 {color:#333333; line-height:100%;}
|
||||
|
||||
|
||||
/****** END RESETTING DEFAULTS ********/
|
||||
|
||||
|
||||
/****** EDITABLE STYLES - FOR YOUR TEMPLATE ********/
|
||||
|
||||
|
||||
/* The "body" is defined here for Yahoo Beta because it does not support your body tag. Instead, it will
|
||||
create a wrapper div around your email and that div will inherit your embedded body styles.
|
||||
The "#body_style" is defined for AOL because it does not support your embedded body definition nor
|
||||
your body tag, we will use this class in our wrapper div. */
|
||||
body, #body_style {width:100% !important; color:#333333; background:#FBFBFB; font-family:Arial,Helvetica,sans-serif; font-size:13px; line-height:1.4;}
|
||||
|
||||
/* This is the embedded CSS link color for Gmail. This will overwrite Hotmail and Yahoo Beta's
|
||||
embedded link colors and make it consistent with Gmail. Also use this rule on inline CSS. */
|
||||
a {color:#114eb1; text-decoration:none;}
|
||||
|
||||
/* There is no way to set these inline so you have the option of adding pseudo class definitions here.
|
||||
They won't work for Gmail or older Lotus Notes but it's a nice addition for all other clients. */
|
||||
a:link {color:#114eb1; text-decoration:none;}
|
||||
a:visited {color:#183082; text-decoration:none;}
|
||||
a:focus {color:#0066ff !important;}
|
||||
a:hover {color:#0066ff !important;}
|
||||
|
||||
/* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from
|
||||
linking other numbers that look like, but are not phone numbers. Use these two blocks of code to
|
||||
"unstyle" any numbers that may be linked. The second block gives you a class ".mobile_link" to apply
|
||||
with a span tag to the numbers you would like linked and styled.
|
||||
/* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers.
|
||||
More info: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/ */
|
||||
a[href^="tel"], a[href^="sms"] {text-decoration:none; color:#333333; pointer-events:none; cursor:default;}
|
||||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:default; color:#6e5c4f !important; pointer-events:auto; cursor:default;}
|
||||
a[href^="tel"],
|
||||
a[href^="sms"] {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/****** MEDIA QUERIES ********/
|
||||
/* You must use attribute selectors in your media queries to prevent Yahoo from rendering these styles.
|
||||
We added a yahoo attribute in the body tag to complete this fix.
|
||||
More info: http://www.emailonacid.com/blog/details/C13/stop_yahoo_mail_from_rendering_your_media_queries */
|
||||
.mobile_link a[href^="tel"],
|
||||
.mobile_link a[href^="sms"] {
|
||||
text-decoration: default;
|
||||
color: #000 !important;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* Target mobile devices. */
|
||||
/* @media only screen and (max-device-width: 639px) { */
|
||||
@media only screen and (max-width: 639px) {
|
||||
/* Phones */
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
|
||||
/* Hide elements at smaller screen sizes (!important needed to override inline CSS). */
|
||||
body[yahoo] .hide {display:none !important;}
|
||||
.hide {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Adjust table widths at smaller screen sizes. */
|
||||
body[yahoo] .table {width:320px !important;}
|
||||
body[yahoo] .innertable {width:280px !important;}
|
||||
.table {
|
||||
width: 300px !important;
|
||||
}
|
||||
|
||||
/* Resize hero image at smaller screen sizes. */
|
||||
body[yahoo] .heroimage {width:280px !important; height:100px !important;}
|
||||
/* Adjust logo widths at smaller screen sizes. */
|
||||
.logo {
|
||||
height: 75px !important;
|
||||
width: 300px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Resize page shadow at smaller screen sizes. */
|
||||
body[yahoo] .shadow {width:280px !important; height:4px !important;}
|
||||
|
||||
/* Collapse footer columns. */
|
||||
body[yahoo] .footer-left {width:320px !important;}
|
||||
body[yahoo] .footer-right {width:320px !important;}
|
||||
body[yahoo] .footer-right img {float:left !important; margin:0 1em 0 0 !important;}
|
||||
/* Tablets */
|
||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
||||
|
||||
}
|
||||
|
||||
/* Target tablet devices. */
|
||||
/* @media only screen and (min-device-width: 640px) and (max-device-width: 1024px) { */
|
||||
@media only screen and (min-width: 640px) and (max-width: 1024px) {
|
||||
|
||||
}
|
||||
|
||||
/*** END EDITABLE STYLES ***/
|
||||
|
||||
/****** TEMPORARY - THESE SHOULD BE MOVED INLINE AT END OF YOUR DEVELOPMENT PROCESS ********/
|
||||
|
||||
h1 {font-size:26px; line-height:1.2; font-weight:normal; margin-top:0; margin-bottom:0;}
|
||||
|
||||
p {margin-top:0; margin-bottom:0;}
|
||||
|
||||
img {display:block; border:none; outline:none; text-decoration:none;}
|
||||
|
||||
/* Remove spacing around Outlook 07, 10 tables */
|
||||
table {border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;}
|
||||
|
||||
/*** END TEMPORARY ***/
|
||||
</style>
|
||||
|
||||
<!-- Windows Mobile -->
|
||||
<!--[if IEMobile 7]>
|
||||
<style type="text/css">
|
||||
|
||||
</style>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Outlook 2007 and 2010 -->
|
||||
<!--[if gte mso 9]>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body style="width:100% !important; color:#333333; background:#FBFBFB; font-family:Arial,Helvetica,sans-serif; font-size:13px; line-height:1.4;"
|
||||
alink="#9d470a" link="#9d470a" bgcolor="#FBFBFB" text="#333333" yahoo="fix">
|
||||
<!-- You may adjust each of the values above for your template as needed.
|
||||
|
||||
We've included the style attribute for Gmail because it does not support embedded CSS and it will convert this body tag to
|
||||
a div. Since it gets converted to a div, the other body attributes like bgcolor are ignored.
|
||||
|
||||
We included body attributes (alink, link, bgcolor and text) for Lotus Notes 6.5 and 7, as these clients do not offer much
|
||||
support for embedded nor inline CSS.
|
||||
|
||||
The "min-height" attribute is set for Gmail and AOL since they will be converting this body tag to a div and we want our
|
||||
background color to reach the bottom of the page.
|
||||
|
||||
The yahoo attribute is added if you are using media queries for mobile devices (see media queries above) -->
|
||||
|
||||
<!-- PAGE WRAPPER -->
|
||||
|
||||
<div id="body_style">
|
||||
|
||||
<!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:100% !important; margin:0; padding:0;">
|
||||
<tr bgcolor="#FBFBFB">
|
||||
<td style="padding-top:20px;">
|
||||
<!-- Tables are the most common way to format your email consistently. Set your table widths inside cells and in most cases reset cellpadding, cellspacing, and border to zero. Use nested tables as a way to space effectively in your message. -->
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="table" style="border:1px solid #ccc;">
|
||||
|
||||
<!-- CONTENT -->
|
||||
<!-- set a value for bgcolor -->
|
||||
<tr bgcolor="#ffffff">
|
||||
<td style="padding-top:20px;">
|
||||
|
||||
<!-- article -->
|
||||
<table style="margin-bottom:1em;" width="560" cellpadding="0" cellspacing="0" border="0" align="center" class="innertable">
|
||||
<tr>
|
||||
<!-- article textarea -->
|
||||
<td>
|
||||
<table bgcolor="#ffffff" width="100%" cellpadding="10" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<p style="margin-top:0; margin-bottom:0;">
|
||||
<?php
|
||||
include $view.'.view.php';
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<!-- /article textarea -->
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /article -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /CONTENT -->
|
||||
|
||||
<!-- FOOTER -->
|
||||
<tr>
|
||||
<td bgcolor="#fdfdfd">
|
||||
<table width="100%" cellpadding="10" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td valign="top" style="font-size:11px; border-top:1px dashed #ccc; text-align:right;">
|
||||
<p style="margin-top:0; margin-bottom:0;">© 2012 - 2013 <a href="http://monstra.org" style="color:#333; text-decoration:none;">MONSTRA.ORG</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /FOOTER -->
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End of wrapper table -->
|
||||
</div>
|
||||
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
|
||||
<!-- Wrapper -->
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
|
||||
<tr>
|
||||
<td align="center" valign="top">
|
||||
<!-- Template-->
|
||||
<table cellpadding="0" cellspacing="0" border="0" align="center" width="600" class="table" style="border:1px solid #ccc;" bgcolor="#fdfdfd">
|
||||
<!-- Content -->
|
||||
<tr>
|
||||
<td valign="top" style="padding:20px;">
|
||||
<p style="margin-top:0; margin-bottom:0;">
|
||||
<?php include $view.'.view.php'; ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /Content -->
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="10" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td valign="top" style="font-size:11px; border-top:1px dashed #ccc; text-align:right;">
|
||||
<p style="margin-top:0; margin-bottom:0;">© 2012 - 2014 <a href="http://monstra.org" style="color:#333; text-decoration:none;">MONSTRA.ORG</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /Footer -->
|
||||
</table>
|
||||
<!-- /Template -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /Wrapper -->
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
Reference in New Issue
Block a user