From 314965c0a62b7377d155eb7f5ba7df1c0101f9a8 Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Thu, 16 Jul 2026 20:18:51 -0400 Subject: [PATCH] Add usage/help section to NACC settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Surface how to use the plugin directly on the Settings → NACC admin page (closes #26): - "How to Use" section explaining the [nacc] shortcode and that the settings on the page are the site-wide defaults. - Shortcode attribute table (theme, language, layout, special) mirroring README.md, noting attributes override the saved defaults per-instance. - One-line description of each control (Theme / Language / Layout / Show Special Keytags). - Link to the bundled nacc2/README.md for standalone (non-WordPress) usage. Bump version to 6.0.2 and add a readme.txt changelog entry. Help copy is mirrored from README.md / nacc2/README.md; escaping matches the existing draw_settings() conventions (static markup + esc_url for the README link). 🐦‍⬛ Generated with Claude Code, orchestrated by Crow Co-Authored-By: Claude Crow-Session: 065EC34B-D2C2-46A1-899B-EDFE29AEA7CD --- nacc-wordpress-plugin.php | 67 ++++++++++++++++++++++++++++++++++++++- readme.txt | 6 +++- 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/nacc-wordpress-plugin.php b/nacc-wordpress-plugin.php index 2648118..9de76e1 100644 --- a/nacc-wordpress-plugin.php +++ b/nacc-wordpress-plugin.php @@ -6,7 +6,7 @@ * Install: Drop this directory in the "wp-content/plugins/" directory and activate it. You need to specify "[NACC]" in the code section of a page or a post. * Contributors: BMLTGuy, pjaudiomv, bmltenabled * Authors: bmltenabled - * Version: 6.0.1 + * Version: 6.0.2 * Requires PHP: 8.0 * Requires at least: 5.3 * License: GPL v2 or later @@ -464,6 +464,71 @@ public static function draw_settings(): void { + +
+ +

How to Use

+

+ Add the [nacc] shortcode to any page or post to embed the cleantime + calculator. The settings above are the site-wide defaults used whenever the + shortcode is placed without attributes. +

+ +

Shortcode Attributes

+

+ All attributes are optional. Any attribute you set on the shortcode overrides the + saved default above for that instance only, so you can display the calculator + differently on different pages. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeValuesDefault
themeSee the Theme dropdown aboveDefault (gray)
languageSee the Language dropdown aboveen
layoutlinear, tabularlinear
special1, 00
+

+ Example: + [nacc theme="NACC-BT" language="es" layout="tabular" special="1"] +

+ +

What Each Setting Does

+ + +

+ For standalone (non-WordPress) usage, see the + nacc2/README.md + documentation included with this plugin. +