Remove lazy loading and minification features

- Remove CSS minifier and speed functions\n- Remove lazy loading functionality\n- Update plugin description and README\n- Simplify plugin to focus on auto upload feature\n- Rename files from wpa-superstar to wp-allstars
This commit is contained in:
Marcus Quinn
2025-03-15 03:40:16 +00:00
parent 11ee44d2b7
commit fcca81d756
10 changed files with 399 additions and 944 deletions

View File

@ -1,21 +1,21 @@
jQuery(document).ready(function($) {
$('.wpa-superstar-toggle input').on('change', function() {
$('.wp-allstars-toggle input').on('change', function() {
var $input = $(this);
var option = $input.attr('name');
var value = $input.is(':checked') ? 1 : 0;
// Remove any existing status messages
$('.wpa-status').remove();
$('.wp-status').remove();
// Add a small notification that fades out
var $notification = $('<span class="wpa-status" style="position: fixed; top: 32px; left: 50%; transform: translateX(-50%); z-index: 99999; background: #00a32a; color: white; padding: 8px 16px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">Setting saved</span>');
var $notification = $('<span class="wp-status" style="position: fixed; top: 32px; left: 50%; transform: translateX(-50%); z-index: 99999; background: #00a32a; color: white; padding: 8px 16px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">Setting saved</span>');
$('body').append($notification);
$.post(wpaSuperstar.ajaxurl, {
action: 'wpa_superstar_update_option',
$.post(wpAllstars.ajaxurl, {
action: 'wp_allstars_update_option',
option: option,
value: value,
nonce: wpaSuperstar.nonce
nonce: wpAllstars.nonce
}, function(response) {
if (!response.success) {
console.error('Error:', response);