You've already forked baupm-core
Initial commit
This commit is contained in:
41
app/views/manifest/index.json.erb
Executable file
41
app/views/manifest/index.json.erb
Executable file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "<%= Setting.plugin_baupm_core['baupm_application_title'] %>",
|
||||
<% if Setting.plugin_baupm_core['baupm_application_short_title'].present? %>
|
||||
"short_name": "<%= Setting.plugin_baupm_core['baupm_application_short_title'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_application_description'].present? %>
|
||||
"description": "<%= Setting.plugin_baupm_core['baupm_application_description'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_manifest_display'].present? %>
|
||||
"display": "<%= Setting.plugin_baupm_core['baupm_manifest_display'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_manifest_orientation'].present? %>
|
||||
"orientation": "<%= Setting.plugin_baupm_core['baupm_manifest_orientation'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_manifest_start_url'].present? %>
|
||||
"start_url": "<%= Setting.plugin_baupm_core['baupm_manifest_start_url'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_theme_color'].present? %>
|
||||
"theme_color": "<%= Setting.plugin_baupm_core['baupm_theme_color'] %>",
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_background_color'].present? %>
|
||||
"background_color": "<%= Setting.plugin_baupm_core['baupm_background_color'] %>",
|
||||
<% end %>
|
||||
"icons": [
|
||||
{
|
||||
"src": "/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/themes/<%= Setting.ui_theme %>/images/icons/apple-touch-icon.png",
|
||||
"sizes": "180x180",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user