=== SmartLabs File Manager ===
Contributors: smartlabs
Tags: files, download, media, documents, shortcode
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.6.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

File boxes with a shortcode, a list of attachments, search, and downloads through WordPress.

== Description ==

SmartLabs File Manager is a focused alternative to large, feature-heavy download management plugins. It gives editors a simple way to create file boxes from WordPress Media Library attachments and display them in posts or pages using a shortcode or block. Visitors can search, open, and download the listed files.

This submitted ZIP is a complete, standalone free plugin. It does not require an account or license key and does not contact our server. An optional Pro add-on is distributed separately outside WordPress.org; no Pro functionality is included or locked in this ZIP.

You attach files from the Media Library, choose the name visitors see, and place the box with a shortcode or the File box block.

Visitors get a list with the file icon, the display name, and the file type. Each row has a download link and a view link. When search is turned on for that box, visitors can filter the list without reloading the page.

Downloads are sent by WordPress. A file can be downloaded only when it is attached to a file box.

= How to use =

1. Open File Manager in the admin menu and add a file box.
2. Attach files, set a display name for each file, and drag the rows to change the order.
3. Save the box and place it with the File box block, or with the shortcode `[slgfm_file_list id="123"]`.
4. To let visitors search that box, turn on the search field in the box settings.

The interface is in English. Translations are provided by WordPress.org.

== Screenshots ==

1. Frontend file list with file types, download and preview buttons.
2. File box editor with custom display names, file ordering and settings.
3. File box overview with shortcodes and download counts.

== Installation ==

1. Upload the plugin through Plugins, Add New, Upload Plugin, or copy the `smartlabs-file-manager` folder to `/wp-content/plugins/`.
2. Activate SmartLabs File Manager through the Plugins screen.
3. Open File Manager in the admin menu and add a file box.

== Frequently Asked Questions ==

= Does this plugin connect to an external service? =

No. Files and settings stay in your WordPress database and uploads folder. The plugin does not call SmartLabs or any other server.

= Where do updates come from? =

Updates for this plugin are delivered by WordPress.org.

= Which files can visitors download? =

Only files attached to a file box. The download request is checked before the file is sent. The number on the file box list counts successful downloads. Opening a file in the browser is not counted.

= Can visitors search the list? =

Yes, when the search field is turned on for that file box.

= What languages are included? =

English is the source language. Further translations are provided by WordPress.org.

= Is there a Pro add-on? =

Yes. SmartLabs File Manager Pro is a separate plugin. It is not included here, and this plugin does not install it. The settings page under File Manager has a short description and a link to the SmartLabs website.

== Pro add-on ==

SmartLabs File Manager Pro is sold and updated separately. It adds a grid layout, expiry dates, a QR code, custom styling, a password on the box, and a share link that can be regenerated or revoked.

When a box has a password, or a file has an expiry date, Pro copies that file out of the public uploads folder. The old media address stops working, and WordPress sends the file only after it checks the password and the date. The QR code opens the public page of the box. It does not open the share link.

On a server that ignores `.htaccess`, deny web access to `wp-content/slg-fm-private`.

== Changelog ==

= 1.6.4 =
* Released together with SmartLabs File Manager Pro 1.6.4.
* Existing file boxes and shortcodes are updated to the current names when the plugin loads.

= 1.6.1 =
* The file list shortcode is `[slgfm_file_list]`. Existing shortcodes are updated when the plugin loads.
* File box output is escaped before it is shown.
* Uploaded file names are no longer changed for the rest of the site.
* Translations are left to WordPress.org instead of a bundled language file.

= 1.6.0 =
* Added a File box block.
* The editor shows when an attached file is missing, and it shows the visitor name separately from the downloaded file name.
* The download count is the number of files WordPress successfully sent.
* Added a settings page with a short description of the separate Pro add-on.

= 1.3.0 =
* Added a Hungarian translation.
* Added a support link in the file box settings.

= 1.2.0 =
* The plugin contains the file box, list, search, and downloads.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.6.4 =
Existing file boxes and shortcodes are updated automatically. Place new boxes with `[slgfm_file_list id="123"]`.

= 1.6.1 =
Existing file list shortcodes are updated automatically. Place new boxes with `[slgfm_file_list id="123"]`.

= 1.6.0 =
Adds the File box block and shows a missing file in the editor. No settings need to be changed after updating.
