=== AwoContract ===
Contributors: awoscan
Tags: contract, legal, agreement, nda, b2b
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
Stable tag: 2.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Draft B2B service agreements, sales contracts, NDAs, and KVKK/GDPR protocols with dynamic party variables and A4 wet-signature pages.

== Description ==

**AwoContract 2.2.0** is a self-contained corporate B2B studio for WordPress (`WP Admin -> AwoContract`).

= What AwoContract Does =

AwoContract lets businesses draft standardized B2B service contracts, sales agreements, confidentiality agreements (NDA), and KVKK/GDPR annexes using dynamic party placeholders and multi-page A4 signature layouts.

= How to Configure and Use AwoContract =

1. **Open the Studio:** After activating the plugin, click **AwoContract** in the WordPress admin sidebar (requires `manage_options` capability).
2. **Configure Company Settings:** Enter your company legal name, MERSIS/Tax ID, registered address, and authorized signatory title in the First Party (Provider) Settings panel.
3. **Create or Select a Record:** Select a contract template (B2B Service Agreement, Sales & Delivery Contract, Mutual NDA, or Subcontractor Agreement) and fill in the Counterparty (Client) details.
4. **Calculate, Filter, and Manage Status:** Customize contract clauses, contract value, payment schedule, jurisdiction court, and penalty/termination terms in the clause editor.
5. **Save, Print A4 PDF, or Export:** Click **Save** to store the contract in WordPress, click **Print A4 Contract** to generate the formatted A4 legal document with initial/signature boxes on every page, or export to JSON.

= Key Features =

* **Live Two-Column Studio & Instant A4 Print Preview:** Edit your records on the left and preview the formatted A4 corporate document on the right (`@media print` ready).
* **100% Local WordPress Database Storage:** Stores workspace records safely inside `wp_options` (`awocontract_workspace_v1`) via Nonce-verified and capability-checked WordPress AJAX (`manage_options`).
* **CSV & Portable JSON Export / Import:** Export records to Excel-compatible CSV or portable JSON backup files at any time.
* **Adaptive Day / Night UI:** Supports automatic system theme detection as well as manual Light and Dark modes.

= External Services =

* **100% Local Default Operation:** AwoContract runs 100% locally inside your WordPress site and makes **zero external HTTP requests**.
  * Terms & Privacy Policy: `https://awoscan.com/privacy`

= Privacy and Data Storage =

AwoContract stores all records, company settings, and uploaded logos/stamps locally inside your own WordPress database (`wp_options` under `awocontract_workspace_v1`). No business records or customer data are sent to external servers. All stored options are automatically removed when the plugin is uninstalled (`uninstall.php`).

= Source Code =

All PHP, JavaScript, and CSS files in this plugin are distributed in human-readable, unminified source form directly inside the plugin directory (no external build tool or compiler is required):

* awocontract.php - WordPress admin menu, capability checks, nonce-protected AJAX persistence, and asset registration.
* contract-view.php - WordPress admin studio interface, signature pads, and live A4 contract preview layout.
* uninstall.php - Cleanly deletes all stored plugin options on uninstall.
* assets/awocontract.js - Contract template engine, local SVG verification stamp generator, signature canvas handler, and AJAX/local workspace state.
* assets/awocontract.css - Admin studio styles, Day/Night themes, and `@media print` A4 page rules.

== Installation ==

1. Upload the `awocontract` folder to `/wp-content/plugins/` or upload the plugin ZIP file via **Plugins -> Add New -> Upload Plugin** in WordPress.
2. Activate **AwoContract** through the **Plugins** menu in WordPress.
3. Click **AwoContract** in the WordPress admin sidebar (`manage_options` capability required).
4. Configure your company header, add your first record, click **Save**, and use **Print A4 / PDF** to generate your document.

== Frequently Asked Questions ==

= Does AwoContract require an external account or cloud subscription to work? =

No. AwoContract runs locally inside WordPress out of the box with no external account required.

= Where is my data stored? =

All data is stored in your own WordPress database inside the `wp_options` table (`awocontract_workspace_v1`) and can be exported to JSON or CSV at any time.

= Can I print A4 documents or save them as PDF? =

Yes. Click the Print A4 button inside the studio to open your browser's native print dialog, where you can print directly to an A4 printer or choose "Save as PDF".

== Screenshots ==

1. AwoContract main workspace editor and live A4 document preview.
2. Saved records list, status filter, and CSV/JSON export controls.
3. Company header, branding, and studio configuration panel.

== Changelog ==

= 2.2.0 =
* Tested and verified up to WordPress 7.2.
* Replaced external QR image requests with a 100% local deterministic SVG verification stamp so the plugin makes zero external HTTP requests.
* Hardened `[awocontract]` shortcode access with `manage_options` capability enforcement, fixed WordPress AJAX persistence with PNG signature sanitization, and documented all source files in `readme.txt`.

= 1.0.0 =
* Initial release of AwoContract corporate studio for WordPress.
