Skip to content

Commit b0ed40f

Browse files
feat: improve importer UI
1 parent b45131c commit b0ed40f

File tree

7 files changed

+119
-105
lines changed

7 files changed

+119
-105
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: 37 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,17 @@
140143
}
141144

142145
/* feedzy accordion style start */
146+
.feedzy-accordion-item,
147+
.feedzy-accordion-item *{
148+
font-size: 15px !important;
149+
}
143150
.feedzy-accordion-item{
144151
background: #ffffff;
145152
border: 1px solid #D9D9D9;
146153
}
147154
.feedzy-accordion-item__title{
148155
position: relative;
156+
padding: 8px 15px;
149157
}
150158
.fdz-upgrade-link{
151159
width: 100%;
@@ -169,34 +177,38 @@
169177
border: 0;
170178
background: transparent;
171179
outline: 0;
172-
padding: 30px 90px 30px 30px;
180+
padding: 10px;
173181
}
174182
.feedzy-accordion-item .feedzy-accordion__step-number{
175183
padding-bottom: 10px;
176184
}
177185
.feedzy-accordion-item .feedzy-accordion__step-title{
178186
color: #050505;
187+
line-height: 1.3;
179188
}
180189
.feedzy-accordion-item .feedzy-accordion__icon{
181190
position: absolute;
182191
right: 30px;
183192
top: 50%;
184-
margin-top: -24px;
185-
width: 48px;
186-
height: 48px;
193+
margin-top: -15px;
194+
width: 30px;
195+
height: 30px;
187196
background: #F0F2F5;
188197
border-radius: 24px;
189198
display: flex;
190199
align-items: center;
191200
justify-content: center;
192201
font-size: 20px;
193-
line-height: 1;
202+
line-height: 1.5;
194203
color: #757575;
195204
-webkit-transition: all 0.3s ease-in-out;
196205
-moz-transition: all 0.3s ease-in-out;
197206
-o-transition: all 0.3s ease-in-out;
198207
transition: all 0.3s ease-in-out;
199208
}
209+
.feedzy-accordion-item .feedzy-accordion__icon .dashicons{
210+
line-height: 1.5;
211+
}
200212
.feedzy-accordion-item .feedzy-accordion__icon.feedzy-accordion__icon--success{
201213
width: 24px;
202214
height: 24px;
@@ -235,6 +247,8 @@
235247
-moz-transition: all 0.3s ease-in-out;
236248
-o-transition: all 0.3s ease-in-out;
237249
transition: all 0.3s ease-in-out;
250+
font-size: 10px !important;
251+
margin-right: 5px;
238252
}
239253
.feedzy-accordion .feedzy-accordion-item .is-active .feedzy-accordion__step-number{
240254
opacity: 1;
@@ -297,6 +311,7 @@
297311
height: auto;
298312
min-height: 48px;
299313
padding-top: 2px;
314+
line-height: 0;
300315
}
301316

302317
.fz-form-wrap .form-control:focus {
@@ -377,6 +392,16 @@ fieldset[disabled] .form-control {
377392
.fz-input-group .fz-input-group-right .dropdown-toggle{
378393
min-width: 150px;
379394
}
395+
.fz-input-group .fz-insert-tags{
396+
top: 7px;
397+
right: 10px;
398+
}
399+
.fz-input-group .fz-insert-tags button.dropdown-toggle {
400+
padding: 5px 20px;
401+
border: 2px solid;
402+
border-radius: 5px;
403+
min-width: auto;
404+
}
380405
.fz-input-group .help-text{
381406
padding-top: 8px;
382407
}
@@ -946,6 +971,13 @@ input.fz-switch-toggle[type=checkbox]:checked:before{
946971
.tag-list .tagify{
947972
border: 0;
948973
}
974+
.fz-form-wrap .tagify>.tagify__tag{
975+
margin: 5px 7px 7px;
976+
}
977+
.fz-form-wrap .tagify .tagify__tag .tagify__input,
978+
.fz-form-wrap .tagify .tagify__input{
979+
padding: 5px;
980+
}
949981
.fz-form-wrap .tagify__tag{
950982
position: relative;
951983
margin-left: 2px;

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

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

439+
// default values when creating a import.
440+
if ( 'post-new.php' === $pagenow ) {
441+
$import_date = '[#item_date]';
442+
$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"}]]';
443+
}
444+
439445
// maybe more options are required from pro?
440446
$pro_options = apply_filters( 'feedzy_metabox_options', array(), $post->ID );
441447

0 commit comments

Comments
 (0)