=== Refsy – Mobile Gallery Manager with App Sync ===
Contributors: jsaliji, refsy
Tags: mobile gallery, smartphone, ios, android, mobile upload
Requires at least: 5.5
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
== Description ==

Refsy is the backend companion plugin for the Refsy mobile app, turning your WordPress website into a real-time media hub.

Connect your site using a secure QR code login and start managing images from your phone — upload, sort, rename, or delete them on the go.

Whether you're a photographer, content creator, blogger, business owner or agency, Refsy helps you manage your WordPress galleries faster and more efficiently – without logging into the dashboard.

New galleries can only be created in the WordPress admin and are embedded using shortcodes. All other actions like uploading, sorting, editing and deleting images can be done directly in the app.

Each gallery has its own shortcode which can be placed anywhere in your content.

== Features ==
* Upload images directly from your iPhone or Android device
* Connect securely using QR login (no password required)
* Sort and reorder images via drag & drop
* Edit image titles, alt text and filenames for better SEO
* Create and manage image collections (galleries)
* Delete unwanted images instantly
* REST API communication between app and plugin
* Automatic image compression
* One gallery in free version, unlimited galleries with Pro
* Works with any self-hosted WordPress installation

== Installation ==
1. Upload the plugin to `/wp-content/plugins/refsy` and activate it.
2. Create at least one gallery in the WordPress admin and embed it into a page using the provided shortcode (e.g. [refsy_gallery id=123]).
3. Open the Refsy mobile app and scan the QR code shown in the WordPress admin to start managing galleries from your phone.

== Frequently Asked Questions ==

= Is there a mobile app? =
Yes, search for "Refsy" on iOS and Android.

= Does it work without the app? =
Yes, all gallery functions can also be used directly within WordPress. However, the Refsy app provides a faster and more convenient way to manage galleries from your smartphone.

= How is the Pro version activated? =
The Pro version is unlocked by entering a valid license key. You can obtain your key from the official Refsy website at https://refsy.app.

== Screenshots ==
1. Mobile app gallery view
2. Admin interface with QR login
3. Galleries
4. Frontend Settings
5. Gallery view, sort and edit

== Changelog ==

= 1.0.8 =
* Security: REST API requests are now bound to the token's user and restricted to images inside Refsy collections; added nonces to admin AJAX endpoints.
* Fix: frontend assets and PHP sessions no longer load site-wide, resolving conflicts with Elementor and other AJAX forms.
* Fix: gallery editor no longer opens the media library when clicking Edit/Delete on a thumbnail.
* New: redesigned admin interface; added uninstall cleanup.

= 1.0.0 =
* Initial release with full mobile sync, gallery management and QR login.

== Upgrade Notice ==

= 1.0.8 =
Recommended security and stability update.

= 1.0.0 =
First stable release.

== External Services ==

This plugin connects to the following external services:

1. Refsy License Server (https://license.refsy.app)  
– Used to validate license keys  
– Sends: the entered license key and the current domain name  
– Purpose: to check if the domain is allowed to use the key  
– Privacy: https://refsy.app/privacy  
– Terms: https://refsy.app/terms  

2. QR Code Generator API (https://api.qrserver.com)  
– Used to generate QR codes for mobile login  
– Sends: the login URL as a GET parameter to generate a QR PNG image  
– No personal data is sent  
– API documentation: https://goqr.me/api/

3. Refsy Widget Service (https://refsy.app/dashboard-widget)  
– Used to display a widget with app download links inside the WP dashboard  
– Sends: no user data; the widget only pulls public app metadata  
– Privacy: https://refsy.app/privacy
