Enh: Use of theme variables in mail all views

This commit is contained in:
buddh4 2017-02-23 13:22:44 +01:00
parent 99e6467afd
commit eedf9a1a92
9 changed files with 82 additions and 90 deletions

View File

@ -48,8 +48,8 @@ HumHub Change Log
- Enh: Optimized stream entry fade animation.
- Enh: Added $maxAttachedFiles to content module to restrict the uploaded file count of comments and posts
- Fix: Hide notification count badge if notification count is 0
- Fix: Only flush js config if not empty.
- Fix: Only flush js config if not empty
- Enh: Use of theme variables in mail all views
1.2.0-beta.1 (February 08, 2017)
--------------------------------

View File

@ -2,12 +2,12 @@
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" bgcolor="#ffffff" style="background-color: #ffffff; border-top-left-radius: 4px; border-top-right-radius: 4px;">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-top-left-radius: 4px; border-top-right-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start image content -->
<tr>
@ -22,9 +22,11 @@
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" align="left" >
<tr>
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:left;">
<span style="color: #555555; font-weight: 300;">
<a href="#" style="text-decoration: none; color: #555555; font-weight: 300;"><?php echo Yii::t('base', '<strong>Mail</strong> summary'); ?></a>
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; font-weight:300; text-align:left;">
<span style="color:<?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<a href="#" style="text-decoration: none; color:<?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<?=Yii::t('base', '<strong>Mail</strong> summary'); ?>
</a>
</span>
</td>
</tr>

View File

@ -7,7 +7,7 @@
<td valign="top">
<!-- start container width 560px -->
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>">
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>">
<!-- start image content -->
<tr>

View File

@ -6,14 +6,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -25,10 +25,10 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="28" style=" background-color:#ffffff; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<td width="auto" align="center" valign="middle" height="28" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: #555555; font-weight: 300;">
<?php echo Yii::t('UserModule.views_mails_ChangeEmail', '<strong>Confirm</strong></strong> your new email address'); ?>
<span style="color:<?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<?= Yii::t('UserModule.views_mails_ChangeEmail', '<strong>Confirm</strong></strong> your new email address'); ?>
</span>
</td>
</tr>
@ -63,14 +63,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -92,7 +92,7 @@ use yii\helpers\Html;
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:left; ">
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:left; ">
<?php echo Yii::t('UserModule.views_mails_ChangeEmail', 'Hello'); ?> <?php echo Html::encode($user->displayName); ?>,<br><br>
@ -119,11 +119,11 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<td width="auto" align="center" valign="middle" height="32" style="background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<span style="color: #ffffff; font-weight: 300;">
<a href="<?php echo $approveUrl; ?>" style="text-decoration: none; color: #ffffff; font-weight: 300;">
<strong><?php echo Yii::t('UserModule.views_mails_ChangeEmail', 'Confirm'); ?></strong>
<span style="color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<a href="<?php echo $approveUrl; ?>" style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<strong><?= Yii::t('UserModule.views_mails_ChangeEmail', 'Confirm'); ?></strong>
</a>
</span>
</td>

View File

@ -7,15 +7,13 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
<tr>
@ -26,10 +24,9 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="28" style=" background-color:#ffffff; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: #555555; font-weight: 300;">
<?php echo Yii::t('UserModule.views_mails_RecoverPassword', '<strong>Password</strong> recovery'); ?>
<td width="auto" align="center" valign="middle" height="28" style=" background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<?= Yii::t('UserModule.views_mails_RecoverPassword', '<strong>Password</strong> recovery'); ?>
</span>
</td>
</tr>
@ -37,17 +34,14 @@ use yii\helpers\Html;
<!-- end button -->
</td>
</tr>
</table>
</td>
</tr>
<!-- end text content -->
</table>
<!-- end container width 560px -->
</td>
</tr>
</table>
@ -55,19 +49,18 @@ use yii\helpers\Html;
</td>
</tr>
<tr>
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -89,7 +82,7 @@ use yii\helpers\Html;
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:left; ">
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:left; ">
<?php echo Yii::t('UserModule.views_mails_RecoverPassword', 'Hello {displayName}', array('{displayName}' => Html::encode($user->displayName))); ?>
<br><br>
@ -121,9 +114,9 @@ use yii\helpers\Html;
<tr>
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<span style="color: #ffffff; font-weight: 300;">
<a href="<?php echo $linkPasswordReset; ?>" style="text-decoration: none; color: #ffffff; font-weight: 300;">
<strong><?php echo Yii::t('UserModule.views_mails_RecoverPassword', 'Reset Password'); ?></strong>
<span style="color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<a href="<?= $linkPasswordReset; ?>" style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<strong><?= Yii::t('UserModule.views_mails_RecoverPassword', 'Reset Password'); ?></strong>
</a>
</span>
</td>
@ -146,7 +139,6 @@ use yii\helpers\Html;
</tr>
<!--end space height -->
</table>
<!-- end container width 560px -->
</td>

View File

@ -8,14 +8,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -27,9 +27,8 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="28" style=" background-color:#ffffff; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: #555555; font-weight: 300;">
<td width="auto" align="center" valign="middle" height="28" style=" background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'You got an invite'); ?>
</span>
</td>
@ -60,14 +59,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" bgcolor="#ffffff"
style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container"
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start image and content -->
<tr>
@ -114,12 +113,12 @@ use yii\helpers\Html;
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
<tr>
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:center;">
<span style="color: #555555; font-weight: 300;">
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; font-weight:300; text-align:center;">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<a href="<?php echo $originator->createUrl('/user/profile', [], true); ?>"
style="text-decoration: none; color: #555555; font-weight: 300;">
style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<!-- START: USER NAME -->
<?php echo Html::encode($originator->displayName); ?>
<?= Html::encode($originator->displayName); ?>
<!-- END: USER NAME -->
</a>
</span>
@ -159,14 +158,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -188,11 +187,11 @@ use yii\helpers\Html;
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; padding-left: 50px; padding-right: 50px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:center; ">
<td style="font-size: 14px; line-height: 22px; padding-left: 50px; padding-right: 50px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:center; ">
<!-- START: CONTENT -->
<?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'invited you to join {name}.', ['name' => '<strong>' . Html::encode(Yii::$app->name) . '</strong>']); ?><br />
<?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'Register now and participate!'); ?><br/>
<?= Yii::t('UserModule.views_mails_UserInviteSpace', 'invited you to join {name}.', ['name' => '<strong>' . Html::encode(Yii::$app->name) . '</strong>']); ?><br />
<?= Yii::t('UserModule.views_mails_UserInviteSpace', 'Register now and participate!'); ?><br/>
&nbsp;
<!-- END: CONTENT -->
</td>
@ -208,11 +207,11 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<span style="color: #ffffff; font-weight: 300;">
<a href="<?php echo $registrationUrl; ?>" style="text-decoration: none; color: #ffffff; font-weight: 300;">
<strong><?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'Sign up now'); ?></strong>
<span style="color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<a href="<?= $registrationUrl; ?>" style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<strong><?= Yii::t('UserModule.views_mails_UserInviteSpace', 'Sign up now'); ?></strong>
</a>
</span>
</td>
@ -235,7 +234,6 @@ use yii\helpers\Html;
</tr>
<!--end space height -->
</table>
<!-- end container width 560px -->
</td>

View File

@ -9,7 +9,7 @@ use yii\helpers\Html;
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container"
style="background-color: #ffffff; ">
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
@ -17,7 +17,7 @@ use yii\helpers\Html;
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -30,10 +30,10 @@ use yii\helpers\Html;
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="28"
style=" background-color:#ffffff; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
style=" background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: #555555; font-weight: 300;">
<?php echo Yii::t('UserModule.views_mails_UserInviteSelf', 'Welcome to %appName%', array('%appName%' => '<strong>' . Html::encode(Yii::$app->name) . '</strong>')); ?>
<span style="color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<?= Yii::t('UserModule.views_mails_UserInviteSelf', 'Welcome to %appName%', array('%appName%' => '<strong>' . Html::encode(Yii::$app->name) . '</strong>')); ?>
</span>
</td>
</tr>
@ -64,7 +64,7 @@ use yii\helpers\Html;
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container"
style="background-color: #ffffff; ">
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
@ -72,7 +72,7 @@ use yii\helpers\Html;
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
bgcolor="#ffffff" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -94,7 +94,7 @@ use yii\helpers\Html;
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:center; ">
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:center; ">
<?php echo Yii::t('UserModule.views_mails_UserInviteSelf', 'Welcome to %appName%. Please click on the button below to proceed with your registration.', array('%appName%' => Html::encode(Yii::$app->name))); ?>
@ -121,9 +121,9 @@ use yii\helpers\Html;
<td width="auto" align="center" valign="middle" height="32"
style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<span style="color: #ffffff; font-weight: 300;">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<a href="<?php echo Url::toRoute(['/user/registration', 'token' => $token], true); ?>"
style="text-decoration: none; color: #ffffff; font-weight: 300;">
style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<strong><?php echo Yii::t('UserModule.views_mails_UserInviteSelf', 'Sign up'); ?></strong>
</a>
</span>

View File

@ -8,14 +8,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -27,7 +27,7 @@ use yii\helpers\Html;
<!-- start button -->
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="auto" align="center" valign="middle" height="28" style=" background-color:#ffffff; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<td width="auto" align="center" valign="middle" height="28" style=" background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; background-clip: padding-box; font-size:26px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#a3a2a2; font-weight: 300; padding-left:18px; padding-right:18px; ">
<span style="color: #555555; font-weight: 300;">
<?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'You got an invite'); ?>
@ -60,14 +60,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" bgcolor="#ffffff"
style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container"
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="560" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start image and content -->
<tr>
@ -114,10 +114,10 @@ use yii\helpers\Html;
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
<tr>
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:center;">
<span style="color: #555555; font-weight: 300;">
<td style="font-size: 18px; line-height: 22px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; font-weight:300; text-align:center;">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<a href="<?php echo $originator->createUrl('/user/profile', [], true); ?>"
style="text-decoration: none; color: #555555; font-weight: 300;">
style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-highlight', '#555') ?>; font-weight: 300;">
<!-- START: USER NAME -->
<?php echo Html::encode($originator->displayName); ?>
<!-- END: USER NAME -->
@ -159,14 +159,14 @@ use yii\helpers\Html;
<td align="center" valign="top" class="fix-box">
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: #ffffff; ">
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container" style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; ">
<tr>
<td valign="top">
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" bgcolor="#ffffff" style="background-color:#ffffff;">
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width" style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -188,7 +188,7 @@ use yii\helpers\Html;
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; padding-left: 50px; padding-right: 50px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:center; ">
<td style="font-size: 14px; line-height: 22px; padding-left: 50px; padding-right: 50px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:center; ">
<!-- START: CONTENT -->
<?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'invited you to join {space} on {name}.', ['space' => '<strong>' . Html::encode($space->name) . '</strong>', 'name' => Html::encode(Yii::$app->name)]); ?>
@ -212,8 +212,8 @@ use yii\helpers\Html;
<tr>
<td width="auto" align="center" valign="middle" height="32" style=" background-color:<?= $this->theme->variable('primary'); ?>; border-radius:5px; background-clip: padding-box;font-size:14px; font-family:Open Sans, Arial,Tahoma, Helvetica, sans-serif; text-align:center; color:#ffffff; font-weight: 600; padding-left:30px; padding-right:30px; padding-top: 5px; padding-bottom: 5px;">
<span style="color: #ffffff; font-weight: 300;">
<a href="<?php echo $registrationUrl; ?>" style="text-decoration: none; color: #ffffff; font-weight: 300;">
<span style="color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<a href="<?php echo $registrationUrl; ?>" style="text-decoration: none; color: <?= Yii::$app->view->theme->variable('text-color-contrast', '#fff') ?>; font-weight: 300;">
<strong><?php echo Yii::t('UserModule.views_mails_UserInviteSpace', 'Sign up now'); ?></strong>
</a>
</span>

View File

@ -8,7 +8,7 @@
<!-- start container width 600px -->
<table width="600" align="center" border="0" cellspacing="0" cellpadding="0" class="container"
style="background-color: #ffffff; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
style="background-color: <?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;">
<tr>
@ -16,7 +16,7 @@
<!-- start container width 560px -->
<table width="540" align="center" border="0" cellspacing="0" cellpadding="0" class="full-width"
bgcolor="#ffffff" style="background-color:#ffffff;">
style="background-color:<?= Yii::$app->view->theme->variable('background-color-main', '#fff') ?>;">
<!-- start text content -->
@ -38,7 +38,7 @@
<!--end space height -->
<tr>
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#777777; font-weight:300; text-align:left; ">
<td style="font-size: 14px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:<?= Yii::$app->view->theme->variable('text-color-main', '#777') ?>; font-weight:300; text-align:left; ">
<?php echo $message; ?>