mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1504 Adjustments for plugin manager
This commit is contained in:
@@ -44,11 +44,6 @@ $action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.$pwg_token;
|
||||
|
||||
$plugins = new plugins();
|
||||
|
||||
if (!is_webmaster())
|
||||
{
|
||||
$page['errors'][] = l10n('Webmaster status is required.');
|
||||
}
|
||||
|
||||
//--------------------------------------------------------Incompatible Plugins
|
||||
if (isset($_GET['incompatible_plugins']))
|
||||
{
|
||||
|
||||
@@ -306,6 +306,13 @@ $(document).ready(function () {
|
||||
|
||||
/* Plugin Filters */
|
||||
|
||||
// Set filter on Active on load
|
||||
$(".pluginMiniBox").each(function () {
|
||||
if (!$(this).hasClass("plugin-active")) {
|
||||
$(this).hide();
|
||||
}
|
||||
})
|
||||
|
||||
$("#seeAll").on("change", function () {
|
||||
console.log("All");
|
||||
$(".pluginMiniBox").show();
|
||||
@@ -377,10 +384,17 @@ $(document).ready(function () {
|
||||
$(this).addClass("disabled");
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
var id = $(this).parent().parent().parent().attr("id");
|
||||
$("#" + id + " .pluginNotif").stop(false, true);
|
||||
$("#" + id + " .PluginActionError label span:first").html(not_webmaster);
|
||||
$("#" + id + " .PluginActionError").css("display", "flex");
|
||||
$("#" + id + " .PluginActionError").delay(1500).fadeOut(2500);
|
||||
|
||||
setTimeout(function(){
|
||||
$(".switch input").removeClass("disabled");
|
||||
}, 400); //Same duration as the animation "desactivate_disabled" in css
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ const plugin_added_str = '{'Activated'|@translate}';
|
||||
const plugin_deactivated_str = '{'Deactivated'|@translate}';
|
||||
const plugin_restored_str = '{'Restored'|@translate}';
|
||||
const plugin_action_error = '{'an error happened'|@translate}';
|
||||
const not_webmaster = '{'Webmaster status required'|@translate}';
|
||||
const isWebmaster = {$isWebmaster};
|
||||
{literal}
|
||||
var queuedManager = jQuery.manageAjax.create('queued', {
|
||||
@@ -222,7 +223,7 @@ jQuery(".pluginMiniBox").each(function(index){
|
||||
{counter start=0 assign=i} {* <!-- counter for 'deactivate all' link --> *}
|
||||
|
||||
<div class="pluginTypeFilter">
|
||||
<input type="radio" name="p-filter" class="filter" id="seeAll" checked><label for="seeAll">{'All'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeActive"><label class="filterLabel" for="seeActive">{'Activated'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeInactive"><label class="filterLabel" for="seeInactive">{'Deactivated'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeOther"><label class="filterLabel" for="seeOther">{'Other'|@translate}<span class="filter-badge">X</span></label>
|
||||
<input type="radio" name="p-filter" class="filter" id="seeAll"><label for="seeAll">{'All'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeActive" checked><label class="filterLabel" for="seeActive">{'Activated'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeInactive"><label class="filterLabel" for="seeInactive">{'Deactivated'|@translate}<span class="filter-badge">X</span></label><input type="radio" name="p-filter" class="filter" id="seeOther"><label class="filterLabel" for="seeOther">{'Other'|@translate}<span class="filter-badge">X</span></label>
|
||||
</div>
|
||||
|
||||
<div class="pluginFilter">
|
||||
@@ -583,6 +584,8 @@ jQuery(".pluginMiniBox").each(function(index){
|
||||
.pluginContainer.line {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.pluginContainer.line .pluginMiniBox {
|
||||
|
||||
@@ -2153,7 +2153,7 @@ h2:lang(en) { text-transform:capitalize; }
|
||||
|
||||
.pluginContainer.line .pluginMiniBox:hover .pluginContent{
|
||||
transition: 0.4s;
|
||||
background: #ffe5cc;
|
||||
background: #ffd7ad;
|
||||
}
|
||||
|
||||
.pluginContainer.line .pluginMiniBox:hover.plugin-inactive .slider {
|
||||
@@ -3807,7 +3807,7 @@ input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;}
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.plugin-active input:checked + .slider:before {
|
||||
input:checked + .slider:before {
|
||||
-webkit-transform: translateX(33px);
|
||||
-ms-transform: translateX(33px);
|
||||
transform: translateX(33px);
|
||||
|
||||
@@ -1245,3 +1245,4 @@ $lang['action succesfully performed.'] = 'action succesfully performed.';
|
||||
$lang['%s lines'] = "%s lines";
|
||||
$lang['%s line'] = "%s line";
|
||||
$lang['Locked albums are disabled for maintenance. Only administrators can view them in the gallery. Lock this album will also lock his Sub-albums'] = 'Locked albums are disabled for maintenance. Only administrators can view them in the gallery. Lock this album will also lock his Sub-albums';
|
||||
$lang['Webmaster status required'] = 'Webmaster status required';
|
||||
|
||||
@@ -1252,4 +1252,4 @@ $lang['action succesfully performed.'] = 'action effectuée avec succès.';
|
||||
$lang['%s lines'] = "%s lignes";
|
||||
$lang['%s line'] = "%s ligne";
|
||||
$lang['Locked albums are disabled for maintenance. Only administrators can view them in the gallery. Lock this album will also lock his Sub-albums'] = 'Les albums vérrouillés sont désactivé pour maintenance. Seul les administrateurs peuvent les voir dans la gallerie. Vérrouiller cet album vérouillera aussi ses sous-albums';
|
||||
|
||||
$lang['Webmaster status required'] = 'Status Webmaster obligatoire';
|
||||
|
||||
Reference in New Issue
Block a user