This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
/**
Hide feature set password default in WP
*/
.editor-post-visibility__dialog-fieldset .editor-post-visibility__choice:nth-child(4), #the-list .inline-edit-col-left .inline-edit-group.wp-clearfix .alignleft:not(.inline-edit-private), #visibility-radio-password, label[for=visibility-radio-password], #post-visibility-select br:nth-child(8), #post-visibility-select br:nth-child(10) {
display: none;
}

View File

@@ -0,0 +1,67 @@
/* PPWP Sidebar Css */
.ppwp_setting_page {
display: flex;
}
.ppwp_setting_page .ppwp_wrap_subscribe_form {
margin-left: 3%;
width: 27%;
}
.ppwp_wrap_al img {
width: 100%;
border-radius: 0 0 10px 10px;
}
.ppwp_wrap_al h3 {
margin-bottom: 0.5rem;
font-size: 1.2em;
}
.ppwp_wrap_subscribe_form .ppwp_subscribe_hidden {
display: none;
}
.ppwp_subscribe_form {
background-color: white;
padding: 0 20px 20px 20px;
margin-bottom: 20px;
border: 1px solid #CCC;
border-radius: 0 0 10px 10px;
}
.ppwp_subscribe_form .input_email {
width: 100%;
}
.ppwp_subscribe_form .ppwp_subscribe_error {
color: red;
margin-top: 3px;
display: none;
}
/* Dynamic Sideabr*/
#ppwp_right_column_metaboxes .main_container {
background-color: white;
padding: 20px 20px 20px 20px;
margin-bottom: 20px;
border: 1px solid #CCC;
border-radius: 0 0 10px 10px;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#d9dee0',GradientType=0 );
}
#ppwp_right_column_metaboxes img {
max-width: 100%;
height: auto;
}
#ppwp_right_column_metaboxes ul {
list-style: inherit;
margin-left: 15px;
}
#ppwp_right_column_metaboxes ul > li > ul {
list-style: inside;
list-style-type: circle;
}

View File

@@ -0,0 +1,24 @@
/* PPWP Row Action */
.ppw-badge-protection {
padding: 0.1rem 0.4rem;
color: white;
display: inline-block;
border-radius: 4px;
}
.ppw-badge-protection i.dashicons {
font-size: 14px;
margin-left: -2px;
line-height: 18px;
width: auto;
height: auto;
}
.ppw_unprotected_color {
background-color: #D6D6D6;
}
.ppw_protected_color {
background-color: #ff8935;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -0,0 +1 @@
<?php // Silence is golden

View File

@@ -0,0 +1,13 @@
/* Deactivate PPWP Js*/
(function ($) {
'use strict';
$(function () {
$('a[aria-label="Deactivate Password Protect WordPress Lite"]').click(function () {
var message = 'Please restore all your previously created passwords before deactivating the plugin to avoid all protected pages and posts becoming public.\nAre you sure you want to deactivate our PPWP Lite version now?';
if (!confirm(message)) {
return false;
}
});
});
})(jQuery);

View File

@@ -0,0 +1,94 @@
/* PPWP Customizer Js */
(function ($, api) {
var customizePrefix = '_customize-input-';
var themePrefix = 'ppw_customize_presets_settings';
var defaultShowLogo = null;
var defaultData = {
'default1': {
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
},
'default2': {
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
},
'default3': {
'#customize-control-ppwp_pro_form_instructions_background_color_control input.wp-color-picker' : ''
},
};
// Editor control.
$(document).ready(function($) {
$('textarea.wp-editor-area').each(function () {
const $this = $(this),
id = $this.attr('id'),
$input = $('input[data-customize-setting-link="' + id + '"]');
$this.css('visibility', 'visible').on('keyup', function () {
$input.val($this.val()).trigger('change');
});
if (tinyMCE.get(id)) {
const editor = tinyMCE.get(id);
editor.on('change', function (e) {
editor.save();
$input.val(editor.getContent()).trigger('change');
});
} else {
tinyMCE.init({
menubar: false,
selector: '#' + id,
setup: function (editor) {
const $wraps = $this.closest('.wp-core-ui.wp-editor-wrap');
if ($wraps.length > 0) {
const $wrap = $wraps[0];
$($wrap).addClass('tmce-active').removeClass('html-active');
}
editor.on('change', function (e) {
editor.save();
$input.val(editor.getContent()).trigger('change');
});
}
});
}
});
$('.customize-control-ppw-presets input[type="radio"]').on('change', function () {
var theme = $(this).val();
Object.keys(defaultData).forEach(function(theme) {
if ( $('#' + themePrefix + theme).is(':checked') ) {
var themeData = defaultData[theme];
Object.keys(themeData).forEach(function(themeKey){
changeInput(themeKey, themeData[themeKey], 'change');
});
}
});
var checkbox_values = $(this)
.parents('.customize-control')
.find('input[type="radio"]:checked')
.val();
$(this)
.parents('.customize-control')
.find('input[type="hidden"]')
.val(checkbox_values)
.delay(500)
.trigger('change');
$logo = $('#toggle-ppwp_pro_logo_disable_control');
if (defaultShowLogo !== null) {
defaultShowLogo = $logo.is(':checked');
}
if ( 'default0' !== theme && $logo.length > 0) {
$logo.prop('checked', true).trigger('input');
} else {
$logo.prop('checked', defaultShowLogo).trigger('input');
}
});
function changeInput( key, value, type = 'input' ) {
$(key).val(value).delay(500).trigger(type);
}
});
})(jQuery, wp.customize);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}([function(t,e){window.ppwpRowAction=function(t){return{handleOnClickRowAction:function(e){const o=t(`#ppw-protect-post_${e}`);if(!o)return;const{plugin_name:n}=ppw_row_action_data,r=o.attr("data-ppw-status");if(void 0===r)return;const s=o.text();if("Unprotect"===s&&"0"===r&&!confirm("All passwords will be removed if you unprotect this page. Do you want to proceed?"))return!1;o.css("pointer-events","none"),o.attr("title"),o.text(s+"ing..."),function(e,o,n){!function(e,o){const{ajax_url:n,nonce:r}=ppw_row_action_data;t.ajax({url:n,type:"POST",data:e,timeout:5e3,headers:{"X-WP-Nonce":r},success:function(t){o(t,null)},error:function(t){o(null,t)}})}({postId:e,status:r,action:"ppw_update_post_status",nonce:ppw_row_action_data.nonce},n)}(e,0,function(r,a){if(o.css("pointer-events","auto"),a)return o.text(s),void(400===a.status?toastr.error(a.responseJSON.message,n):toastr.error("Oops! Something went wrong. Please reload the page and try again.",n));const{server_status:c,message:u}=r;!function(e,o,n){const r=`#ppw-badge-protection_${n}`;e.attr("data-ppw-status",o);const s={status:1,label:"Protect"},a={status:0,label:"Unprotect"};s.status===o?(e.text(s.label),function(e,o,n){t(o).removeClass("ppw_protected_color"),t(o).addClass("ppw_unprotected_color"),t(o).html('<i class="dashicons dashicons-unlock"></i> unprotected')}(0,r)):(e.text(a.label),function(e,o,n){t(o).removeClass("ppw_unprotected_color"),t(o).addClass("ppw_protected_color"),t(o).html('<i class="dashicons dashicons-lock"></i> protected')}(0,r))}(o,c,e),toastr.success(u,n)})}}}(jQuery)}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long