PluginProbe
Contact Forms by Cimatti / 2.2.0
Contact Forms by Cimatti v2.2.0
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
contact-forms / docs / ASSET-LOCATION-REFERENCE.md

ASSET-LOCATION-REFERENCE.md in Contact Forms by Cimatti 2.2.0, at docs/ASSET-LOCATION-REFERENCE.md

93 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 # Contact Forms - Asset Location Quick Reference
2
3 ## CSS Files
4 | Purpose | Location | Old Location |
5 |---------|----------|--------------|
6 | Admin styles | `/assets/css/admin.css` | `accua-forms-admin.css` |
7 | Dashboard styles | `/assets/css/dashboard.css` | `accua.css` |
8 | Frontend/Form styles | `/assets/css/frontend.css` | `accua-form-api.css` |
9
10 ## JavaScript Files
11
12 ### Admin Scripts
13 | Purpose | Location | Old Location |
14 |---------|----------|--------------|
15 | Form field management | `/assets/js/admin/form-fields.js` | `form-fields.js` |
16 | Form settings | `/assets/js/admin/form-settings.js` | `form-settings.js` |
17 | Admin tabs | `/assets/js/admin/tabs.js` | `accua_tabs.js` |
18 | TinyMCE button | `/assets/js/admin/shortcode-button.js` | `accua-shortcode-button.js` |
19 | Google Ads verification | `/assets/js/admin/verify-gads-conversion.js` | `/js/accua_verify_gads_conversion_code.js` |
20 | Lead status selector | `/assets/js/admin/set-lead-status.js` | `/js/accua-forms-set-lead-status.js` |
21
22 ### Frontend Scripts
23 | Purpose | Location | Old Location |
24 |---------|----------|--------------|
25 | reCAPTCHA v1 | `/assets/js/frontend/recaptcha.js` | `accua-recaptcha.js` |
26 | reCAPTCHA v2 | `/assets/js/frontend/recaptcha2.js` | `accua-recaptcha2.js` |
27
28 ## Vendor Libraries
29 | Library | Location | Old Location |
30 |---------|----------|--------------|
31 | Chart.js | `/assets/vendor/chartjs/chart.umd.min.js` | `/chartjs/Chart.min.js` |
32 | jqColorPicker | `/assets/vendor/jqColorPicker.min.js` | `/js/jqColorPicker.min.js` |
33 | jQuery DragTable | `/assets/vendor/dragtable/jquery.dragtable.js` | `/dragtable/jquery.dragtable.js` |
34
35 ## Images
36 | Type | Location | Old Location |
37 |------|----------|--------------|
38 | All images | `/assets/img/` | `/img/` |
39
40 ## Key Changes
41
42 ### In PHP Code
43 ```php
44 // OLD
45 plugins_url('accua-forms-admin.css', ACCUA_FORMS_FILE)
46 plugins_url('/js/jqColorPicker.min.js', ACCUA_FORMS_FILE)
47 plugins_url('accua_tabs.js', ACCUA_FORMS_FILE)
48
49 // NEW
50 plugins_url('assets/css/admin.css', ACCUA_FORMS_FILE)
51 plugins_url('assets/vendor/jqColorPicker.min.js', ACCUA_FORMS_FILE)
52 plugins_url('assets/js/admin/tabs.js', ACCUA_FORMS_FILE)
53 ```
54
55 ### In CSS Code
56 ```css
57 /* OLD */
58 background: url("img/wpspin_light.gif");
59
60 /* NEW */
61 background: url("../img/wpspin_light.gif");
62 ```
63
64 ## WordPress Best Practices Followed
65
66
67 **Assets Organization**: All assets in `/assets/` directory
68
69 **Separation of Concerns**: Admin/Frontend/Vendor clearly separated
70
71 **Naming Convention**: Kebab-case, descriptive names
72
73 **Vendor Isolation**: Third-party libraries in `/assets/vendor/`
74
75 **Relative Paths**: CSS uses proper relative paths to images
76
77 **Cache Busting**: Version constants preserved and functional
78
79 ## Notes
80
81 - **No root-level CSS/JS files**: All organized in `/assets/`
82 - **Deprecated code removed**: Flot library removed (was commented out)
83 - **Backward compatibility**: Old paths no longer work
84 - **Testing required**: Verify all forms, admin pages, and frontend features
85
86 ## Support
87
88 For issues related to the reorganization, check:
89 1. Browser console for 404 errors
90 2. WordPress debug log for PHP errors
91 3. Network tab for failed asset loads
92 4. This reference guide for correct paths
93