Skip to content

Commit 7f17201

Browse files
committed
Clean up files
1 parent dd91568 commit 7f17201

3 files changed

Lines changed: 27 additions & 19 deletions

File tree

language/ru/webpushnotifications_module_acp.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@
5050
'WEBPUSH_METHOD_ENABLED_EXPLAIN'=> 'Если включено, то пользователи, подписавшиеся на браузерные push—уведомления, будут автоматически получать все их типы. Если отключено, то пользователи не будут получать браузерные push—уведомления до тех пор, пока хотя бы один их тип не выбран.<br><br>Отключить нежелательные или выбрать нужные типы браузерных push—уведомлений можно в настройках уведомлений в Личном разделе.',
5151
'WEBPUSH_DROPDOWN_SUBSCRIBE' => 'Показать кнопку «Подписаться» в выпадающем меню уведомлений',
5252
'WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN'=> 'Включить или отключить отображение кнопки «Подписаться» в выпадающем списке уведомлений. Если включено, то пользователи смогут подписываться на браузерные push-уведомления с любой страницы конференции.',
53+
'WEBPUSH_POPUP_PROMPT' => 'Show popup prompt for unsubscribed members',
54+
'WEBPUSH_POPUP_PROMPT_EXPLAIN' => 'Display a popup message asking registered members if they want to receive push notifications. The popup will only appear to members who are not currently subscribed and have not previously declined.',
5355
'WEBPUSH_INSECURE_SERVER_ERROR' => 'На данной конференции не применяется защищённый протокол SSL/HTTPS, без которого использование браузерных push—уведомлений невозможно, либо соответствующие переменные серверного окружения неверно сконфигурированы. Убедитесь, что значения переменных серверного окружения <em>HTTPS</em> и/или <em>HEADER_CLIENT_PROTO</em> заданы верно.',
5456
]);

language/ru/webpushnotifications_module_ucp.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@
4949
'NOTIFY_WEBPUSH_DROPDOWN_TITLE' => 'Посетите настройки уведомлений, чтобы установить предпочтительные типы браузерных уведомлений.',
5050
'NOTIFY_WEBPUSH_DENIED' => 'Вы запретили браузерные уведомления для даного сайта. Для того, чтобы подписаться, необходимо их разрешить в настройках браузера.',
5151
'NOTIFY_WEBPUSH_DISABLED' => 'Не поддерживается',
52+
'NOTIFY_WEBPUSH_POPUP_TITLE' => 'Enable Push Notifications?',
53+
'NOTIFY_WEBPUSH_POPUP_MESSAGE' => 'Stay updated with instant notifications for new replies, mentions, and more.',
54+
'NOTIFY_WEBPUSH_POPUP_ALLOW' => 'Allow',
55+
'NOTIFY_WEBPUSH_POPUP_DECLINE' => 'Decline',
5256
]);

styles/all/theme/phpbb_wpn.css

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,36 +53,37 @@
5353
}
5454

5555
.wpn-popup-overlay {
56+
background: rgba(0, 0, 0, 0.5);
5657
position: fixed;
58+
z-index: 9999;
5759
top: 0;
5860
left: 0;
59-
width: 100%;
60-
height: 100%;
61-
background: rgba(0, 0, 0, 0.5);
62-
z-index: 9999;
6361
display: flex;
64-
align-items: flex-start;
6562
justify-content: center;
63+
align-items: flex-start;
64+
width: 100%;
65+
height: 100%;
6666
padding-top: 20px;
6767
}
6868

6969
.wpn-popup-container {
70-
background: #fff;
70+
background: #ffffff;
7171
border-radius: 8px;
7272
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
73-
max-width: 500px;
7473
width: 90%;
74+
max-width: 500px;
7575
animation: wpnSlideDown 0.3s ease-out;
7676
}
7777

7878
@keyframes wpnSlideDown {
7979
from {
80-
transform: translateY(-50px);
8180
opacity: 0;
81+
transform: translateY(-50px);
8282
}
83+
8384
to {
84-
transform: translateY(0);
8585
opacity: 1;
86+
transform: translateY(0);
8687
}
8788
}
8889

@@ -91,38 +92,38 @@
9192
}
9293

9394
.wpn-popup-title {
94-
margin: 0 0 12px;
9595
font-size: 20px;
9696
font-weight: 600;
97-
color: #333;
97+
color: #333333;
98+
margin: 0 0 12px;
9899
}
99100

100101
.wpn-popup-message {
101-
margin: 0 0 20px;
102102
font-size: 14px;
103103
line-height: 1.5;
104-
color: #666;
104+
color: #666666;
105+
margin: 0 0 20px;
105106
}
106107

107108
.wpn-popup-buttons {
108109
display: flex;
109-
gap: 12px;
110110
justify-content: flex-end;
111+
gap: 12px;
111112
}
112113

113114
.wpn-popup-btn {
114-
padding: 10px 20px;
115-
border: none;
116-
border-radius: 4px;
117115
font-size: 14px;
118116
font-weight: 500;
117+
border: none;
118+
border-radius: 4px;
119+
padding: 10px 20px;
119120
cursor: pointer;
120121
transition: all 0.2s;
121122
}
122123

123124
.wpn-popup-btn-allow {
124125
background: #0066cc;
125-
color: #fff;
126+
color: #ffffff;
126127
}
127128

128129
.wpn-popup-btn-allow:hover {
@@ -131,7 +132,7 @@
131132

132133
.wpn-popup-btn-decline {
133134
background: #f0f0f0;
134-
color: #666;
135+
color: #666666;
135136
}
136137

137138
.wpn-popup-btn-decline:hover {
@@ -142,6 +143,7 @@
142143
.wpn-popup-buttons {
143144
flex-direction: column-reverse;
144145
}
146+
145147
.wpn-popup-btn {
146148
width: 100%;
147149
}

0 commit comments

Comments
 (0)