[+] добавлен красный шаблон рассылок
This commit is contained in:
1 parent
689753ddf1
commit
ecc546b381
2 files changed
+151
-1
No files matched your search
+150
@@ -0,0 +1,150 @@
|
||||
<!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"/>
|
||||
<style type="text/css">
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
font-family: 'Avenir Next', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
||||
line-height: 1.65; }
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
display: block; }
|
||||
|
||||
body,
|
||||
.body-wrap {
|
||||
width: 100% !important;
|
||||
height: 100%;
|
||||
background: #efefef;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-size-adjust: none; }
|
||||
|
||||
a {
|
||||
color: #71bc37;
|
||||
text-decoration: none; }
|
||||
|
||||
.text-center {
|
||||
text-align: center; }
|
||||
|
||||
.text-right {
|
||||
text-align: right; }
|
||||
|
||||
.text-left {
|
||||
text-align: left; }
|
||||
|
||||
.button {
|
||||
display: inline-block;
|
||||
color: white;
|
||||
background: #d32020;
|
||||
border: solid #d32020;
|
||||
border-width: 10px 20px 8px;
|
||||
font-weight: bold;
|
||||
border-radius: 4px; }
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-bottom: 20px;
|
||||
line-height: 1.25; }
|
||||
|
||||
h1 {
|
||||
font-size: 32px; }
|
||||
|
||||
h2 {
|
||||
font-size: 28px; }
|
||||
|
||||
h3 {
|
||||
font-size: 24px; }
|
||||
|
||||
h4 {
|
||||
font-size: 20px; }
|
||||
|
||||
h5 {
|
||||
font-size: 16px; }
|
||||
|
||||
p, ul, ol {
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
margin-bottom: 20px; }
|
||||
|
||||
.container {
|
||||
display: block !important;
|
||||
clear: both !important;
|
||||
margin: 0 auto !important;
|
||||
max-width: 580px !important; }
|
||||
.container table {
|
||||
width: 100% !important;
|
||||
border-collapse: collapse; }
|
||||
.container .masthead {
|
||||
padding: 18px 0;
|
||||
background: #d32020;
|
||||
color: white;
|
||||
margin-top: 40px;
|
||||
display: block;
|
||||
}
|
||||
.container .masthead h1 {
|
||||
margin: 0 auto !important;
|
||||
max-width: 90%; }
|
||||
.container .content {
|
||||
background: white;
|
||||
padding: 30px 35px; }
|
||||
.container .content.footer {
|
||||
background: none; }
|
||||
|
||||
.container .content.footer p {
|
||||
margin-bottom: 0;
|
||||
color: #888;
|
||||
text-align: center;
|
||||
font-size: 14px; }
|
||||
.container .content.footer a {
|
||||
color: #888;
|
||||
text-decoration: none;
|
||||
font-weight: bold; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table class="body-wrap">
|
||||
<tr>
|
||||
<td class="container">
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" class="masthead">
|
||||
<h1>{HEADER}</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="content">
|
||||
<h2>{TITLE}</h2>
|
||||
<p>{MESSAGE}</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<p>
|
||||
<a href="{LINK}" class="button">{LINKNAME}</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="content footer" align="center">
|
||||
<p>Сообщение сгенерировано системой <a href="{HOME}">IoT Core Board</a></p>
|
||||
<p><a href="mailto:rsgrinko@gmail.com">E-Mail: rsgrinko@gmail.com</a> | <a href="https://telegram.me/rsgrinko">Telegram @rsgrinko</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
+1
-1
@@ -66,7 +66,7 @@ if(isset($_REQUEST['save']) and $_REQUEST['save'] == 'Y'):
|
||||
)
|
||||
);
|
||||
|
||||
$mail->template = 'default';
|
||||
$mail->template = $_REQUEST['template'] ?? 'default';
|
||||
$mail->templateDir = $_SERVER['DOCUMENT_ROOT'].'/assets/mail_templates';
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user