You've already forked baupm-core
added switch to control the webapp function
This commit is contained in:
@@ -2,20 +2,22 @@
|
||||
<%= javascript_include_tag "baupm.js", :plugin => 'baupm_core' %>
|
||||
<%= stylesheet_link_tag 'jquery-fab.css', :plugin => 'baupm_core', :media => "screen" %>
|
||||
<%= stylesheet_link_tag 'baupm.css', :plugin => 'baupm_core', :media => "screen" %>
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/apple-touch-icon.png" rel="apple-touch-icon" type="image/png" sizes="180x180">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/favicon-32x32.png" sizes="32x32" rel="shortcut icon">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/favicon-16x16.png" rel="icon" type="image/png" sizes="16x16">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/safari-pinned-tab.svg" rel="mask-icon" size="any" color="<%= Setting.plugin_baupm_core['baupm_theme_color'] %>">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-192x192.png" rel="icon" sizes="192x192">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-256x256.png" rel="icon" sizes="256x256">
|
||||
<link href="/manifest.json" rel="manifest">
|
||||
<% if Setting.plugin_baupm_core['baupm_theme_color'].present? %>
|
||||
<meta name="theme-color" content="<%= Setting.plugin_baupm_core['baupm_theme_color'] %>">
|
||||
<% if Setting.plugin_baupm_core['baupm_enable_webapp'] == 1 %>
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/apple-touch-icon.png" rel="apple-touch-icon" type="image/png" sizes="180x180">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/favicon-16x16.png" rel="icon" type="image/png" sizes="16x16">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/safari-pinned-tab.svg" rel="mask-icon" size="any" color="<%= Setting.plugin_baupm_core['baupm_theme_color'] %>">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-192x192.png" rel="icon" sizes="192x192">
|
||||
<link href="/themes/<%= Setting.ui_theme %>/images/icons/android-chrome-256x256.png" rel="icon" sizes="256x256">
|
||||
<link href="/manifest.json" rel="manifest">
|
||||
<% if Setting.plugin_baupm_core['baupm_theme_color'].present? %>
|
||||
<meta name="theme-color" content="<%= Setting.plugin_baupm_core['baupm_theme_color'] %>">
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_manifest_orientation'].present? %>
|
||||
<meta name="screen-orientation" content="<%= Setting.plugin_baupm_core['baupm_manifest_orientation'] %>">
|
||||
<% end %>
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<% end %>
|
||||
<% if Setting.plugin_baupm_core['baupm_manifest_orientation'].present? %>
|
||||
<meta name="screen-orientation" content="<%= Setting.plugin_baupm_core['baupm_manifest_orientation'] %>">
|
||||
<% end %>
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<% if Setting.plugin_baupm_core['baupm_enable_webapp'] == 1 %>
|
||||
{
|
||||
"name": "<%= Setting.plugin_baupm_core['baupm_application_title'] %>",
|
||||
<% if Setting.plugin_baupm_core['baupm_application_short_title'].present? %>
|
||||
@@ -39,3 +40,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
<% end %>
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
<legend><%= l(:baupm_manifest_settings) %></legend>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><%= l(:baupm_enable_webapp) %></th>
|
||||
<td>
|
||||
<input type="checkbox" id="baupm_enable_webapp"
|
||||
value="<%= settings['baupm_enable_webapp'] %>"
|
||||
name="settings[baupm_enable_webapp]">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%= l(:baupm_application_title) %></th>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user