=== Picture Tag ===
Contributors:      artilab
Tags:              responsive images, picture tag
Requires at least: 5.0
Tested up to:      6.9
Requires PHP:      7.4
Stable tag:        1.5.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Generate responsive <picture> tags with support for WebP and AVIF formats in WordPress.

== Description ==

The **Picture Tag** plugin allows you to easily integrate responsive `<picture>` tags into your WordPress site. This plugin adds support for generating modern image formats like **WebP** and **AVIF**, improving performance and SEO.

Features:
- A function for displaying images using the picture tag. 
- Support for WebP and AVIF formats.
- Flexible settings for custom paths and image attributes.
- A shortcode `[arti_picture]` for inserting responsive <picture> tags with customizable attributes.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/picture-tag` directory or install it directly from the WordPress Plugin Repository.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure the settings under "Settings > Picture Tag".

== Frequently Asked Questions ==

= Does this plugin require specific hosting features? =
No, the plugin works on any WordPress site. However, to use WebP and AVIF formats, ensure your server supports these formats.

= Can I customize the generated `<picture>` tag? =
Yes, the plugin provides options to configure custom paths and add attributes to images.

= How do I add a screenshot to the media library? =
To add a screenshot or image for use with the plugin:
1. Go to **Media > Add New** in your WordPress admin dashboard.
2. Upload the desired image (e.g., a screenshot).
3. Once uploaded, note the **attachment ID** of the image. You can find this in the image URL or by editing the image.
4. Use the attachment ID with the shortcode to display the image in `<picture>` format.

**Example Shortcode:**
```
[arti_picture id="123" size_1x="medium" size_2x="large" alt="Example screenshot" class="screenshot-image"]
```

== Changelog ==

 1.4.2 =
* Fix warnings

 1.4.1 =
* Fix fatal error

= 1.4 =
* Added improved caching system for better performance
* Implemented proper cache clearing when media is updated
* Added cache management tools in the admin interface
* Enhanced security with proper nonce verification
* Tested and confirmed compatibility with WordPress 6.8

= 1.3.1 =
* Improved performance by focusing only on local file operations
* Improved code readability with clearer documentation
* Fixed potential timeout issues when checking image formats

= 1.3.0 =
* Added support for custom data-* attributes in ```[arti_picture]``` shortcode.
* Added support for custom data-* attributes in the ```arti_the_image``` function.

= 1.2.0 =
* Added translation support for multilingual use.
* Improved text domain loading for better localization.
* Fixed minor bugs and enhanced compatibility with the latest WordPress versions.

= 1.1.1 =
* Update documentation.

= 1.1.0 =
* Refactoring of the plugin structure to improve the ease of maintenance.
* Added ```[arti_picture]``` shortcode to display responsive `<picture>` tags.
* Added documentation on the use of shortcodes.

= 1.0.0 =
* Initial release.
* Integrated WebP and AVIF format support.

== Upgrade Notice ==

= 1.0.0 =
This is the first version of the plugin. Please report any issues or suggestions for improvement.

== Screenshots ==

1. **Settings Page**  
   Customize paths for WebP and AVIF image directories.

