/
bitrix-dev
/
Starter-kit
Обзор
Документация
Войти
/
bitrix-dev
/
Starter-kit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
main
local/templates/mail/header.php
135 строк
5 KB
Alexey Karizhenskiy
Первая сборка (из ранее используемого)
19 янв 2026, 21:00
19 янв 2026, 21:00
d843e36
Код
Авторство
О чём код?
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); $protocol = \Bitrix\Main\Config\Option::get("main", "mail_link_protocol", 'https', $arParams["SITE_ID"]); if (empty($protocol)) { $protocol = 'https'; } if (empty($arParams["SERVER_NAME"])) { $arParams["SERVER_NAME"] = $_SERVER['SERVER_NAME']; } $serverName = $protocol."://".$arParams["SERVER_NAME"]; $templateUrl = $serverName . '/local/templates/mail'; ?> <!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=utf-8" /> <title></title> <style type="text/css"> /* Client-specific Styles */ #outlook a {padding:0;} body{ width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin: 0; padding: 0; font-family: 'Wix Madefor Display', serif; background-color: #F5F5F5; } .ExternalClass {width:100%;} .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;} a { color: #000000; text-decoration: underline; } p { margin: 0 0 12px 0; } ul { margin: 0 0 12px 0; padding: 0 0 0 24px; } ul li { margin: 0 0 12px 0; } .btn { display: inline-block; background: #000000; border-radius: 5px; padding: 14px 30px; font-family: 'Wix Madefor Display', serif; font-style: normal; font-weight: 700; font-size: 12px; line-height: 15px; text-align: center; color: #FFFFFF; text-decoration: none; cursor: pointer; } /* End reset */ </style> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400..800&display=swap" rel="stylesheet"> <?php //echo $this->showStyles(); /* This is commented to avoid Project Quality Control warning $APPLICATION->ShowHead(); $APPLICATION->ShowTitle(); $APPLICATION->ShowPanel(); */ ?> </head> <body> <?php if (\Bitrix\Main\Loader::includeModule('mail')) : ?> <?=\Bitrix\Mail\Message::getQuoteStartMarker(true); ?> <?php endif; ?> <div style="padding: 46px 52px; margin:0 auto; max-width:600px; background-color: #FFFFFF; box-sizing: border-box; font-family: 'Wix Madefor Display', serif; font-size: 15px; line-height: 1.28; color: #000000;"> <table cellpadding="0" cellspacing="0" border="0" align="center" style="border-collapse: collapse; mso-table-lspace: 0pt; border: none; height: 100%; width: 100%;"> <tr> <td> <div style="margin: 0 auto 32px auto; max-width: 258px"> <img src="<?= $templateUrl ?>/images/logo.png" alt="logo" width="258" height="24"> </div> <div style="font-size: 15px; line-height: 19px; font-weight: 400; font-family: 'Wix Madefor Display', serif; margin-bottom: 62px;"> <table cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse; border: 0; width: 100%;"> <tr> <td style="border-collapse: collapse;border-spacing: 0;padding: 0; width: 18%;"> <a href="<?= $serverName ?>/catalog/" style="color:#000000; text-decoration:none;">Каталог</a> </td> <td style="border-collapse: collapse;border-spacing: 0;padding: 0; width: 20%; text-align: center;"> <a href="<?= $serverName ?>/akczii/" style="color:#000000; text-decoration:none;">Акции</a> </td> <td style="border-collapse: collapse;border-spacing: 0;padding: 0; width: 20%; text-align: center;"> <a href="<?= $serverName ?>/sale/" style="color:#BD0000; text-decoration:none;">Sale</a> </td> <td style="border-collapse: collapse;border-spacing: 0;padding: 0; width: 32%; text-align: right;"> <a href="<?= $serverName ?>/personal/" style="color:#000000; text-decoration:none;"> <img src="<?= $templateUrl ?>/images/icon-menu_user.png" alt="" style="width: 20px; height: 20px; vertical-align: bottom;"> <span> Личный кабинет </span> </a> </td> </tr> </table> </div> </td> </tr> <tr> <td valign="top" style="border-collapse: collapse;border-spacing: 0;padding:0"> <!-- ***************** END HEADER ********************--> <!-- ***************** CONTENT ********************--> <!-- CONTENT -->