Chrome
Safari
Edge
Firefox
Chrome (Android)
Tap the lock icon next to the address bar. Tap Permissions → Notifications . Adjust your preference.
Chrome (Desktop)
Click the padlock icon in the address bar. Select Site settings . Find Notifications and adjust your preference.
Safari (iOS 16.4+)
Ensure the site is installed via Add to Home Screen . Open Settings App → Notifications . Find your app name and adjust your preference.
Safari (macOS)
Go to Safari → Preferences . Click the Websites tab. Select Notifications in the sidebar. Find this website and adjust your preference.
Edge (Android)
Tap the lock icon next to the address bar. Tap Permissions .
Find Notifications and adjust your preference.
Edge (Desktop)
Click the padlock icon in the address bar. Click Permissions for this site . Find Notifications and adjust your preference.
Firefox (Android)
Go to Settings → Site permissions . Tap Notifications . Find this site in the list and adjust your preference.
Firefox (Desktop)
Open Firefox Settings. Search for Notifications . Find this site in the list and adjust your preference.
Нужно написать логическое выражение, чтобы код показывался только на страницах типа /index.php?showforum=XX
Пробовал делать вставку < php > if (isset($_GET['showforum'])) { </ php > безуспешно.
А для использования стандартного <if test="" нужно знать условие, с которым сравнивать.
Пробежался по шаблону, не нашел похожих условий в коде.
Может, кто подскажет, как это реализовать?
UPD: Разобрался. Достаточно было редактировать forumIndexTemplate вместо globalTemplate. :)
Edited by Smif