=== Simple Responsive Tables ===
Contributors: taskmod
Tags: responsive-tables, tables, csv, mobile, shortcode
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.4.13
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build responsive WordPress tables with a simple editor, CSV import/export, mobile layouts, and shortcodes.

== Description ==

Simple Responsive Tables helps you create tables in the WordPress dashboard and display them on posts and pages. Choose horizontal scrolling or a stacked-card layout for smaller screens.

= Features =

* Create, edit, duplicate, and delete tables.
* Edit table headings and cells in a simple grid editor.
* Add and manage rows and columns.
* Import table data from CSV files and export tables to CSV.
* Choose horizontal scrolling or stacked-card layouts for smaller screens.
* Configure responsive display settings for individual tables.
* Preview table layouts while editing.
* Optionally output Schema.org Table JSON-LD for individual tables.
* Use optional captions and alternating row shading.
* Search, sort, and paginate table data where enabled.
* Display tables using the [srt_table id="1"] shortcode.
* Translation-ready interface using the `simple-responsive-tables` text domain.
* No third-party JavaScript libraries or page-builder dependency.

== Installation ==

1. Upload the `simple-responsive-tables` folder to the `/wp-content/plugins/` directory, or upload the ZIP file through Plugins > Add New Plugin > Upload Plugin.
2. Activate Simple Responsive Tables.
3. Open **Simple Responsive Tables** in the WordPress dashboard.
4. Create and save a table.
5. Copy the shortcode shown for the table and add it to a Shortcode block or page content.

== CSV format ==

The first row of the CSV file is treated as the column headings. CSV import supports comma-separated fields, escaped double quotes, quoted commas, and multiline quoted fields. Files must be 5 MB or smaller and can contain up to 50 columns and 5,000 data rows plus a heading row. Importing a CSV replaces the content currently in the editor. Save the table after importing to store the changes.

== Shortcode ==

Use the following shortcode to display a table:

`[srt_table id="1"]`

Replace `1` with the ID of the table you want to display.

== Frequently Asked Questions ==

= How do I display a table? =

Create and save a table, copy its shortcode, and paste the shortcode into a page, post, or Shortcode block.

= Does the plugin support mobile devices? =

Yes. Each table can use a horizontal-scroll layout or a stacked-card layout on smaller screens.

= Can I import a spreadsheet? =

You can export your spreadsheet as a CSV file and import that CSV into the table editor.

= Does the plugin require a page builder? =

No. Tables can be displayed using the plugin shortcode in regular WordPress content.

= Does the plugin send table data to an external service? =

No. Table content is stored in your WordPress site's database. The plugin does not send table data to an external service.

= Will deactivating the plugin delete my tables? =

No. Deactivating the plugin does not delete its custom database table or saved table data.

== Privacy ==

Simple Responsive Tables stores table content in the WordPress database on the site where the plugin is installed. The plugin does not send table content to external services.

== Changelog ==

= 0.4.13 =
* Added the official Taskmod plugin page and author website to the plugin metadata.
* Updated release metadata for the 0.4.13 submission candidate.

= 0.4.12 =
* Made admin editor, CSV import, shortcode-copy, visitor pagination, and table status messages translatable through the plugin text domain.
* Prepared the plugin's JavaScript interface for localization without adding third-party dependencies.

= 0.4.11 =
* Kept UTF-8 BOM support for spreadsheet CSV exports while avoiding a direct fwrite() call on the output stream.
* Clarified the intentional direct database insert used for custom-table duplication.

= 0.4.10 =
* Added a UTF-8 BOM to CSV exports to improve direct opening of Bengali and other UTF-8 text in spreadsheet applications.

= 0.4.9 =
* Added database write-result checks for table creation, updates, duplication, and deletion so failed operations produce an error instead of a success redirect.
* Added JSON encoding failure handling before saving or duplicating table data.
* Improved CSV parsing to detect malformed quoting and unexpected characters after quoted fields.
* Added a 5 MB CSV file-size limit and a file-read error message.
* Kept the existing 50-column and 5,000-data-row import limits.

= 0.4.8 =
* Renamed the WordPress dashboard menu to Simple Responsive Tables.
* Added optional Schema.org Table JSON-LD output with an optional description for each table.
* Schema output is disabled by default and emitted only once per table per page request.

= 0.4.7 =
* Added nonce protection to table edit links and edit-page requests.
* Read admin success notices as validated display-only query values.
* Clarified the justified direct database insert used when duplicating a table.

= 0.4.6 =
* Strengthened preview request verification with a nonce.
* Sanitized table cell content as plain text before saving.
* Validated and normalized JSON-encoded column settings before storage.
* Documented justified direct database and CSV output stream operations for code review.
* Added translator context comments for dynamic strings.

= 0.4.5 =
* Fixed the Copy shortcode buttons on the All Tables screen.
* Improved delegated click handling and clipboard fallback behavior.

= 0.4.4 =
* Fixed Copy Shortcode handling so it works independently of the table editor.

= 0.4.3 =
* Removed the configurable Download Links section from the Add-ons page.
* Added a fixed Visit add-on link for SRT TablePress Import.
* Retained add-on installation and activation status detection.
* Updated the admin menu icon to `dashicons-editor-table`.

= 0.4.2 =
* Changed the WordPress admin menu icon to `dashicons-editor-table`.

= 0.4.1 =
* Added a central Add-ons administration page.
* Added local add-on installation and activation detection.
* Added installed-version information where available.
* Added add-on actions for opening, activating, or downloading.

= 0.4.0 =
* Added per-table responsive mode selection.
* Added Horizontal Scroll and Stacked Cards modes.
* Added configurable responsive breakpoints.
* Added responsive preview support in the editor.

= 0.3.4 =
* Renamed the administration menu to **TM Simple Table**.
* Added imported-table tracking integration for the TablePress importer.

= 0.3.3 =
* Refined the table editor and Save Table button placement.
* Improved the administration interface.

= 0.3.2 =
* Improved the table editing and preview workflow.
* Refined the administration interface.

= 0.3.1 =
* Applied fixes and refinements to the 0.3.x development line.
* Earlier development notes also record moving Save Table to the top of the editor, adding a configurable administrator page size, and adding visitor-controlled rows per page when pagination is enabled.

= 0.3.0 =
* Continued development of table editing, preview, and administration features.

= 0.2.2 =
* Previously developed as 2.0.2.
* Applied fixes and refinements to the 2.0.x development line.
* Continued work on table administration and display behavior.

= 0.2.1 =
* Previously developed as 2.0.1.
* Applied administration interface fixes.
* Refined plugin behavior during development.
* Earlier detailed notes record the separation of table management into an All Tables page and a full-width editor page, a back-to-all-tables link, and a fix for stacked-card preview simulation on desktop admin screens.

= 0.2.0 =
* Previously developed as 2.0.0.
* Established a broader implementation of the table plugin.
* Continued development of table management, editing, and responsive display functionality.
* Earlier detailed notes record per-column mobile visibility controls, per-column width settings, desktop/tablet/mobile live preview controls, and preservation of existing table records and shortcodes.

= 0.1.1 =
* Previously developed as 1.0.1.
* Applied mobile display fixes.
* Refined the initial table implementation.

= 0.1.0 =
* Previously developed as 1.0.0.
* Initial implementation of Simple Responsive Tables.
* Established the foundation for creating and displaying tables in WordPress.
