=== Old Post Message ===
Contributors: atsushicafek
Tags: old post, message, notification, outdated content, alert
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.0
Stable tag: 1.2.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically displays messages on posts older than a specified period. Customizable via admin settings.

== Description ==

Old Post Message automatically displays a customizable message at the beginning of posts that are older than a specified period since publication.

This is useful for technical blogs, system information, or any content that may become outdated over time, helping to inform readers that the information might not be current.

= Main Features =

* **Easy Setup**: All settings can be configured from the admin panel (no code editing required)
* **Flexible Period Settings**: Set the display period from 1 to 10 years
* **Message Customization**: Freely edit the message text
* **Design Customization**: Change background color, border color, and text color using color pickers
* **Icon Settings**: Customize the message icon with emojis or symbols
* **Real-time Preview**: Instantly see changes in the settings screen
* **ON/OFF Toggle**: Temporarily disable the feature without deactivating the plugin
* **Responsive Design**: Properly displayed on mobile devices
* **Performance Optimized**: Scripts and styles only load when needed

= Use Cases =

* Technical blog articles about older software versions
* Articles that may have system specification changes
* Content with time-sensitive information
* Articles about laws and regulations that may have changed

= How to Use =

1. Activate the plugin
2. Go to Settings → Old Post Message in WordPress admin
3. Configure the display period, message, and design
4. Click Save Settings

No code editing required!

= Supported Languages =

* English (default)
* Japanese (日本語)

== Installation ==

= Automatic Installation =

1. Go to Plugins → Add New in WordPress admin
2. Search for "Old Post Message"
3. Find this plugin and click Install Now
4. Click Activate

= After Installation =

Configure settings from Settings → Old Post Message.

== Frequently Asked Questions ==

= On which pages is the message displayed? =

The message is displayed only on individual post pages. It is not displayed on pages, archive pages, or the homepage.

= Can I change the display period? =

Yes, you can set it from 1 to 10 years in the settings screen.

= Can I change the message content? =

Yes, you can freely edit it in the settings screen text area. Use %1$d as a placeholder and it will be automatically replaced with the number of years.

= Can I change the design? =

Yes, you can change the background color, border color, and text color using color pickers in the settings screen.

= Can I hide the icon? =

Yes, leave the icon field blank in the settings screen to hide it.

= Can I temporarily disable the feature? =

Yes, uncheck the Enable Message checkbox in the settings screen to stop the feature without deactivating the plugin.

= Does it support custom post types? =

The current version only supports regular posts. Custom post type support may be added in future versions.

= Is it available in multiple languages? =

Currently supports English and Japanese.

= What happens to the data when I delete the plugin? =

When you delete the plugin, the settings data will also be automatically deleted from your database.

= Does this plugin slow down my site? =

No. The plugin is optimized to only load its CSS on single post pages and JavaScript only on the admin settings page. There is no performance impact on other pages.

== Changelog ==

= 1.2.4 =
* Fixed: Properly enqueued JavaScript and CSS using WordPress standards
* Improved: Admin scripts now only load on plugin settings page
* Improved: Frontend styles now only load on single post pages
* Improved: Better performance and compatibility with other plugins
* Changed: Code refactored to follow WordPress Coding Standards

= 1.2.3 =
* Fixed: Added translators comments for better translation support
* Fixed: Changed placeholder format to ordered placeholders (%1$d)
* Fixed: Removed deprecated load_plugin_textdomain function
* Changed: Plugin name changed to Old Post Message
* Changed: Text domain changed to old-post-message
* Improved: Code quality improvements for WordPress.org standards

= 1.2.2 =
* New: Added multilingual support (English and Japanese)
* New: All text strings are now translatable
* Improved: Plugin header information in English

= 1.2.1 =
* Fixed: Security improvements (added proper escaping)
* Fixed: All output now properly escaped for security

= 1.2.0 =
* New: Added settings page in admin panel
* New: Design customization with color pickers
* New: Real-time preview feature
* New: Display period setting (1-10 years)
* New: Message and icon editing capabilities
* New: ON/OFF toggle feature
* Improved: Overall user experience improvements

= 1.0.0 =
* Initial release
* Post date-based message display feature

== Upgrade Notice ==

= 1.2.5 =
Admin JS enqueued (handle + wp_add_inline_script). Inline CSS now escaped; colors sanitized. Added safe defaults in frontend enqueue; use YEAR_IN_SECONDS. Versioned style handle. i18n updated to %1$d.

= 1.2.4 =
Important update for WordPress.org compliance. Properly enqueued all scripts and styles. Recommended for all users.

= 1.2.3 =
Plugin name changed to Old Post Message for WordPress.org compliance. All features remain the same and work as before.

= 1.2.0 =
Settings page added! You can now customize messages and design from the admin panel without editing code.

= 1.0.0 =
Initial release.

== Privacy Policy ==

This plugin does not collect, store, or transmit any personal information or user data. All settings are stored locally in your WordPress database and remain on your server.

The plugin does not:
* Track users
* Send data to external servers
* Use cookies
* Store IP addresses
* Collect analytics