causefx 8 лет назад
Родитель
Сommit
c51d92e0d2
2 измененных файлов с 67 добавлено и 2 удалено
  1. 66 0
      api/plugins/misc/emailTemplates/light.php
  2. 1 2
      api/plugins/php-mailer.php

+ 66 - 0
api/plugins/misc/emailTemplates/light.php

@@ -0,0 +1,66 @@
+<?php
+switch ($extra) {
+    case 'invite':
+        $button = '
+		<center>
+			<a href="'.getServerPath(true).'?invite='.$email['inviteCode'].'" style="display: inline-block; padding: 11px 30px; margin: 20px 0px 30px; font-size: 15px; color: #fff; background: #1e88e5; border-radius: 60px; text-decoration:none;">Use Invite Code</a>
+		</center>
+        ';
+        break;
+    case 'reset':
+        $button = '
+		<center>
+			<a href="'.getServerPath(true).'" style="display: inline-block; padding: 11px 30px; margin: 20px 0px 30px; font-size: 15px; color: #fff; background: #1e88e5; border-radius: 60px; text-decoration:none;">Goto My Site</a>
+		</center>
+        ';
+        break;
+    default:
+        $button = null;
+        break;
+}
+ $email = '
+ <!DOCTYPE html>
+ <html>
+ <head>
+ 	<meta content="width=device-width" name="viewport">
+ 	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+ 	<title>Email</title>
+ </head>
+ <body style="margin: 0px; background: rgb(248, 248, 248);">
+ 	<div style="background: #f8f8f8; padding: 0px 0px; font-family:arial; line-height:28px; height:100%; width: 100%; color: #514d6a;">
+ 		<div style="max-width: 700px;margin: 0px auto;font-size: 14px;">
+ 			<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; margin-bottom: 20px">
+ 				<tbody>
+ 					<tr>
+ 						<td align="center" style="vertical-align: top; padding-bottom:30px;"><a href="javascript:void(0)" target="_blank"><br>
+ 						<img alt="admin Responsive web app kit" src="'.$GLOBALS['PHPMAILER-logo'].'" style="border:none;width: 100%;"></a></td>
+ 					</tr>
+ 				</tbody>
+ 			</table>
+ 			<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
+ 				<tbody>
+ 					<tr>
+ 						<td style="background: #1e88e5;padding:20px;color:#fff;text-align:center;">'.$subject.'</td>
+ 					</tr>
+ 				</tbody>
+ 			</table>
+ 			<div style="padding: 40px; background: #fff;">
+ 				<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
+ 					<tbody>
+ 						<tr>
+ 							<td>
+ 								<p>'.$body.'</p>
+ 								'.$button.'
+ 							</td>
+ 						</tr>
+ 					</tbody>
+ 				</table>
+ 			</div>
+ 			<div style="text-align: center; font-size: 12px; color: #b2b2b5; margin-top: 20px">
+ 				<p>Powered by Organizr<br></p>
+ 			</div>
+ 		</div>
+ 	</div>
+ </body>
+ </html>
+';

+ 1 - 2
api/plugins/php-mailer.php

@@ -256,9 +256,8 @@ function phpmGetSettings(){
 			),
 			array(
 				'type' => 'select',
-				'name' => 'theme',
+				'name' => 'PHPMAILER-template',
 				'label' => 'Theme',
-				'class' => 'themeChanger',
 				'value' => $GLOBALS['PHPMAILER-template'],
 				'options' => getTemplates()
 			),