Skip to content

Commit ef39900

Browse files
refactor: UI changes for Import Settings (#1118)
1 parent 17214f9 commit ef39900

File tree

7 files changed

+146
-101
lines changed

7 files changed

+146
-101
lines changed

css/metabox-settings.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
.fz-input-group{flex-wrap: wrap;}
4343
.fz-input-group .fz-input-group-right{width: 100%; padding-left: 0; padding-top: 8px;}
4444
.fz-input-group .fz-input-group-right .btn.dropdown-toggle{width: 100%;}
45+
.fz-input-group .fz-insert-tags{width: auto; padding: 0;}
4546
.fz-form-wrap .form-block.form-block-two-column .fz-left{width: 100%; padding-right: 0; padding-bottom: 24px;}
4647
.fz-form-wrap .form-block.form-block-two-column .fz-right{width: 100%;}
4748
.fz-form-action .fz-left{width: 100%; padding-bottom: 16px;}

css/settings.css

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
.mx-320{
9494
max-width: 320px;
9595
}
96+
.position-relative{position: relative;}
97+
.position-absolute{position: absolute;}
98+
9699
.feedzy-wrap a:not(#fz-feedback-btn):focus{
97100
box-shadow: none;
98101
outline: 0;
@@ -140,12 +143,43 @@
140143
}
141144

142145
/* feedzy accordion style start */
146+
.feedzy-accordion-item :is(
147+
.feedzy-accordion__step-title,
148+
.btn,
149+
.cta-text a,
150+
.dashicons,
151+
.h1, .h2, .h3, .h4, .h5, .h6,
152+
.fz-panel-tab__header__label,
153+
.fz-tabs-menu ul li a,
154+
.fz-form-wrap :is(
155+
.form-label,
156+
.form-control,
157+
.form-control .tagify__tag-text,
158+
.chosen-container :is(
159+
.chosen-single,
160+
.chosen-choices
161+
),
162+
.chosen-container-multi .chosen-choices :is(
163+
li.search-choice,
164+
li.search-field input[type="text"]
165+
)
166+
),
167+
.fz-condition-control :is(
168+
.components-input-control__label,
169+
.components-select-control__input,
170+
input,
171+
button
172+
)
173+
) {
174+
font-size: 15px;
175+
}
143176
.feedzy-accordion-item{
144177
background: #ffffff;
145178
border: 1px solid #D9D9D9;
146179
}
147180
.feedzy-accordion-item__title{
148181
position: relative;
182+
padding: 8px 15px;
149183
}
150184
.fdz-upgrade-link{
151185
width: 100%;
@@ -169,34 +203,38 @@
169203
border: 0;
170204
background: transparent;
171205
outline: 0;
172-
padding: 30px 90px 30px 30px;
206+
padding: 10px;
173207
}
174208
.feedzy-accordion-item .feedzy-accordion__step-number{
175209
padding-bottom: 10px;
176210
}
177211
.feedzy-accordion-item .feedzy-accordion__step-title{
178212
color: #050505;
213+
line-height: 1.3;
179214
}
180215
.feedzy-accordion-item .feedzy-accordion__icon{
181216
position: absolute;
182217
right: 30px;
183218
top: 50%;
184-
margin-top: -24px;
185-
width: 48px;
186-
height: 48px;
219+
margin-top: -15px;
220+
width: 30px;
221+
height: 30px;
187222
background: #F0F2F5;
188223
border-radius: 24px;
189224
display: flex;
190225
align-items: center;
191226
justify-content: center;
192227
font-size: 20px;
193-
line-height: 1;
228+
line-height: 1.5;
194229
color: #757575;
195230
-webkit-transition: all 0.3s ease-in-out;
196231
-moz-transition: all 0.3s ease-in-out;
197232
-o-transition: all 0.3s ease-in-out;
198233
transition: all 0.3s ease-in-out;
199234
}
235+
.feedzy-accordion-item .feedzy-accordion__icon .dashicons{
236+
line-height: 1.5;
237+
}
200238
.feedzy-accordion-item .feedzy-accordion__icon.feedzy-accordion__icon--success{
201239
width: 24px;
202240
height: 24px;
@@ -235,6 +273,8 @@
235273
-moz-transition: all 0.3s ease-in-out;
236274
-o-transition: all 0.3s ease-in-out;
237275
transition: all 0.3s ease-in-out;
276+
font-size: 10px;
277+
margin-right: 5px;
238278
}
239279
.feedzy-accordion .feedzy-accordion-item .is-active .feedzy-accordion__step-number{
240280
opacity: 1;
@@ -299,6 +339,9 @@
299339
height: auto;
300340
min-height: 48px;
301341
padding-top: 2px;
342+
line-height: 0;
343+
display: flex;
344+
align-items: center;
302345
}
303346

304347
.fz-form-wrap .form-control:focus {
@@ -379,6 +422,16 @@ fieldset[disabled] .form-control {
379422
.fz-input-group .fz-input-group-right .dropdown-toggle{
380423
min-width: 150px;
381424
}
425+
.fz-input-group .fz-insert-tags{
426+
top: 7px;
427+
right: 10px;
428+
}
429+
.fz-input-group .fz-insert-tags button.dropdown-toggle {
430+
padding: 5px 20px;
431+
border: 2px solid;
432+
border-radius: 5px;
433+
min-width: auto;
434+
}
382435
.fz-input-group .help-text{
383436
padding-top: 8px;
384437
}
@@ -2643,6 +2696,9 @@ li.draggable-item .components-panel__body-toggle.components-button{
26432696
font-weight: 500;
26442697
color: #757575;
26452698
}
2699+
span.dashicons {
2700+
line-height: 1.3;
2701+
}
26462702
@-webkit-keyframes spin {
26472703
100% { -webkit-transform: rotate(360deg); }
26482704
}
@@ -2888,3 +2944,7 @@ button.feedzy-action-button {
28882944
gap: 1rem;
28892945
margin-bottom: 20px;
28902946
}
2947+
2948+
#feedzy-validate-feed .dashicons {
2949+
font-size: 20px;
2950+
}

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,12 @@ public function feedzy_import_feed_options() {
543543
$import_link_author[1] = 'checked';
544544
}
545545

546+
// default values when creating a import.
547+
if ( 'post-new.php' === $pagenow ) {
548+
$import_date = '[#item_date]';
549+
$import_featured_img = '[[{"value":"%5B%7B%22id%22%3A%22%22%2C%22tag%22%3A%22item_image%22%2C%22data%22%3A%7B%7D%7D%5D"}]]';
550+
}
551+
546552
// maybe more options are required from pro?
547553
$pro_options = apply_filters( 'feedzy_metabox_options', array(), $post->ID );
548554

0 commit comments

Comments
 (0)