Skip to content

Improved importer UI #1118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions css/metabox-settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
.fz-input-group{flex-wrap: wrap;}
.fz-input-group .fz-input-group-right{width: 100%; padding-left: 0; padding-top: 8px;}
.fz-input-group .fz-input-group-right .btn.dropdown-toggle{width: 100%;}
.fz-input-group .fz-insert-tags{width: auto; padding: 0;}
.fz-form-wrap .form-block.form-block-two-column .fz-left{width: 100%; padding-right: 0; padding-bottom: 24px;}
.fz-form-wrap .form-block.form-block-two-column .fz-right{width: 100%;}
.fz-form-action .fz-left{width: 100%; padding-bottom: 16px;}
Expand Down
48 changes: 43 additions & 5 deletions css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
.mx-320{
max-width: 320px;
}
.position-relative{position: relative;}
.position-absolute{position: absolute;}

.feedzy-wrap a:not(#fz-feedback-btn):focus{
box-shadow: none;
outline: 0;
Expand All @@ -110,6 +113,9 @@
color: #ffffff;
vertical-align: super;
}
.feedzy-wrap .feedzy-accordion-item .pro-label{
font-size: 0.55rem !important;
}

.post-type-feedzy_imports:not(.edit-post) .wrap div#side-sortables{
display: none;
Expand Down Expand Up @@ -140,12 +146,17 @@
}

/* feedzy accordion style start */
.feedzy-accordion-item,
.feedzy-accordion-item *{
font-size: 15px !important;
}
.feedzy-accordion-item{
background: #ffffff;
border: 1px solid #D9D9D9;
}
.feedzy-accordion-item__title{
position: relative;
padding: 8px 15px;
}
.fdz-upgrade-link{
width: 100%;
Expand All @@ -169,34 +180,38 @@
border: 0;
background: transparent;
outline: 0;
padding: 30px 90px 30px 30px;
padding: 10px;
}
.feedzy-accordion-item .feedzy-accordion__step-number{
padding-bottom: 10px;
}
.feedzy-accordion-item .feedzy-accordion__step-title{
color: #050505;
line-height: 1.3;
}
.feedzy-accordion-item .feedzy-accordion__icon{
position: absolute;
right: 30px;
top: 50%;
margin-top: -24px;
width: 48px;
height: 48px;
margin-top: -15px;
width: 30px;
height: 30px;
background: #F0F2F5;
border-radius: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
line-height: 1;
line-height: 1.5;
color: #757575;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.feedzy-accordion-item .feedzy-accordion__icon .dashicons{
line-height: 1.5;
}
.feedzy-accordion-item .feedzy-accordion__icon.feedzy-accordion__icon--success{
width: 24px;
height: 24px;
Expand Down Expand Up @@ -235,6 +250,8 @@
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
font-size: 10px !important;
margin-right: 5px;
}
.feedzy-accordion .feedzy-accordion-item .is-active .feedzy-accordion__step-number{
opacity: 1;
Expand Down Expand Up @@ -297,6 +314,7 @@
height: auto;
min-height: 48px;
padding-top: 2px;
line-height: 0;
}

.fz-form-wrap .form-control:focus {
Expand Down Expand Up @@ -377,6 +395,16 @@ fieldset[disabled] .form-control {
.fz-input-group .fz-input-group-right .dropdown-toggle{
min-width: 150px;
}
.fz-input-group .fz-insert-tags{
top: 7px;
right: 10px;
}
.fz-input-group .fz-insert-tags button.dropdown-toggle {
padding: 5px 20px;
border: 2px solid;
border-radius: 5px;
min-width: auto;
}
.fz-input-group .help-text{
padding-top: 8px;
}
Expand Down Expand Up @@ -946,6 +974,13 @@ input.fz-switch-toggle[type=checkbox]:checked:before{
.tag-list .tagify{
border: 0;
}
.fz-form-wrap .tagify>.tagify__tag{
margin: 5px 7px 7px;
}
.fz-form-wrap .tagify .tagify__tag .tagify__input,
.fz-form-wrap .tagify .tagify__input{
padding: 5px;
}
.fz-form-wrap .tagify__tag{
position: relative;
margin-left: 2px;
Expand Down Expand Up @@ -2559,6 +2594,9 @@ li.draggable-item .components-panel__body-toggle.components-button{
border-bottom: 0;
padding: 24px 0 0;
}
span.dashicons {
line-height: 1.3;
}
@-webkit-keyframes spin {
100% { -webkit-transform: rotate(360deg); }
}
Expand Down
6 changes: 6 additions & 0 deletions includes/admin/feedzy-rss-feeds-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ public function feedzy_import_feed_options() {
$import_link_author[1] = 'checked';
}

// default values when creating a import.
if ( 'post-new.php' === $pagenow ) {
$import_date = '[#item_date]';
$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"}]]';
}

// maybe more options are required from pro?
$pro_options = apply_filters( 'feedzy_metabox_options', array(), $post->ID );

Expand Down
Loading
Loading