Perfect Brands for WooCommerce - Version 1.9.0

Version Description

  • Fix: php 8 compatibility
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 Perfect Brands for WooCommerce
Version 1.9.0
Comparing to
See all releases

Code changes from version 1.8.9 to 1.9.0

assets/css/styles-admin.css CHANGED
@@ -1,220 +1,290 @@
1
  /* ----------------------- Global ----------------------- */
2
- .pwb-clearfix:after{
3
  content: "";
4
  display: table;
5
- clear: both;
6
  }
7
- .pwb-blocked{
 
8
  opacity: .6;
9
  }
 
10
  /* ----------------------- /Global ----------------------- */
11
  /* ----------------------- Taxonomy pwb-brand ----------------------- */
12
- .taxonomy-pwb-brand .pwb_brand_image_selected_remove{
13
- color: #FF3030;
14
- font-family: Arial, Helvetica, sans-serif;
15
  text-decoration: none;
16
- font-size: 20px;
17
- font-weight: bold;
18
- position: absolute;
19
- top: 0;
20
- right: 0;
21
- bottom: 0;
22
- left: 0;
23
- background-color: rgba(0, 0, 0, 0.5);
24
- opacity: 0;
 
 
 
 
 
 
 
 
 
 
25
  -webkit-transition: opacity 200ms ease-in-out;
26
- -moz-transition: opacity 200ms ease-in-out;
27
- -ms-transition: opacity 200ms ease-in-out;
28
- -o-transition: opacity 200ms ease-in-out;
29
- transition: opacity 200ms ease-in-out;
 
30
  }
31
- .taxonomy-pwb-brand .pwb_brand_image_selected span{
32
- display: inline-block;
33
- position: relative;
 
34
  text-align: center;
35
- line-height: 90px;
36
- height: 90px;
37
  }
38
- .taxonomy-pwb-brand .pwb_brand_image_selected span:hover .pwb_brand_image_selected_remove{
 
 
 
 
 
 
 
 
 
39
  opacity: 1;
40
  }
41
- .taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_image, .taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_banner{
 
 
42
  display: none;
43
  }
44
- .taxonomy-pwb-brand .pwb_brand_cont > div{
 
45
  margin-top: 10px;
46
  }
47
- #wp-pwb-brand-description-field-wrap, #brand-description-help-text{
 
 
48
  width: 95%;
49
  }
50
- .taxonomy-pwb-brand .term-description-wrap{
51
- display: none!important;
 
52
  }
53
- .taxonomy-pwb-brand #col-right.pwb-force-full-width .pwb-edit-brands-bottom > span{
54
- -ms-transform: rotate(180deg);
 
55
  -webkit-transform: rotate(180deg);
56
- transform: rotate(180deg);
57
  }
58
- .taxonomy-pwb-brand table.wp-list-table .column-featured{
 
59
  width: 48px;
60
  }
61
- .taxonomy-pwb-brand .pwb-edit-brands-bottom{
62
- margin-top: 20px;
63
- margin-bottom: 20px;
 
64
  background-color: #f6f6f6;
65
- border-top: 1px solid #e4e4e4;
66
- padding: 10px;
67
  }
68
- .taxonomy-pwb-brand .pwb-edit-brands-bottom > span:hover{
 
69
  cursor: pointer;
70
  }
71
- .taxonomy-pwb-brand .pwb-edit-brands-bottom > span{
 
72
  float: left;
73
  }
74
- .taxonomy-pwb-brand .pwb-featured-count{
75
- font-style: italic;
76
- float: right;
77
- margin-left: 12px;
78
- margin-top: 0;
 
79
  margin-bottom: 0;
80
  }
81
- .taxonomy-pwb-brand table.wp-list-table .column-featured .dashicons-star-empty:hover:before{
 
82
  content: "\f155";
83
  }
84
- .taxonomy-pwb-brand table .column-featured > span:hover{
 
85
  cursor: pointer;
86
  }
 
87
  @media screen and (max-width: 782px) {
88
- .taxonomy-pwb-brand .wp-list-table thead th.column-logo, .taxonomy-pwb-brand .wp-list-table tfoot th.column-logo {
 
 
89
  display: none;
90
  }
 
91
  .taxonomy-pwb-brand .wp-list-table td.column-logo:before {
92
- content: ""!important;
93
  }
94
- .taxonomy-pwb-brand .pwb-edit-brands-bottom > span{
 
95
  display: none;
96
  }
97
  }
 
98
  @media screen and (min-width: 782px) {
99
- .taxonomy-pwb-brand #col-right.pwb-force-full-width{
100
- width: 100%!important;
101
  }
102
- .taxonomy-pwb-brand #col-left.pwb-force-full-width{
103
- width: 0!important;
104
- display: none!important;
 
105
  }
 
106
  .taxonomy-pwb-brand table.wp-list-table .column-featured,
107
- .taxonomy-pwb-brand .wp-list-table .column-logo{
108
  text-align: center;
109
  }
110
- .taxonomy-pwb-brand .pwb-featured-col-title{
 
111
  display: none;
112
  }
113
  }
114
- .pwb-brands-exporter{
115
- margin-top: 20px;
 
116
  padding-top: 20px;
117
- border-top: 1px solid #ddd;
118
- text-align: right;
119
  }
120
- .pwb-brands-exporter p{
 
121
  font-style: italic;
122
  }
123
- .taxonomy-pwb-brand .wp-list-table .column-logo{
124
- width: 52px;
 
125
  white-space: nowrap;
126
  }
 
127
  /* ----------------------- /Taxonomy pwb-brand ----------------------- */
128
 
129
  /* ----------------------- Settings page ----------------------- */
130
- #wc_pwb_admin_status_result{
131
- display: none;
132
  background-color: #f6f6f6;
133
- padding: 14px;
134
  }
135
- #wc_pwb_admin_tab_tools_system_status{
136
- display: none!important;
 
137
  }
138
- select.pwb-admin-tab-field, input[type="text"].pwb-admin-tab-field{
139
- min-width:350px;
140
- display:block;
141
- height:auto;
 
 
142
  }
 
143
  /* ----------------------- /Settings page ----------------------- */
144
 
145
- table.wp-list-table .column-taxonomy-pwb-brand{
146
- width: 11%!important;
147
  }
148
- .pwb-display-as-logo{
 
149
  display: none;
150
  }
151
- .pwb-display-as-logo.show{
 
152
  display: block;
153
  }
154
- .pwb-notice-dismissible p a{
 
155
  margin-right: 12px;
156
  }
157
- .pwb-notice-dismissible .dashicons-heart{
158
- color: #f188ff;
 
159
  margin-left: 3px;
160
  }
161
- .pwb-modal{
162
- position: fixed;
163
- top: 0;
164
- right: 0;
165
- bottom: 0;
166
- left: 0;
167
- z-index: 99999999999;
 
168
  line-height: 1;
169
- background: rgba(0,0,0,0.9);
170
- font-size: 2em;
171
  padding-top: 20px;
172
- text-align: center;
173
  }
 
174
  .pwb-modal-inner {
175
  max-width: 70%;
176
- margin: 0 auto;
177
  animation: pwbblinkkf 3s linear infinite;
178
- color: #fff;
179
  }
180
- .pwb-modal-inner p{
 
181
  font-size: 2em;
182
  }
 
183
  @keyframes pwbblinkkf {
184
- 50% { opacity: 0; }
 
 
185
  }
 
186
  @keyframes PWBLoadingOverlay {
187
- to {transform: rotate(360deg);}
 
 
188
  }
189
- .pwb-loading-overlay{
 
190
  position: relative;
191
  }
192
- .pwb-loading-overlay::after{
193
- content: "";
194
- position: absolute;
195
- top: 0;
196
- right: 0;
197
- bottom: 0;
198
- left: 0;
199
- background-color: rgba( 255, 255, 255, .7 );
200
- z-index: 1;
201
- }
202
- .pwb-loading-overlay::before{
203
- content: "";
204
- position: absolute;
205
- box-sizing: border-box;
206
- top: 50%;
207
- left: 50%;
208
- width: 15px;
209
- height: 15px;
210
- margin-top: -7.5px;
211
- margin-left: -7.5px;
212
- border-radius: 50%;
213
- border-top: 2px solid #000;
214
- border-right: 2px solid transparent;
215
- animation: PWBLoadingOverlay .6s linear infinite;
216
- z-index: 1;
217
  }
218
- input.pwb-brands-import-file{
219
- display: none!important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
 
 
 
 
1
  /* ----------------------- Global ----------------------- */
2
+ .pwb-clearfix:after {
3
  content: "";
4
  display: table;
5
+ clear : both;
6
  }
7
+
8
+ .pwb-blocked {
9
  opacity: .6;
10
  }
11
+
12
  /* ----------------------- /Global ----------------------- */
13
  /* ----------------------- Taxonomy pwb-brand ----------------------- */
14
+ .taxonomy-pwb-brand .pwb_brand_image_selected_remove {
15
+ color : #FF3030;
16
+ font-family : Arial, Helvetica, sans-serif;
17
  text-decoration: none;
18
+ font-size : 20px;
19
+ font-weight : bold;
20
+ position : absolute;
21
+ top : 50%;
22
+ right : 50%;
23
+ margin : -13px -7px 0 0;
24
+ opacity : 0;
25
+ }
26
+
27
+ .taxonomy-pwb-brand .pwb_brand_image_selected span::before {
28
+ content : '';
29
+ display : block;
30
+ background-color : rgba(0, 0, 0, 0.5);
31
+ position : absolute;
32
+ opacity : 0;
33
+ top : 0;
34
+ right : 0;
35
+ bottom : 0;
36
+ left : 0;
37
  -webkit-transition: opacity 200ms ease-in-out;
38
+ -moz-transition : opacity 200ms ease-in-out;
39
+ -ms-transition : opacity 200ms ease-in-out;
40
+ -o-transition : opacity 200ms ease-in-out;
41
+ transition : opacity 200ms ease-in-out;
42
+
43
  }
44
+
45
+ .taxonomy-pwb-brand .pwb_brand_image_selected span {
46
+ display : inline-block;
47
+ position : relative;
48
  text-align: center;
49
+ max-width : 90px;
 
50
  }
51
+
52
+ .taxonomy-pwb-brand .pwb_brand_image_selected span img {
53
+ height : auto;
54
+ height : auto;
55
+ max-width : 100%;
56
+ max-height: 100%;
57
+ }
58
+
59
+ .taxonomy-pwb-brand .pwb_brand_image_selected span:hover .pwb_brand_image_selected_remove,
60
+ .taxonomy-pwb-brand .pwb_brand_image_selected span:hover::before {
61
  opacity: 1;
62
  }
63
+
64
+ .taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_image,
65
+ .taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_banner {
66
  display: none;
67
  }
68
+
69
+ .taxonomy-pwb-brand .pwb_brand_cont>div {
70
  margin-top: 10px;
71
  }
72
+
73
+ #wp-pwb-brand-description-field-wrap,
74
+ #brand-description-help-text {
75
  width: 95%;
76
  }
77
+
78
+ .taxonomy-pwb-brand .term-description-wrap {
79
+ display: none !important;
80
  }
81
+
82
+ .taxonomy-pwb-brand #col-right.pwb-force-full-width .pwb-edit-brands-bottom>span {
83
+ -ms-transform : rotate(180deg);
84
  -webkit-transform: rotate(180deg);
85
+ transform : rotate(180deg);
86
  }
87
+
88
+ .taxonomy-pwb-brand table.wp-list-table .column-featured {
89
  width: 48px;
90
  }
91
+
92
+ .taxonomy-pwb-brand .pwb-edit-brands-bottom {
93
+ margin-top : 20px;
94
+ margin-bottom : 20px;
95
  background-color: #f6f6f6;
96
+ border-top : 1px solid #e4e4e4;
97
+ padding : 10px;
98
  }
99
+
100
+ .taxonomy-pwb-brand .pwb-edit-brands-bottom>span:hover {
101
  cursor: pointer;
102
  }
103
+
104
+ .taxonomy-pwb-brand .pwb-edit-brands-bottom>span {
105
  float: left;
106
  }
107
+
108
+ .taxonomy-pwb-brand .pwb-featured-count {
109
+ font-style : italic;
110
+ float : right;
111
+ margin-left : 12px;
112
+ margin-top : 0;
113
  margin-bottom: 0;
114
  }
115
+
116
+ .taxonomy-pwb-brand table.wp-list-table .column-featured .dashicons-star-empty:hover:before {
117
  content: "\f155";
118
  }
119
+
120
+ .taxonomy-pwb-brand table .column-featured>span:hover {
121
  cursor: pointer;
122
  }
123
+
124
  @media screen and (max-width: 782px) {
125
+
126
+ .taxonomy-pwb-brand .wp-list-table thead th.column-logo,
127
+ .taxonomy-pwb-brand .wp-list-table tfoot th.column-logo {
128
  display: none;
129
  }
130
+
131
  .taxonomy-pwb-brand .wp-list-table td.column-logo:before {
132
+ content: "" !important;
133
  }
134
+
135
+ .taxonomy-pwb-brand .pwb-edit-brands-bottom>span {
136
  display: none;
137
  }
138
  }
139
+
140
  @media screen and (min-width: 782px) {
141
+ .taxonomy-pwb-brand #col-right.pwb-force-full-width {
142
+ width: 100% !important;
143
  }
144
+
145
+ .taxonomy-pwb-brand #col-left.pwb-force-full-width {
146
+ width : 0 !important;
147
+ display: none !important;
148
  }
149
+
150
  .taxonomy-pwb-brand table.wp-list-table .column-featured,
151
+ .taxonomy-pwb-brand .wp-list-table .column-logo {
152
  text-align: center;
153
  }
154
+
155
+ .taxonomy-pwb-brand .pwb-featured-col-title {
156
  display: none;
157
  }
158
  }
159
+
160
+ .pwb-brands-exporter {
161
+ margin-top : 20px;
162
  padding-top: 20px;
163
+ border-top : 1px solid #ddd;
164
+ text-align : right;
165
  }
166
+
167
+ .pwb-brands-exporter p {
168
  font-style: italic;
169
  }
170
+
171
+ .taxonomy-pwb-brand .wp-list-table .column-logo {
172
+ width : 52px;
173
  white-space: nowrap;
174
  }
175
+
176
  /* ----------------------- /Taxonomy pwb-brand ----------------------- */
177
 
178
  /* ----------------------- Settings page ----------------------- */
179
+ #wc_pwb_admin_status_result {
180
+ display : none;
181
  background-color: #f6f6f6;
182
+ padding : 14px;
183
  }
184
+
185
+ #wc_pwb_admin_tab_tools_system_status {
186
+ display: none !important;
187
  }
188
+
189
+ select.pwb-admin-tab-field,
190
+ input[type="text"].pwb-admin-tab-field {
191
+ min-width: 350px;
192
+ display : block;
193
+ height : auto;
194
  }
195
+
196
  /* ----------------------- /Settings page ----------------------- */
197
 
198
+ table.wp-list-table .column-taxonomy-pwb-brand {
199
+ width: 11% !important;
200
  }
201
+
202
+ .pwb-display-as-logo {
203
  display: none;
204
  }
205
+
206
+ .pwb-display-as-logo.show {
207
  display: block;
208
  }
209
+
210
+ .pwb-notice-dismissible p a {
211
  margin-right: 12px;
212
  }
213
+
214
+ .pwb-notice-dismissible .dashicons-heart {
215
+ color : #f188ff;
216
  margin-left: 3px;
217
  }
218
+
219
+ .pwb-modal {
220
+ position : fixed;
221
+ top : 0;
222
+ right : 0;
223
+ bottom : 0;
224
+ left : 0;
225
+ z-index : 99999999999;
226
  line-height: 1;
227
+ background : rgba(0, 0, 0, 0.9);
228
+ font-size : 2em;
229
  padding-top: 20px;
230
+ text-align : center;
231
  }
232
+
233
  .pwb-modal-inner {
234
  max-width: 70%;
235
+ margin : 0 auto;
236
  animation: pwbblinkkf 3s linear infinite;
237
+ color : #fff;
238
  }
239
+
240
+ .pwb-modal-inner p {
241
  font-size: 2em;
242
  }
243
+
244
  @keyframes pwbblinkkf {
245
+ 50% {
246
+ opacity: 0;
247
+ }
248
  }
249
+
250
  @keyframes PWBLoadingOverlay {
251
+ to {
252
+ transform: rotate(360deg);
253
+ }
254
  }
255
+
256
+ .pwb-loading-overlay {
257
  position: relative;
258
  }
259
+
260
+ .pwb-loading-overlay::after {
261
+ content : "";
262
+ position : absolute;
263
+ top : 0;
264
+ right : 0;
265
+ bottom : 0;
266
+ left : 0;
267
+ background-color: rgba(255, 255, 255, .7);
268
+ z-index : 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
270
+
271
+ .pwb-loading-overlay::before {
272
+ content : "";
273
+ position : absolute;
274
+ box-sizing : border-box;
275
+ top : 50%;
276
+ left : 50%;
277
+ width : 15px;
278
+ height : 15px;
279
+ margin-top : -7.5px;
280
+ margin-left : -7.5px;
281
+ border-radius: 50%;
282
+ border-top : 2px solid #000;
283
+ border-right : 2px solid transparent;
284
+ animation : PWBLoadingOverlay .6s linear infinite;
285
+ z-index : 1;
286
  }
287
+
288
+ input.pwb-brands-import-file {
289
+ display: none !important;
290
+ }
assets/css/styles-admin.min.css CHANGED
@@ -1 +1 @@
1
- .pwb-clearfix:after{content:"";display:table;clear:both}.pwb-blocked{opacity:.6}.taxonomy-pwb-brand .pwb_brand_image_selected_remove{color:#ff3030;font-family:Arial,Helvetica,sans-serif;text-decoration:none;font-size:20px;font-weight:bold;position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,0.5);opacity:0;-webkit-transition:opacity 200ms ease-in-out;-moz-transition:opacity 200ms ease-in-out;-ms-transition:opacity 200ms ease-in-out;-o-transition:opacity 200ms ease-in-out;transition:opacity 200ms ease-in-out}.taxonomy-pwb-brand .pwb_brand_image_selected span{display:inline-block;position:relative;text-align:center;line-height:90px;height:90px}.taxonomy-pwb-brand .pwb_brand_image_selected span:hover .pwb_brand_image_selected_remove{opacity:1}.taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_image,.taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_banner{display:none}.taxonomy-pwb-brand .pwb_brand_cont>div{margin-top:10px}#wp-pwb-brand-description-field-wrap,#brand-description-help-text{width:95%}.taxonomy-pwb-brand .term-description-wrap{display:none!important}.taxonomy-pwb-brand #col-right.pwb-force-full-width .pwb-edit-brands-bottom>span{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.taxonomy-pwb-brand table.wp-list-table .column-featured{width:48px}.taxonomy-pwb-brand .pwb-edit-brands-bottom{margin-top:20px;margin-bottom:20px;background-color:#f6f6f6;border-top:1px solid #e4e4e4;padding:10px}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span:hover{cursor:pointer}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span{float:left}.taxonomy-pwb-brand .pwb-featured-count{font-style:italic;float:right;margin-left:12px;margin-top:0;margin-bottom:0}.taxonomy-pwb-brand table.wp-list-table .column-featured .dashicons-star-empty:hover:before{content:"\f155"}.taxonomy-pwb-brand table .column-featured>span:hover{cursor:pointer}@media screen and (max-width:782px){.taxonomy-pwb-brand .wp-list-table thead th.column-logo,.taxonomy-pwb-brand .wp-list-table tfoot th.column-logo{display:none}.taxonomy-pwb-brand .wp-list-table td.column-logo:before{content:""!important}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span{display:none}}@media screen and (min-width:782px){.taxonomy-pwb-brand #col-right.pwb-force-full-width{width:100%!important}.taxonomy-pwb-brand #col-left.pwb-force-full-width{width:0!important;display:none!important}.taxonomy-pwb-brand table.wp-list-table .column-featured,.taxonomy-pwb-brand .wp-list-table .column-logo{text-align:center}.taxonomy-pwb-brand .pwb-featured-col-title{display:none}}.pwb-brands-exporter{margin-top:20px;padding-top:20px;border-top:1px solid #ddd;text-align:right}.pwb-brands-exporter p{font-style:italic}.taxonomy-pwb-brand .wp-list-table .column-logo{width:52px;white-space:nowrap}#wc_pwb_admin_status_result{display:none;background-color:#f6f6f6;padding:14px}#wc_pwb_admin_tab_tools_system_status{display:none!important}select.pwb-admin-tab-field,input[type="text"].pwb-admin-tab-field{min-width:350px;display:block;height:auto}table.wp-list-table .column-taxonomy-pwb-brand{width:11%!important}.pwb-display-as-logo{display:none}.pwb-display-as-logo.show{display:block}.pwb-notice-dismissible p a{margin-right:12px}.pwb-notice-dismissible .dashicons-heart{color:#f188ff;margin-left:3px}.pwb-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999999999;line-height:1;background:rgba(0,0,0,0.9);font-size:2em;padding-top:20px;text-align:center}.pwb-modal-inner{max-width:70%;margin:0 auto;animation:pwbblinkkf 3s linear infinite;color:#fff}.pwb-modal-inner p{font-size:2em}@keyframes pwbblinkkf{50%{opacity:0}}@keyframes PWBLoadingOverlay{to{transform:rotate(360deg)}}.pwb-loading-overlay{position:relative}.pwb-loading-overlay::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,255,255,.7);z-index:1}.pwb-loading-overlay::before{content:"";position:absolute;box-sizing:border-box;top:50%;left:50%;width:15px;height:15px;margin-top:-7.5px;margin-left:-7.5px;border-radius:50%;border-top:2px solid #000;border-right:2px solid transparent;animation:PWBLoadingOverlay .6s linear infinite;z-index:1}input.pwb-brands-import-file{display:none!important}
1
+ .pwb-clearfix:after{content:"";display:table;clear:both}.pwb-blocked{opacity:.6}.taxonomy-pwb-brand .pwb_brand_image_selected_remove{color:#ff3030;font-family:Arial,Helvetica,sans-serif;text-decoration:none;font-size:20px;font-weight:700;position:absolute;top:50%;right:50%;margin:-13px -7px 0 0;opacity:0}.taxonomy-pwb-brand .pwb_brand_image_selected span::before{content:'';display:block;background-color:rgba(0,0,0,.5);position:absolute;opacity:0;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;-ms-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.taxonomy-pwb-brand .pwb_brand_image_selected span{display:inline-block;position:relative;text-align:center;max-width:90px}.taxonomy-pwb-brand .pwb_brand_image_selected span img{height:auto;height:auto;max-width:100%;max-height:100%}.taxonomy-pwb-brand .pwb_brand_image_selected span:hover .pwb_brand_image_selected_remove,.taxonomy-pwb-brand .pwb_brand_image_selected span:hover::before{opacity:1}.taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_banner,.taxonomy-pwb-brand .pwb_brand_cont #pwb_brand_image{display:none}.taxonomy-pwb-brand .pwb_brand_cont>div{margin-top:10px}#brand-description-help-text,#wp-pwb-brand-description-field-wrap{width:95%}.taxonomy-pwb-brand .term-description-wrap{display:none!important}.taxonomy-pwb-brand #col-right.pwb-force-full-width .pwb-edit-brands-bottom>span{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.taxonomy-pwb-brand table.wp-list-table .column-featured{width:48px}.taxonomy-pwb-brand .pwb-edit-brands-bottom{margin-top:20px;margin-bottom:20px;background-color:#f6f6f6;border-top:1px solid #e4e4e4;padding:10px}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span:hover{cursor:pointer}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span{float:left}.taxonomy-pwb-brand .pwb-featured-count{font-style:italic;float:right;margin-left:12px;margin-top:0;margin-bottom:0}.taxonomy-pwb-brand table.wp-list-table .column-featured .dashicons-star-empty:hover:before{content:"\f155"}.taxonomy-pwb-brand table .column-featured>span:hover{cursor:pointer}@media screen and (max-width:782px){.taxonomy-pwb-brand .wp-list-table tfoot th.column-logo,.taxonomy-pwb-brand .wp-list-table thead th.column-logo{display:none}.taxonomy-pwb-brand .wp-list-table td.column-logo:before{content:""!important}.taxonomy-pwb-brand .pwb-edit-brands-bottom>span{display:none}}@media screen and (min-width:782px){.taxonomy-pwb-brand #col-right.pwb-force-full-width{width:100%!important}.taxonomy-pwb-brand #col-left.pwb-force-full-width{width:0!important;display:none!important}.taxonomy-pwb-brand .wp-list-table .column-logo,.taxonomy-pwb-brand table.wp-list-table .column-featured{text-align:center}.taxonomy-pwb-brand .pwb-featured-col-title{display:none}}.pwb-brands-exporter{margin-top:20px;padding-top:20px;border-top:1px solid #ddd;text-align:right}.pwb-brands-exporter p{font-style:italic}.taxonomy-pwb-brand .wp-list-table .column-logo{width:52px;white-space:nowrap}#wc_pwb_admin_status_result{display:none;background-color:#f6f6f6;padding:14px}#wc_pwb_admin_tab_tools_system_status{display:none!important}input[type=text].pwb-admin-tab-field,select.pwb-admin-tab-field{min-width:350px;display:block;height:auto}table.wp-list-table .column-taxonomy-pwb-brand{width:11%!important}.pwb-display-as-logo{display:none}.pwb-display-as-logo.show{display:block}.pwb-notice-dismissible p a{margin-right:12px}.pwb-notice-dismissible .dashicons-heart{color:#f188ff;margin-left:3px}.pwb-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999999999;line-height:1;background:rgba(0,0,0,.9);font-size:2em;padding-top:20px;text-align:center}.pwb-modal-inner{max-width:70%;margin:0 auto;animation:pwbblinkkf 3s linear infinite;color:#fff}.pwb-modal-inner p{font-size:2em}@keyframes pwbblinkkf{50%{opacity:0}}@keyframes PWBLoadingOverlay{to{transform:rotate(360deg)}}.pwb-loading-overlay{position:relative}.pwb-loading-overlay::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,255,255,.7);z-index:1}.pwb-loading-overlay::before{content:"";position:absolute;box-sizing:border-box;top:50%;left:50%;width:15px;height:15px;margin-top:-7.5px;margin-left:-7.5px;border-radius:50%;border-top:2px solid #000;border-right:2px solid transparent;animation:PWBLoadingOverlay .6s linear infinite;z-index:1}input.pwb-brands-import-file{display:none!important}
classes/admin/class-brands-custom-fields.php CHANGED
@@ -57,6 +57,8 @@ class Brands_Custom_Fields
57
  $term_value_banner = get_term_meta($term->term_id, 'pwb_brand_banner', true);
58
  $term_value_banner_link = get_term_meta($term->term_id, 'pwb_brand_banner_link', true);
59
  ob_start();
 
 
60
  ?>
61
  <table class="form-table pwb_brand_cont">
62
  <tr class="form-field">
@@ -76,7 +78,7 @@ class Brands_Custom_Fields
76
  <input type="text" name="pwb_brand_image" id="pwb_brand_image" value="<?php echo esc_attr($term_value_image); ?>">
77
  <a href="#" id="pwb_brand_image_select" class="button"><?php esc_html_e('Select image', 'perfect-woocommerce-brands'); ?></a>
78
 
79
- <?php $current_image = wp_get_attachment_image($term_value_image, array('90', '90'), false); ?>
80
  <?php if (!empty($current_image)) : ?>
81
  <div class="pwb_brand_image_selected">
82
  <span>
@@ -96,7 +98,7 @@ class Brands_Custom_Fields
96
  <input type="text" name="pwb_brand_banner" id="pwb_brand_banner" value="<?php echo esc_html($term_value_banner); ?>">
97
  <a href="#" id="pwb_brand_banner_select" class="button"><?php esc_html_e('Select image', 'perfect-woocommerce-brands'); ?></a>
98
 
99
- <?php $current_image = wp_get_attachment_image($term_value_banner, array('90', '90'), false); ?>
100
  <?php if (!empty($current_image)) : ?>
101
  <div class="pwb_brand_image_selected">
102
  <span>
57
  $term_value_banner = get_term_meta($term->term_id, 'pwb_brand_banner', true);
58
  $term_value_banner_link = get_term_meta($term->term_id, 'pwb_brand_banner_link', true);
59
  ob_start();
60
+ $image_size_selected = get_option('wc_pwb_admin_tab_brand_logo_size', 'thumbnail');
61
+
62
  ?>
63
  <table class="form-table pwb_brand_cont">
64
  <tr class="form-field">
78
  <input type="text" name="pwb_brand_image" id="pwb_brand_image" value="<?php echo esc_attr($term_value_image); ?>">
79
  <a href="#" id="pwb_brand_image_select" class="button"><?php esc_html_e('Select image', 'perfect-woocommerce-brands'); ?></a>
80
 
81
+ <?php $current_image = wp_get_attachment_image($term_value_image, $image_size_selected, false); ?>
82
  <?php if (!empty($current_image)) : ?>
83
  <div class="pwb_brand_image_selected">
84
  <span>
98
  <input type="text" name="pwb_brand_banner" id="pwb_brand_banner" value="<?php echo esc_html($term_value_banner); ?>">
99
  <a href="#" id="pwb_brand_banner_select" class="button"><?php esc_html_e('Select image', 'perfect-woocommerce-brands'); ?></a>
100
 
101
+ <?php $current_image = wp_get_attachment_image($term_value_banner, 'full', false); ?>
102
  <?php if (!empty($current_image)) : ?>
103
  <div class="pwb_brand_image_selected">
104
  <span>
perfect-woocommerce-brands.php CHANGED
@@ -4,13 +4,13 @@
4
  * Plugin Name: Perfect Brands for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
6
  * Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
7
- * Version: 1.8.9
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * Text Domain: perfect-woocommerce-brands
11
  * Domain Path: /lang
12
  * License: GPLv3
13
- * Perfect WooCommerce Brands version 1.8.9, Copyright (C) 2019 QuadLayers
14
  * Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation, either version 3 of the License, or
@@ -36,7 +36,7 @@ define('PWB_PLUGIN_FILE', __FILE__);
36
  define('PWB_PLUGIN_URL', plugins_url('', __FILE__));
37
  define('PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
38
  define('PWB_PLUGIN_BASENAME', plugin_basename(__FILE__));
39
- define('PWB_PLUGIN_VERSION', '1.8.9');
40
  define('PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands');
41
  define('PWB_PREFIX', 'pwb');
42
  define('PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post');
4
  * Plugin Name: Perfect Brands for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/perfect-woocommerce-brands/
6
  * Description: Perfect WooCommerce Brands allows you to show product brands in your WooCommerce based store.
7
+ * Version: 1.9.0
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * Text Domain: perfect-woocommerce-brands
11
  * Domain Path: /lang
12
  * License: GPLv3
13
+ * Perfect WooCommerce Brands version 1.9.0, Copyright (C) 2019 QuadLayers
14
  * Perfect WooCommerce Brands is free software: you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation, either version 3 of the License, or
36
  define('PWB_PLUGIN_URL', plugins_url('', __FILE__));
37
  define('PWB_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
38
  define('PWB_PLUGIN_BASENAME', plugin_basename(__FILE__));
39
+ define('PWB_PLUGIN_VERSION', '1.9.0');
40
  define('PWB_PLUGIN_NAME', 'Perfect WooCommerce Brands');
41
  define('PWB_PREFIX', 'pwb');
42
  define('PWB_REVIEW_URL', 'https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/?filter=5#new-post');
readme.txt CHANGED
@@ -5,9 +5,9 @@ Tags: woocommerce, woocommerce brands, woocommerce product, woocommerce manufact
5
  Requires at least: 4.7
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 1.8.9
9
  WC requires at least: 3.0
10
- WC tested up to: 5.4
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
@@ -90,6 +90,8 @@ You can also contribute [translating the plugin](https://translate.wordpress.org
90
 
91
 
92
  == Changelog ==
 
 
93
  = 1.8.9 =
94
  * Fix: php 8 compatibility
95
  = 1.8.8 =
5
  Requires at least: 4.7
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 1.9.0
9
  WC requires at least: 3.0
10
+ WC tested up to: 5.5
11
  License: GPLv3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
13
 
90
 
91
 
92
  == Changelog ==
93
+ = 1.9.0 =
94
+ * Fix: php 8 compatibility
95
  = 1.8.9 =
96
  * Fix: php 8 compatibility
97
  = 1.8.8 =