first commit

This commit is contained in:
Chris Smith
2026-01-21 18:20:06 +01:00
commit 79c5872905
71 changed files with 7161 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
/**
* @var yii\web\View $this
* @var cgsmith\user\models\User $user
* @var cgsmith\user\models\Token $token
* @var string $url
* @var cgsmith\user\Module $module
*/
use yii\helpers\Html;
?>
<h2 style="color: #333; margin-top: 0;"><?= Yii::t('user', 'Confirm Your Email') ?></h2>
<p><?= Yii::t('user', 'Please click the button below to confirm your email address:') ?></p>
<p style="text-align: center; margin: 30px 0;">
<a href="<?= Html::encode($url) ?>"
style="display: inline-block; padding: 12px 30px; background-color: #0d6efd; color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold;">
<?= Yii::t('user', 'Confirm Email') ?>
</a>
</p>
<p style="color: #6c757d; font-size: 14px;">
<?= Yii::t('user', 'If the button above does not work, copy and paste this URL into your browser:') ?>
<br>
<a href="<?= Html::encode($url) ?>" style="color: #0d6efd; word-break: break-all;"><?= Html::encode($url) ?></a>
</p>
<p style="color: #6c757d; font-size: 14px;">
<?= Yii::t('user', 'This link will expire in {hours} hours.', ['hours' => round($module->confirmWithin / 3600)]) ?>
</p>
<p style="color: #6c757d; font-size: 14px;">
<?= Yii::t('user', 'If you did not request this email, please ignore it.') ?>
</p>