Просмотр исходного кода

Ticket #4443 - High Priority: Modify notifications letters content.

AntonLV 2 лет назад
Родитель
Сommit
007ed4052a
2 измененных файлов с 6 добавлено и 6 удалено
  1. 2 2
      install/sql/system.sql
  2. 4 4
      modules/boonex/notifications/template/et_new_event.html

+ 2 - 2
install/sql/system.sql

@@ -386,8 +386,8 @@ INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `hidden`, `or
 SET @iCategoryId = LAST_INSERT_ID();
 
 INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
-(@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n    <head></head>\r\n    <body bgcolor="#eee" style="margin:0; padding:0;">\r\n        <div style="padding:20px; background-color:#eee;">\r\n            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">\r\n                <tr><td valign="top">\r\n                    <div style="color:#333; padding:20px; border:1px solid #ccc; border-radius:3px; background-color:#fff; font:14px Helvetica, Arial, sans-serif;">\r\n                        <div style="border-bottom:2px solid #eee; padding-bottom:10px; margin-bottom:20px; font-weight:bold; font-size:22px; color:#999;">{site_name}</div>', 'text', '', '', '', 1),
-(@iCategoryId, 'site_email_html_template_footer', '_adm_stg_cpt_option_site_email_html_template_footer', '\r\n                    </div>\r\n                </td></tr>\r\n                <tr><td valign="top">\r\n                    <div style="margin-top:5px; text-align:center; color:#999; font:11px Helvetica, Arial, sans-serif;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n                </td></tr>\r\n            </table>\r\n        </div>\r\n    </body>\r\n</html>', 'text', '', '', '', 2),
+(@iCategoryId, 'site_email_html_template_header', '_adm_stg_cpt_option_site_email_html_template_header', '<html>\r\n    <head></head>\r\n    <body bgcolor="#fff" style="margin:0; padding:0;">\r\n        <div style="background-color:#fff;">\r\n            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">\r\n                <tr><td valign="top">\r\n                    <div style="color:#333; padding:20px; font:14px Helvetica, Arial, sans-serif;">\r\n                        <div style="border-bottom:2px solid #eee; padding-bottom:10px; margin-bottom:20px; font-weight:bold; font-size:22px; color:#999;">{site_name}</div>', 'text', '', '', '', 1),
+(@iCategoryId, 'site_email_html_template_footer', '_adm_stg_cpt_option_site_email_html_template_footer', '\r\n                    </div>\r\n                </td></tr>\r\n                <tr><td valign="top">\r\n                    <div style="color:#999; padding:0 20px 20px 20px; font:11px Helvetica, Arial, sans-serif;">\r\n                        <div style="border-top:2px solid #eee; padding-top:10px;">{about_us}&nbsp;&nbsp;&nbsp;{unsubscribe}</div>\r\n                    </div>\r\n                </td></tr>\r\n            </table>\r\n        </div>\r\n    </body>\r\n</html>', 'text', '', '', '', 2),
 
 (@iCategoryId, 'sys_site_icon', '', '0', 'digit', '', '', '', 15),
 (@iCategoryId, 'sys_site_icon_svg', '', '0', 'digit', '', '', '', 16),

+ 4 - 4
modules/boonex/notifications/template/et_new_event.html

@@ -1,9 +1,9 @@
-<div style="display: inline-block;">
+<div>
     <a href="__content_url__">
-        <div style="margin: 5px; white-space: nowrap;">
-            <div style="display: inline-block; vertical-align: middle; width: 48px; height: 48px; background-clip: padding-box; border-radius: 80px; line-height: 48px;text-align: center; overflow: hidden;">
+        <div>
+            <div style="height: 48px; background-clip: padding-box; line-height: 48px;text-align: left; overflow: hidden;">
                 <img style="width: 48px; height: 48px; line-height: 48px; border-radius: 80px;" src="__icon_url__" />
-            </div><div style="display: inline-block; vertical-align: middle; min-height: 48px; margin-left: 10px;">
+            </div><div style="min-height: 48px; margin-top: 10px;">
                 <div style="padding: 5px 0px; white-space: normal; text-overflow: ellipsis; overflow: hidden;">
                     <p style="margin: 0px;">__content__</p>
                     <p style="margin: 5px 0px 0px 0px;">__date__</p>