Commit fca1af2
feat: migrate scripture settings to ScriptureLinks plugin (#1191)
* feat: migrate scripture settings from Proclaim to ScriptureLinks plugin
Move scripture provider settings (GetBible, API.Bible, API key, GDPR
mode, cache days, default version) from component params to plugin
params. The scripture system becomes self-contained in the library +
plugin.
Library changes:
- ScriptureParamsHelper: read/write plugin params from #__extensions
- ApiKeyField + BibleTranslationField: moved to library namespace
- TranslationsmanagerField: full Scripture tab UI (panels + table)
- bible-translations.js + cwm-fetch.js: copied to library media
Plugin changes:
- onAjaxScripturelinks: 9 AJAX actions for Proclaim + 3 for plugin UI
- Settings tab: mode + display only
- Scripture tab: full provider/settings/translations management
Proclaim changes:
- Admin Center Scripture tab reads/writes plugin params
- CwmadminModel intercepts save to redirect scripture params
- bible-translations.js AJAX URLs use com_ajax
- Controller: removed ~630 lines of scripture AJAX methods
- Form fields: thin wrappers delegating to library
- Migration script copies params on upgrade
Build changes:
- Library manifest symlinked for namespace autoloading
- npm build outputs updated JS with com_ajax URLs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update submodule — scripture tab detection for plugin page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update submodule — field order, switcher styling, GDPR on plugin tab
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update submodule — element IDs and HttpFactory for plugin page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: Proclaim admin uses shared Scripture tab renderer
Replace ~130 lines of custom Scripture tab HTML + 60-line config div
with a single call to TranslationsmanagerField::renderScriptureTab().
Both plugin and Proclaim now render identical Scripture tab UI from
the same code path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update submodule — API key field show/hide on provider toggle
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: update submodule — GDPR Mode on plugin tab only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: bidirectional GDPR mode sync between Proclaim and plugin
gdpr_mode is a shared setting — Proclaim needs it for analytics/privacy,
the plugin needs it for scripture API calls.
- Proclaim keeps gdpr_mode in component params (not stripped on save)
- Proclaim syncs gdpr_mode to plugin params via SHARED_KEYS
- Plugin syncs gdpr_mode back to #__bsms_admin.params on save
- CwmanalyticsHelper reads from component params (its own copy)
- Migration copies gdpr_mode to plugin but keeps component copy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: update submodule — remove BibleGateway external links
All scripture display modes now use local/API text only. No external
links that expose visitor IPs to third parties.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: update submodule — attribute-style tag parameters
Supports {scripture display="tooltip" version="kjv"}...{/scripture}
per-tag overrides for display mode and translation version.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f11ecf1 commit fca1af2
File tree
12 files changed
+334
-1098
lines changed- admin
- src
- Controller
- Field
- Helper
- Model
- View/Cwmmessage
- tmpl/cwmadmin
- build
- media_source/js
- libraries
12 files changed
+334
-1098
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
26 | 22 | | |
27 | | - | |
28 | 23 | | |
| 24 | + | |
29 | 25 | | |
30 | | - | |
| 26 | + | |
31 | 27 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
| 18 | + | |
| 19 | + | |
24 | 20 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 21 | + | |
34 | 22 | | |
35 | | - | |
| 23 | + | |
| 24 | + | |
36 | 25 | | |
37 | | - | |
| 26 | + | |
38 | 27 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
123 | 122 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 123 | + | |
| 124 | + | |
130 | 125 | | |
131 | 126 | | |
132 | | - | |
| 127 | + | |
133 | 128 | | |
134 | 129 | | |
135 | 130 | | |
| |||
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
175 | | - | |
176 | | - | |
| 170 | + | |
177 | 171 | | |
178 | | - | |
| 172 | + | |
179 | 173 | | |
180 | 174 | | |
181 | | - | |
| 175 | + | |
182 | 176 | | |
183 | | - | |
| 177 | + | |
184 | 178 | | |
185 | 179 | | |
186 | 180 | | |
187 | | - | |
188 | | - | |
| 181 | + | |
| 182 | + | |
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
| |||
0 commit comments