Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/template/system/layouts/email/subscription/default.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Template.System * @subpackage Layout.Email * * @copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ namespace Kunena\Forum\Site; \defined('_JEXEC') or die(); use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; use Kunena\Forum\Libraries\Config\KunenaConfig; $config = KunenaConfig::getInstance(); $author = $this->message->getAuthor(); $subject = $this->message->subject ? $this->message->subject : $this->message->getTopic()->subject; $this->messageLink = Uri::getInstance()->toString(array('scheme', 'host', 'port')) . $this->message->getUrl(null, false); $msg1 = $this->message->parent ? Text::_('COM_KUNENA_POST_EMAIL_NOTIFICATION1') : Text::_('COM_KUNENA_POST_EMAIL_NOTIFICATION1_CAT'); $msg2 = $this->message->parent ? Text::_('COM_KUNENA_POST_EMAIL_NOTIFICATION2') : Text::_('COM_KUNENA_POST_EMAIL_NOTIFICATION2_CAT'); $more = ($this->once ? Text::_( $this->message->parent ? 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_READ' : 'COM_KUNENA_POST_EMAIL_NOTIFICATION_MORE_SUBSCRIBE' ) . "\n" : ''); if (!$config->plainEmail) : // New post email for subscribers (HTML) $this->mail->isHtml(true); $this->mail->Encoding = 'base64'; ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0;"> <meta name="format-detection" content="telephone=no"/> <style> body { margin: 0; padding: 0; min-width: 100%; width: 100% !important; height: 100% !important; } body, table, td, div, p, a { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; } table, td { mso-table-lspace: 0; mso-table-rspace: 0; border-collapse: collapse !important; border-spacing: 0; } img { border: 0; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; } #outlook a { padding: 0; } .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; } @media all and (min-width: 560px) { .container { border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px; -khtml-border-radius: 8px; } } a, a:hover { color: #127DB3; } .footer a, .footer a:hover { color: #999999; } </style> <title><?php echo $msg1 . " " . $config->boardTitle; ?></title> </head> <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0" marginwidth="0" marginheight="0" width="100%" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 100%; height: 100%; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; background-color: #F0F0F0; color: #000000;" bgcolor="#F0F0F0" text="#000000"> <table border="0" cellpadding="0" cellspacing="0" align="center" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: 100%; background-color: #f0f0f0;" class="wrapper"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; width: 87.5%; background-color: #F0F0F0; padding: 20px 6.25%;"> <p> </p> </td> </tr> </table> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 100%;" class="background"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0;" bgcolor="#F0F0F0"> <table border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" width="560" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: inherit; max-width: 560px;" class="container"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; width: 87.5%; font-size: 16px; font-weight: bold; line-height: 130%; padding: 25px 6.25% 0;color: #999999;font-family: sans-serif;" class="header"> <?php echo $msg1 . " " . $config->boardTitle; ?> </td> </tr> <?php if (!empty($config->emailheader)) : ?> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 20px 0 0;" class="hero"><a target="_blank" style="text-decoration: none;" href="#"><img border="0" vspace="0" hspace="0" src="<?php echo Uri::base() . KunenaConfig::getInstance()->emailheader; ?>" alt="Please enable images to view this content" title="Forum" width="560" style=" width: 100%; max-width: 560px; color: #000000; font-size: 13px; margin: 0; padding: 0; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: none; display: block;"/></a> </td> </tr> <?php endif; ?> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; width: 87.5%; font-size: 17px; padding: 25px 6.25% 0;color: #999999;font-family: sans-serif;text-align:left;" class="paragraph"> <div> <p><?php echo Text::_('COM_KUNENA_MESSAGE_SUBJECT') . " : " . $subject; ?></p> <p><?php echo Text::_('COM_KUNENA_CATEGORY') . " : " . $this->message->getCategory()->name; ?></p> <p><?php echo Text::_('COM_KUNENA_VIEW_POSTED') . " : " . $author->getName('???', false); ?></p> <p><?php echo Text::_('COM_KUNENA_EMAIL_MESSAGE_LINK_URL');?> : <a href="<?php echo $this->messageLink; ?>"><b><?php echo $this->messageLink; ?></b></a> </p> </div> <?php if ($config->mailFull == 1) : echo Text::_('COM_KUNENA_MESSAGE'); ?>: <div> <p><?php echo $this->message->displayField('message', true, 'subscription'); ?></p> </div> <?php endif; ?> <?php if ($more) : ?> <div> <p><?php echo $more; ?></p> </div> <?php endif; ?> </td> </tr> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; width: 87.5%; padding: 25px 6.25% 5px;" class="button"><a href="<?php echo Uri::getInstance()->toString(array('scheme', 'host', 'port')) . $this->message->getUrl(null, false); ?>" target="_blank" style="text-decoration: underline;"> <table border="0" cellpadding="0" cellspacing="0" align="center" style="max-width: 240px; min-width: 120px; border-collapse: collapse; border-spacing: 0; padding: 0;"> <tr> <td align="center" valign="middle" style="padding: 12px 24px; margin: 0; text-decoration: underline; border-collapse: collapse; border-spacing: 0; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;" bgcolor="#0072C6"> <a target="_blank" style="text-decoration: underline; color: #FFFFFF; font-family: sans-serif; font-size: 17px; font-weight: 400; line-height: 120%;" href="<?php echo $this->messageLink; ?>"> <?php echo Text::_('COM_KUNENA_READMORE'); ?> </a> </td> </tr> <tr> <td></td> </tr> </table> </a> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" align="center" width="560" style="border-collapse: collapse; border-spacing: 0; padding: 0; width: inherit; max-width: 560px;" class="wrapper"> <tr> <td align="center" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; width: 87.5%; font-size: 13px; font-weight: 400; line-height: 150%; padding: 20px 6.25%;color: #999999;font-family: sans-serif;" class="footer"> <?php echo Text::_('COM_KUNENA_POST_EMAIL_NOTIFICATION3'); ?><br/> <?php echo $msg2; ?> </td> </tr> </table> </td> </tr> </table> </body> </html> <?php else : ?> <?php $this->mail->isHTML(false); if ($config->mailFull) { $full = Text::_('COM_KUNENA_MESSAGE') . ': '; $full .= "\n"; $full .= $this->message->displayField('message', false); } else { $full = ''; } $alt = <<<EOS {$msg1} {$config->boardTitle} {$this->text('COM_KUNENA_MESSAGE_SUBJECT')} : {$subject} {$this->text('COM_KUNENA_CATEGORY')} : {$this->message->getCategory()->name} {$this->text('COM_KUNENA_VIEW_POSTED')} : {$author->getName('???', false)} {$this->text('COM_KUNENA_EMAIL_MESSAGE_LINK_URL')} : {$this->messageLink} {$full} {$msg2}{$more} {$this->text('COM_KUNENA_POST_EMAIL_NOTIFICATION3')} EOS; echo $alt; endif; ?>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка