Skip to content

Commit 77a2ed4

Browse files
committed
Add core classes for OpenFields plugin functionality
- Implement COF_Field_Settings for managing field type configurations and settings. - Create COF_Field_Wrapper to standardize field rendering with consistent styling and metadata. - Introduce COF_Location_Manager to handle fieldset display logic based on various contexts. - Develop COF_Storage_Manager for routing storage operations and managing field values across different contexts. - Generate initial language file for translation support.
1 parent 24c8cd9 commit 77a2ed4

44 files changed

Lines changed: 1575 additions & 1588 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

plugin/assets/admin/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/assets/admin/css/block-editor.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/* Block placeholder in editor */
8-
.openfields-block-placeholder {
8+
.cof-block-placeholder {
99
padding: 20px;
1010
background: #f0f0f1;
1111
border: 1px dashed #c3c4c7;
@@ -14,31 +14,31 @@
1414
color: #646970;
1515
}
1616

17-
.openfields-block-placeholder .dashicons {
17+
.cof-block-placeholder .dashicons {
1818
font-size: 32px;
1919
width: 32px;
2020
height: 32px;
2121
margin-bottom: 8px;
2222
display: block;
2323
}
2424

25-
.openfields-block-placeholder p {
25+
.cof-block-placeholder p {
2626
margin: 0;
2727
font-size: 13px;
2828
}
2929

30-
.openfields-block-empty {
30+
.cof-block-empty {
3131
background: #fcf0f1;
3232
border-color: #d63638;
3333
color: #d63638;
3434
}
3535

3636
/* Preview in editor */
37-
.wp-block-openfields-field {
37+
.wp-block-cof-field {
3838
padding: 8px 0;
3939
}
4040

41-
.openfields-block-label {
41+
.cof-block-label {
4242
display: block;
4343
font-weight: 600;
4444
font-size: 12px;
@@ -47,21 +47,21 @@
4747
margin-bottom: 4px;
4848
}
4949

50-
.openfields-block-value {
50+
.cof-block-value {
5151
font-size: 14px;
5252
line-height: 1.5;
5353
}
5454

55-
.openfields-block-value img {
55+
.cof-block-value img {
5656
max-width: 100%;
5757
height: auto;
5858
}
5959

60-
.openfields-block-value a {
60+
.cof-block-value a {
6161
color: #2271b1;
6262
text-decoration: none;
6363
}
6464

65-
.openfields-block-value a:hover {
65+
.cof-block-value a:hover {
6666
text-decoration: underline;
6767
}

plugin/assets/admin/css/choice-fields.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
*/
66

77
/* Radio Group Layout - Base */
8-
.openfields-radio-group {
8+
.cof-radio-group {
99
border: none !important;
1010
padding: 0 !important;
1111
margin: 0 !important;
1212
display: flex !important;
1313
gap: 8px;
1414
}
1515

16-
.openfields-radio-group label {
16+
.cof-radio-group label {
1717
display: flex;
1818
align-items: center;
1919
gap: 8px;
@@ -22,37 +22,37 @@
2222
font-weight: normal;
2323
}
2424

25-
.openfields-radio-group input[type="radio"] {
25+
.cof-radio-group input[type="radio"] {
2626
margin: 0;
2727
cursor: pointer;
2828
flex-shrink: 0;
2929
}
3030

3131
/* Radio Vertical Layout (default) */
32-
.openfields-radio-vertical {
32+
.cof-radio-vertical {
3333
flex-direction: column !important;
3434
}
3535

3636
/* Radio Horizontal Layout */
37-
.openfields-radio-horizontal {
37+
.cof-radio-horizontal {
3838
flex-direction: row !important;
3939
flex-wrap: wrap;
4040
}
4141

42-
.openfields-radio-horizontal label {
42+
.cof-radio-horizontal label {
4343
margin-right: 16px;
4444
}
4545

4646
/* Checkbox Group Layout - Base */
47-
.openfields-checkbox-group {
47+
.cof-checkbox-group {
4848
border: none !important;
4949
padding: 0 !important;
5050
margin: 0 !important;
5151
display: flex !important;
5252
gap: 8px;
5353
}
5454

55-
.openfields-checkbox-group label {
55+
.cof-checkbox-group label {
5656
display: flex;
5757
align-items: center;
5858
gap: 8px;
@@ -61,28 +61,28 @@
6161
font-weight: normal;
6262
}
6363

64-
.openfields-checkbox-group input[type="checkbox"] {
64+
.cof-checkbox-group input[type="checkbox"] {
6565
margin: 0;
6666
cursor: pointer;
6767
flex-shrink: 0;
6868
}
6969

7070
/* Checkbox Vertical Layout (default) */
71-
.openfields-checkbox-vertical {
71+
.cof-checkbox-vertical {
7272
flex-direction: column !important;
7373
}
7474

7575
/* Checkbox Horizontal Layout */
76-
.openfields-checkbox-horizontal {
76+
.cof-checkbox-horizontal {
7777
flex-direction: row !important;
7878
flex-wrap: wrap;
7979
}
8080

81-
.openfields-checkbox-horizontal label {
81+
.cof-checkbox-horizontal label {
8282
margin-right: 16px;
8383
}
8484

85-
.openfields-checkbox-group label {
85+
.cof-checkbox-group label {
8686
display: flex;
8787
align-items: center;
8888
gap: 8px;
@@ -91,18 +91,18 @@
9191
font-weight: normal;
9292
}
9393

94-
.openfields-checkbox-group input[type="checkbox"] {
94+
.cof-checkbox-group input[type="checkbox"] {
9595
margin: 0;
9696
cursor: pointer;
9797
flex-shrink: 0;
9898
}
9999

100100
/* Horizontal layout */
101-
.openfields-checkbox-horizontal {
101+
.cof-checkbox-horizontal {
102102
flex-direction: row;
103103
flex-wrap: wrap;
104104
}
105105

106-
.openfields-checkbox-horizontal label {
106+
.cof-checkbox-horizontal label {
107107
margin-right: 16px;
108108
}

0 commit comments

Comments
 (0)