=== Ansico Mediasource ===
Contributors: aphandersen
Tags: images, media, attribution, source, featured image
Requires at least: 5.8
Tested up to: 6.9.4
Requires PHP: 7.0
Stable tag: 1.0.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Adds source URL, source text, and license fields to images in the media library and can display a small source line below inserted images and featured images.

== Description ==

Ansico Mediasource adds three custom fields to image attachments in the WordPress media library:

* Source URL
* Source text
* License

When Source URL and Source text are filled in, the plugin can show a small source line below inserted images in post content. If License is filled in, it is shown in parentheses after the source link.

The source label is customizable in the plugin settings, and the source line can be enabled or disabled separately for inserted images and featured images.

Featured image source lines are only shown on singular views, not on archive pages.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the ZIP file through the WordPress plugins screen.
2. Activate the plugin through the `Plugins` screen in WordPress.
3. Go to `Settings -> Ansico Mediasource` to configure the source label and display options.
4. Edit an image in the media library and fill in Source URL, Source text, and optionally License.

== Frequently Asked Questions ==

= Does the plugin show anything if the source fields are empty? =

No. Nothing is shown unless both Source URL and Source text are filled in.

= Does it work for featured images? =

Yes. Featured image source lines can be enabled separately in settings and are only shown on singular views.

== Changelog ==

= 1.0.0 =
* First public release.
* Added source URL, source text, and license fields for images.
* Added optional source line below inserted images.
* Added optional source line below featured images on singular views only.
* Added customizable source label in settings.
* Added separate toggles for inserted images and featured images.
* Styled output with small italic text and bold source label.
