1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00

add files to project

This commit is contained in:
janickiy 2020-02-05 06:34:26 +03:00
commit 5cac498444
3729 changed files with 836998 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 offset="0" class="body" style="padding:0; margin:0; display:block; background:#f7f7f7; -webkit-text-size-adjust:none" bgcolor="#f7f7f7">
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>

176
mail/retarget.php Normal file
View file

@ -0,0 +1,176 @@
<?php
/* @var $this \yii\web\View */
use yii\helpers\Html;
/* @var $site string */
/* @var $phone string */
$css = <<<CSS
img { max-width: 600px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;}
a img { border: none; }
table { border-collapse: collapse !important; }
#outlook a { padding:0; }
.ReadMsgBody { width: 100%; }
.ExternalClass {width:100%;}
.backgroundTable {margin:0 auto; padding:0; width:100% !important;}
table td {border-collapse: collapse;}
.ExternalClass * {line-height: 115%;}
/* General styling */
td {
font-family: Arial, sans-serif;
}
body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:none;
width: 100%;
height: 100%;
color: #6f6f6f;
font-weight: 400;
font-size: 18px;
}
h1 {
margin: 10px 0;
}
a {
color: #333333;
text-decoration: none;
}
.body-padding {
padding: 0 75px;
}
.force-full-width {
width: 100% !important;
}
/* Mobile styles */
@media only screen and (max-width: 1039px) {
table[class*="w1300"] {
width: 600px !important;
font-size: 24px !important;
}
td[class*="w1300"] {
width: 560px !important;
padding-left: 15px !important;
padding-right: 15px !important;
}
td[class*="mobile-center"] {
text-align: center !important;
}
td[class*="column-padding"] {
padding: 20px 0px !important;
}
td[class*="bottom-padding"] {
padding-bottom: 40px !important;
}
td[class*="top-padding"] {
padding-top: 40px !important;
}
}
/* Mobile styles */
@media only screen and (max-width: 599px) {
table[class*="w320"] {
width: 320px !important;
font-size: 18px !important;
}
td[class*="w320"] {
width: 280px !important;
padding-left: 15px !important;
padding-right: 15px !important;
}
td[class*="mobile-spacing"] {
padding-top: 10px !important;
padding-bottom: 10px !important;
}
*[class*="mobile-hide"] {
display: none !important;
width: 0 !important;
}
*[class*="mobile-br"] {
font-size: 12px !important;
}
td[class*="mobile-center"] {
text-align: center !important;
}
table[class*="columns"] {
width: 100% !important;
}
td[class*="column-padding"] {
padding: 10px 0px !important;
}
td[class*="bottom-padding"] {
padding-bottom: 30px !important;
}
td[class*="top-padding"] {
padding-top: 30px !important;
}
td[class*="logo-block"] img {
width: 180px !important;
height: 180px !important;
}
}
CSS;
$this->registerCss($css);
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center" valign="top" background="#f7f7f7" style="background-color: #f7f7f7;" width="100%">
<!-- HEADER -->
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center" valign="top" width="100%">
<center>
<table cellspacing="0" cellpadding="0" width="100%" class="w320 w1300" style="width: 100%; font-family: Arial, sans-serif; font-size: 2em; max-width: 1040px; padding-left: 10px; padding-right: 10px;">
<tr>
<td align="center" valign="top" class="column-padding top-padding logo-block" style="text-align: center; padding-top: 100px; padding-bottom: 90px;">
<a href="https://ktoti.me/" target="_blank"><img src="<?= $message->embed($logo); ?>" alt="logo" width="260px" height="260px"></a>
</td>
</tr>
<tr>
<td align="center" valign="top" class="column-padding" style="text-align: center; padding-top: 0px; padding-bottom: 45px; color: #333333; line-height: 1;">
Вы на нашем сайте <a href="https://ktoti.me/" target="_blank" style="color: #f7a916; font-weight: bold;">nomer.io</a> как-то давно искали информацию по номеру:
</td>
</tr>
<tr>
<td align="center" valign="top" class="column-padding" style="text-align: center; padding-top: 0px; padding-bottom: 0px; font-weight: bold; text-decoration: underline; color: #333333; line-height: 1;">
<a href="tel:<?=$phone;?>"><?=$phone;?></a>
</td>
</tr>
<tr>
<td align="center" valign="top" class="column-padding bottom-padding" style="text-align: center; padding-top: 45px; padding-bottom: 65px; color: #333333; line-height: 1; border-bottom: 3px solid #b3b3b3;">
но так как не заплатили нам, то мы не показали результат.
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<!-- END HEADER -->
<!-- FOOTER -->
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center" valign="top" width="100%">
<center>
<table cellspacing="0" cellpadding="0" width="100%" class="w320 w1300" style="width: 100%; max-width: 1040px; padding-left: 10px; padding-right: 10px; font-family: Arial, sans-serif; font-size: 2em;">
<tr>
<td align="center" valign="top" class="column-padding top-padding" style="text-align: center; padding-top: 45px; padding-bottom: 100px; color: #333333; line-height: 1;">
Сейчас мы всё же решили показать вам, на что мы способны совершенно бесплатно и вы можете ознакомиться со всей добытой нами информацией по этому номеру ниже в скриншоте:
</td>
</tr>
<tr>
<td align="center" valign="top" class="column-padding" style="padding-top: 0px; padding-bottom: 100px; box-sizing: border-box;">
<img src="<?= $message->embed($screenshot); ?>" alt="img" width="100%" style="border-radius: 10px; border: 2px solid #f7a916; max-width: 100%; width: 100%; box-sizing: border-box;">
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<!-- END FOOTER -->
</td>
</tr>