diff --git a/assets/css/admin.css b/assets/css/admin.css index 8b68dfd..46af838 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,5 +1,5 @@ /** - * OpenTrust admin styles. + * Open Trust Center admin styles. */ /* Server-rendered visibility toggle. jQuery .show()/.hide() override via inline style. */ @@ -898,7 +898,7 @@ .ettic-otc-tools-action--update { color: #854d0e; font-weight: 600; } /* Active-model dropdown — provider-deprecated id marker. */ -.opentrust-ai-model-unavailable { +.ettic-otc-ai-model-unavailable { display: inline-flex; align-items: center; gap: 6px; @@ -906,7 +906,7 @@ vertical-align: middle; } -.opentrust-ai-model-unavailable .description { +.ettic-otc-ai-model-unavailable .description { margin: 0; color: #b91c1c; } diff --git a/assets/css/chat.css b/assets/css/chat.css index fda3828..d4f5e9b 100644 --- a/assets/css/chat.css +++ b/assets/css/chat.css @@ -1,5 +1,5 @@ /** - * OpenTrust AI chat page styles. + * Open Trust Center AI chat page styles. * Inlined into /trust-center/ask/ via template_redirect. * Layered into @layer ettic-otc to avoid theme bleed. * diff --git a/assets/js/admin.js b/assets/js/admin.js index fb77071..9dc06c9 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -1,5 +1,5 @@ /** - * OpenTrust admin scripts. + * Open Trust Center admin scripts. * * Handles the colour picker and media uploader on the settings page, * plus any CPT meta-box interactions. @@ -8,7 +8,7 @@ 'use strict'; // ── Accent contrast helpers ───────────────── - // Mirrors OpenTrust::accent_safe_lightness() — clamps HSL lightness just + // Mirrors Ettic_OTC::accent_safe_lightness() — clamps HSL lightness just // far enough to hit WCAG 4.5:1 contrast against white, preserving hue and // saturation so the adjusted colour stays on-brand. var ACCENT_TARGET_CONTRAST = 4.5; @@ -122,7 +122,7 @@ } function updateAccentWarning(hex) { - var $warning = $('#opentrust-accent-warning'); + var $warning = $('#ettic-otc-accent-warning'); if (!$warning.length) return; var result = accentSafe(hex); @@ -146,9 +146,9 @@ $(function () { // ── Colour picker ────────────────────────── - var $accentInput = $('#opentrust_accent_color'); - var $forceExact = $('#opentrust_accent_force_exact'); - var $accentWarning = $('#opentrust-accent-warning'); + var $accentInput = $('#ettic_otc_accent_color'); + var $forceExact = $('#ettic_otc_accent_force_exact'); + var $accentWarning = $('#ettic-otc-accent-warning'); $('.ettic-otc-color-picker').wpColorPicker({ change: function (event, ui) { @@ -445,9 +445,9 @@ if (!titleInput) return; // Meta keys (with leading underscore) map to DOM ids by stripping the - // leading underscore: `_opentrust_cert_type` → `opentrust_cert_type`. + // leading underscore: `_ettic_otc_cert_type` → `ettic_otc_cert_type`. var metaKeyToDomId = function (metaKey) { - return metaKey.replace(/^_opentrust_/, 'opentrust_'); + return metaKey.replace(/^_ettic_otc_/, 'ettic_otc_'); }; var normalize = function (value) { @@ -801,7 +801,7 @@ * Certification type toggle. * * Shows or hides the "certified only" fields (issuing body, status, dates) - * based on the `_opentrust_cert_type` select. A compliant certification has no + * based on the `_ettic_otc_cert_type` select. A compliant certification has no * audit and therefore no auditor, no issue date, no expiry, and no status * state machine, so those fields are hidden from the form entirely. * Hidden inputs still submit their values, which matches the "keep data @@ -836,7 +836,7 @@ (function () { 'use strict'; - var toggle = document.getElementById('opentrust_publish_new_version'); + var toggle = document.getElementById('ettic_otc_publish_new_version'); if (!toggle) return; toggle.addEventListener('change', function () { @@ -845,7 +845,7 @@ wrap.style.display = this.checked ? 'block' : 'none'; } if (this.checked) { - var summary = document.getElementById('opentrust_version_summary'); + var summary = document.getElementById('ettic_otc_version_summary'); if (summary) summary.focus(); } }); diff --git a/assets/js/chat.js b/assets/js/chat.js index 73990e7..b91b4c1 100644 --- a/assets/js/chat.js +++ b/assets/js/chat.js @@ -1,7 +1,7 @@ /** - * OpenTrust AI chat page controller. + * Open Trust Center AI chat page controller. * - * - Streams SSE events from /wp-json/opentrust/v1/chat. + * - Streams SSE events from /wp-json/ettic-otc/v1/chat. * - Renders tokens, citations, and done events into message bubbles. * - Maintains conversation history in sessionStorage. * - Handles refuse-to-answer, stop, retry, copy, share, print. @@ -22,7 +22,7 @@ } var strings = config.strings || {}; - var STORAGE_KEY = 'opentrust.chat.history'; + var STORAGE_KEY = 'ettic-otc.chat.history'; // Honor the visitor's reduced-motion preference. When set, we skip the // rAF-paced typewriter and render whatever's in the buffer the moment a diff --git a/assets/js/frontend.js b/assets/js/frontend.js index 40aa9c0..89589b4 100644 --- a/assets/js/frontend.js +++ b/assets/js/frontend.js @@ -1,5 +1,5 @@ /** - * OpenTrust frontend interactions. + * Open Trust Center frontend interactions. * * - Smooth scroll for anchor links * - Scroll-spy for sticky navigation diff --git a/wpml-config.xml b/wpml-config.xml index 8d06d30..e90e61c 100644 --- a/wpml-config.xml +++ b/wpml-config.xml @@ -4,14 +4,14 @@ Translation configuration for WPML and Polylang. Both plugins read this file from the plugin root at activation time and use it to: - 1. Register OpenTrust's four custom post types as translatable content, + 1. Register Open Trust Center's four custom post types as translatable content, so multilingual editors can create per-language variants of policies, certifications, subprocessors, and data practices. 2. Tell the translation plugin which custom meta fields carry human-readable text that should be translated, versus slugs, dates, IDs, or booleans that should be copied verbatim across languages. - The custom taxonomies list is empty because OpenTrust does not register + The custom taxonomies list is empty because Open Trust Center does not register any taxonomies — policy category, certification status, and data-practice legal basis are enum slugs stored in post meta, not WordPress taxonomies. -->