=== jAlbum Gallery Block ===

Contributors: mlaza, jAlbum
Donate link: https://jalbum.net/en/secure/donate
Tags: jalbum, album, gallery, embed
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed albums made with jAlbum's Embed skin into any post or page.


== Description ==
   
**jAlbum Gallery Block**: This plugin adds a new Block Editor block type - jAlbum Gallery - which will embed any album made with the Embed skin on your page or post. It's responsive and mobile-friendly.

Download the jAlbum desktop application along with the Embed skin to generate and upload photo galleries to any site. Currently, only the Embed skin can generate WordPress-loadable albums, but in the future more will come. 

Once the album is uploaded, you can use this plugin to add the album to any post or page by simply copy/pasting the album's URL into the plugin's appropriate box.

For help with the plugin, visit [your-site-here.com →](https://www.your-site-here.com/embed-skin/)

Get the jAlbum application [from here →](https://jalbum.net/software/download)

jAlbum [Embed skin forum on jalbum.net →](http://jalbum.net/forum/forum.jspa?forumID=91)


== Installation ==

1. Install the plugin through the Dashboard's "Plugins / Add new" panel directly, or manually upload the plugin files to the `/wp-content/plugins/jalbum-gallery-block` directory.
2. "Activate" the plugin in the "Plugins" menu.
3. In the editor use the "Add block" (+) button, "jAlbum gallery" to insert a new album.
4. Add the URL of the album's top-level page in the inspector panel's GALLERY URL box. 


== Frequently Asked Questions ==

= Is this plugin working on images within WordPress? =

You don't have to add the images to the WordPress Media collection. Simply use the jAlbum application with the Embed skin to create and upload albums separately from WordPress.

= What is the workflow? =

1. First, you create an album using the jAlbum application with the Embed skin.

2. Upload to a separate (static) folder on your server, e.g., `/albums/albumName`. Make sure to avoid naming conflicts with existing WordPress posts. If you already have a post (page) called "album" and you create a folder at the site root called "album", they might interfere, and instead of the post, the visitors will only see the contents of the static folder.

3. Open a WordPress post (or page) and use the `jAlbum Gallery` button to insert a new album.

4. Provide the URL to the album in the inspector panel's GALLERY URL box, e.g., `/albums/albumName`. 

5. Once finished, click "Update" to save the post. 

= Can I use an album from another site? =

Yes, you can. However, you'll have to have access rights to the album's server. It's called "Cross-Origin Resource Sharing" (CORS), and can be controlled many ways, e.g. through the `.htaccess` file in the site root. For example, adding `Header add Access-Control-Allow-Origin "http://www.your-site-here.com/"` allows file access from the mentioned site. Once you already allowed access to "*" (any site) you don't have to do anything more.


== Screenshots ==

1. jAlbum Gallery button
2. The top level album page as inserted into a WordPress page
3. Thumbnails in a subfolder
4. The lightbox (using the GLightbox library)


== Changelog ==

= 1.0.1 =
* Fixing Readme.txt and typos

= 1.0 =
* Initial release