mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 13:09:43 +01:00
fixes
This commit is contained in:
@@ -131,12 +131,12 @@
|
||||
<!-- end new plugin modal -->
|
||||
|
||||
<!-- ...... -->
|
||||
<!-- store -->
|
||||
<!-- store/check -->
|
||||
<!-- ..... -->
|
||||
<ELSEIF NAME="case == store" OR="case == check">
|
||||
|
||||
<IF NAME="no_store_plugins">
|
||||
<div class="alert alert-info my-1">
|
||||
<div class="alert alert-info my-3">
|
||||
<IF NAME="case == check">{lang.ALL_PLUGINS_UPDATED}<ELSE>{lang.NO_PLUGINS}</IF>
|
||||
</div>
|
||||
</IF>
|
||||
@@ -146,11 +146,14 @@
|
||||
<li class="media d-flex justify-content-between list-group-item">
|
||||
<img class="mr-3 rounded-circle" src="{{icon}}" alt="{{title}}" style="width: 75px">
|
||||
<div class="media-body">
|
||||
<h5 class="mt-0 mb-1 pull-(lang.DIR==ltr?left:right)">{{title}}</h5>
|
||||
<h5 class="mt-0 mb-2">{{title}}</h5>
|
||||
<!-- Button trigger modal -->
|
||||
<div class="justify-content-between">
|
||||
<span>{{version}} <IF NAME="case == check"> → {{current_version}}</IF></span>
|
||||
<button type="button" class="btn btn-primary pull-(lang.DIR==ltr?right:left)" data-toggle="modal" data-target="#Modal_{{name}}">
|
||||
<IF NAME="case == check">{lang.UPDATE}<ELSE>{lang.VIEW}</IF>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="Modal_{{name}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
|
||||
@@ -180,8 +180,8 @@ switch ($case):
|
||||
// is there a new version of this in the store
|
||||
elseif ($case == 'check' && (! empty($installed_plugins[$plugin_info['name']]) &&
|
||||
version_compare(
|
||||
strtolower($installed_plugins[$row['plg_name']]['extra_info']['plugin_version']),
|
||||
$plugin_info['file']['version'],
|
||||
strtolower($installed_plugins[$plugin_info['name']]['extra_info']['plugin_version']),
|
||||
strtolower($plugin_info['file']['version']),
|
||||
'>=') || empty($installed_plugins[$plugin_info['name']]))
|
||||
) {
|
||||
continue;
|
||||
@@ -193,6 +193,7 @@ switch ($case):
|
||||
'version' => $plugin_info['file']['version'],
|
||||
'title' => ! empty($plugin_info['title'][$config['language']]) ? $plugin_info['title'][$config['language']] : $plugin_info['title']['en'],
|
||||
'website' => $plugin_info['website'],
|
||||
'current_version' => ! empty($installed_plugins[$plugin_info['name']]) ? strtolower($installed_plugins[$plugin_info['name']]['extra_info']['plugin_version']) : '',
|
||||
'kj_min_version' => $plugin_info['kleeja_version']['min'],
|
||||
'kj_max_version' => $plugin_info['kleeja_version']['max'],
|
||||
'kj_version_cmtp' => sprintf($lang[ 'KLJ_VER_NO_PLUGIN'], $plugin_info['kleeja_version']['min'], $plugin_info['kleeja_version']['max']),
|
||||
|
||||
Reference in New Issue
Block a user