-
Notifications
You must be signed in to change notification settings - Fork 0
templates.en_US
YanQS edited this page Dec 13, 2025
·
1 revision
-
includes/templates/: default template files shipped with the plugin (reply.php,new_comment.php,pending.php). -
includes/templates/styles/{modern,plain,compact}/: style-specific template folders (each style contains its own template files).
- The admin page provides an HTML editor (TinyMCE supported).
- "Load selected style" will read the corresponding files from
includes/templates/styles/<style>/and attempt to write them intoincludes/templates/. If writing fails, the plugin will save templates into thepcn_templatesoption. - When saving: the plugin preserves PHP source code inside templates; however, for security the admin "Preview" strips PHP before rendering to avoid executing server-side PHP.
- Common variables:
{{blogname}},{{parent_author}},{{parent_content}},{{reply_author}},{{reply_content}},{{comment_link}},{{unsubscribe_url}}.
- Keep custom templates under version control or in a child theme. If you want to prevent style file writes, make
includes/templates/read-only — the plugin will then use the database-backed template fallback.