=== Easy Custom Admin Notification ===
Contributors: vitruzstudio
Tags: notification, dashboard, alert, users, roles
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.1.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display custom admin notifications on the WordPress dashboard with flexible styling and user role targeting.

== Description ==

Easy Custom Admin Notification allows WordPress administrators to create and manage custom notifications displayed on the dashboard. With a user-friendly interface, you can configure notifications with rich text, gradient backgrounds, and targeted user roles. Perfect for announcements, reminders, or alerts.

**Features:**
- Create multiple notifications with individual settings.
- Notifications can be enabled/disabled
- Rich text editor (TinyMCE) for formatting notification messages.
- Customizable gradient backgrounds for each notification.
- Choose which user roles see each notification.
- Flexible dismiss behavior: persistent, session-based, or always visible.
- Modern, responsive UI with accordion-style settings panel.

Ideal for site administrators who need to communicate important information to specific users in a visually appealing way.

== Installation ==

1. Upload the `easy-custom-admin-notification` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Settings > Admin Notification** to configure your notifications.
4. Add new notifications, customize their content, colors, and settings, and save changes.
5. Notifications will appear on the WordPress dashboard for the selected user roles.

== Frequently Asked Questions ==

= Can I target notifications to specific user roles? =
Yes, you can select which user roles see each notification. Leave the role selection empty to show the notification to all users.

= How do I customize the notification appearance? =
Each notification supports two gradient colors for the background, configurable via a color picker in the settings panel.

= Can users dismiss notifications? =
Yes, you can choose from three dismiss behaviors: persistent (dismissed forever), default (reappears on new sessions), or always visible (cannot be dismissed).

= Does the plugin support rich text? =
Yes, notifications use the WordPress TinyMCE editor, allowing bold, italic, lists, links, and more. "Add Media" media doesn't allowed.

= Is the plugin translatable? =
Yes, the plugin is fully translatable with a provided POT file. All strings are wrapped in translation functions.

== Screenshots ==

1. Settings panel with accordion-style notification management.
2. Example notification with gradient background on the dashboard.

== Changelog ==

= 1.1.0 =
* Added gradient background support for notifications.
* Introduced user role targeting for notifications.
* Enhanced settings UI with accordion layout and modern styling.
* Improved TinyMCE integration with custom toolbar.
* Added dismiss behavior options: persistent, default, always visible.
* Optimized performance and security with proper sanitization.

= 1.0.0 =
* Initial release with basic notification functionality.

== Upgrade Notice ==

= 1.1.0 =
This update adds gradient backgrounds, user role targeting, and a modernized UI. Back up your settings before upgrading, as new options may reset existing notifications.