=== WP Social Feed Plugin ===
Contributors: hubert-m
Donate link: https://machala.dev/
Tags: instagram, social feed, gallery, shortcode
Requires at least: 6.0
Tested up to: 6.9.1
Stable tag: 1.0.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A modular WordPress plugin to fetch and display Instagram posts using custom tables and shortcodes.

== Description ==

WP Social Feed Plugin allows you to seamlessly integrate your Instagram feed directly into your WordPress website. 
Instead of relying on heavy third-party services that slow down your site, this plugin fetches your Instagram posts via the official Instagram Graph API, stores them efficiently in custom database tables, and serves them blazingly fast.

You can easily display your social feed anywhere on your site (in pages, posts, or widgets) using a simple shortcode `[wp_social_feed]`.

### Key Benefits:
* **Performance-focused:** Posts are saved in local custom tables, eliminating constant API calls to Instagram on every page load.
* **Modular Architecture:** Clean object-oriented PHP codebase that's easy to maintain and extend.
* **Easy API Integration:** Built-in settings page for adding your Instagram Access Token and managing API connections.
* **Automated Updates:** A built-in cron job periodically syncs new content from your Instagram profile automatically.
* **Auto-Updater:** Built-in Plugin Update Checker automatically downloads new plugin versions directly from GitHub.

== Installation ==

1. Download the `wp-social-feed-plugin` folder to your `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **WP Social Feed** in the WordPress admin menu.
4. Provide your Instagram Access Token in the settings.
5. Use the `[wp_social_feed]` shortcode on any page or post to display the feed.

== Features ==
* Connect to Instagram API and fetch media (Images, Videos, Carousels).
* Custom database tables for optimized storage.
* Shortcode `[wp_social_feed]` for easy embedding.
* Scheduled cron events to sync posts in the background.
* GitHub updater integration for seamless plugin updates.

== Screenshots ==

1. WP Social Feed settings page in the WordPress dashboard.
2. Example frontend display of the Instagram grid via shortcode.

== Changelog ==

= 1.0.5 =
* Add AJAX manual sync and media cleanup
* Add media handler and sideloading
* bump updater 1.0.6

= 1.0.4 =
* AJAX change visibility of post

= 1.0.3 =
* Fix: fixed responsibility for .wsf-caption

= 1.0.2 =
* Fix: Poprawiono mechanizm działania karuzel (Carousel Album) i wyłączono powiększanie zdjęć po najechaniu, aby nie powodowało wizualnych problemów.
* Fix: Zmieniono hook dla biblioteki Plugin Update Checker z `admin_init` na `init`, aby aktualizacje wtyczki były poprawnie widoczne w zakładce "Wtyczki".
* Feature: Zmieniono domyślne proporcje osłon dla wideo oraz zdjęć na format portretowy Instagrama (2:3).
* Feature: Dodano przyciski Play i Pause nad filmikami, usuwając jednocześnie domyślny interfejs przeglądarki. Filmy zatrzymują się automatycznie po odtworzeniu innego klipu.
* Feature: Dodano kropki sterujące na dole dla wielokrotnych grafik (Carousel) w danym poście.

= 1.0.1 =
* Added support for toggling visibility of synced posts in the Data tab.
* Added 'Clear all posts' and 'Clear all logs' system buttons.
* Improved database migration architecture and logging mechanism.
* Integrated PluginUpdateChecker directly on the admin_init hook for better performance.
* Changed default Data table sorting to publication date instead of sync date.

= 1.0.0 =
* Initial release of the WP Social Feed Plugin.
* Added Instagram API integration.
* Added custom database tables for posts storage.
* Created settings page and `[wp_social_feed]` shortcode.
* Implemented background cron sync.
* Integrated Plugin Update Checker via GitHub.