This commit is contained in:
2020-10-06 14:27:47 +07:00
commit 586be80cf6
16613 changed files with 3274099 additions and 0 deletions

22
mail/layouts/html.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
<!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=<?= Yii::$app->charset ?>" />
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>

17
mail/layouts/html.tpl Normal file
View File

@@ -0,0 +1,17 @@
{use class="yii\helpers\Html"}
{$this->beginPage()}
<!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={$app->charset}" />
<title>{$this->title|escape}</title>
{$this->head()}
</head>
<body>
{$this->beginBody()}
{$content}
{$this->endBody()}
</body>
</html>
{$this->endPage()}

7
mail/layouts/text.tpl Normal file
View File

@@ -0,0 +1,7 @@
{use class="yii\helpers\Html"}
{$this->beginPage()}
{$this->beginBody()}
{$content}
{$this->endBody()}
{$this->endPage()}