Skip to content

Commit adad5af

Browse files
committed
Add touch icon
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 46ab3b6 commit adad5af

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

notification/method/webpush.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ public function get_ucp_template_data(helper $controller_helper, form_helper $fo
387387
'SUBSCRIPTIONS' => $subscriptions,
388388
'WEBPUSH_FORM_TOKENS' => $form_helper->get_form_tokens(\phpbb\webpushnotifications\ucp\controller\webpush::FORM_TOKEN_UCP),
389389
'U_MANIFEST_URL' => $controller_helper->route('phpbb_webpushnotifications_manifest_controller'),
390+
'U_TOUCH_ICON' => $this->config['wpn_app_icon_small'] ?? '',
390391
];
391392
}
392393

styles/all/template/ucp_notifications_webpush.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<meta name="apple-mobile-web-app-capable" content="yes">
22
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
33
<meta name="apple-mobile-web-app-title" content="{{ SITENAME }}">
4+
{% if U_TOUCH_ICON %}<link rel="apple-touch-icon" href="{{ ROOT_PATH }}images/icons/{{ U_TOUCH_ICON }}">{% endif %}
45
<link rel="manifest" href="{{ U_MANIFEST_URL }}">
56

67
<script>

tests/event/listener_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public function test_get_ucp_template_data($user_id, $method_data, $subscription
219219
'SUBSCRIPTIONS' => $subscriptions,
220220
'WEBPUSH_FORM_TOKENS' => $this->form_helper->get_form_tokens(\phpbb\webpushnotifications\ucp\controller\webpush::FORM_TOKEN_UCP),
221221
'U_MANIFEST_URL' => $this->controller_helper->route('phpbb_webpushnotifications_manifest_controller'),
222+
'U_TOUCH_ICON' => '',
222223
]
223224
);
224225

0 commit comments

Comments
 (0)