Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions program/include/rcmail_output_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ protected function init($framed = false)
$this->set_skin($this->config->get('skin'));
$this->set_assets_path($this->config->get('assets_path'));

if ($product_name = $this->config->get('product_name')) {
$this->meta_tags['application-name'] = $product_name;
}

if (!empty($_REQUEST['_extwin'])) {
$this->set_env('extwin', 1);
}
Expand Down Expand Up @@ -1561,6 +1565,30 @@ protected function xml_command($matches)
}
}
$content = html::quote($ver);
} elseif ($object == 'manifest_url') {
$manifest = [
'name' => $this->config->get('product_name', 'Roundcube Webmail'),
'short_name' => $this->config->get('product_name', 'Roundcube Webmail'),
'description' => 'Modern webmail for everyday use.',
'start_url' => './',
'scope' => './',
'display' => 'standalone',
'theme_color' => '#2f3a3f',
'background_color' => '#2f3a3f',
'icons' => [
[
'src' => $this->abs_url($this->config->get('assets_path') . 'skins/elastic/images/icon-192.png'),
'sizes' => '192x192',
'type' => 'image/png'
],
[
'src' => $this->abs_url($this->config->get('assets_path') . 'skins/elastic/images/icon-512.png'),
'sizes' => '512x512',
'type' => 'image/png'
]
]
];
$content = 'data:application/manifest+json;base64,' . base64_encode(json_encode($manifest));
} elseif ($object == 'steptitle') {
$content = html::quote($this->get_pagetitle(false));
} elseif ($object == 'pagetitle') {
Expand Down
Binary file added skins/elastic/images/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added skins/elastic/images/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion skins/elastic/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"meta": {
"viewport": "width=device-width, initial-scale=1.0, shrink-to-fit=no, maximum-scale=1.0",
"theme-color": "#f4f4f4",
"msapplication-navbutton-color": "#f4f4f4"
"msapplication-navbutton-color": "#f4f4f4",
"mobile-web-app-capable": "yes"
}
}
1 change: 1 addition & 0 deletions skins/elastic/templates/includes/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<head>
<roundcube:object name="meta" />
<roundcube:object name="links" />
<link rel="manifest" href="<roundcube:object name='manifest_url' />">
<link rel="stylesheet" href="/deps/bootstrap.min.css">
<roundcube:if condition="config:devel_mode" />
<link rel="stylesheet/less" href="/styles/styles.less">
Expand Down