Skip to content

Commit

Permalink
Merge branch 'development' into fix/featured-image-override-by-gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Mar 21, 2024
2 parents 349ef77 + 3c3c3b3 commit 6aabb39
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 66 deletions.
16 changes: 8 additions & 8 deletions css/metabox-settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
.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-form-wrap .form-block.form-block-two-column .left{width: 100%; padding-right: 0; padding-bottom: 24px;}
.fz-form-wrap .form-block.form-block-two-column .right{width: 100%;}
.fz-form-action .left{width: 100%; padding-bottom: 16px;}
.fz-form-action .left .btn{width: 100%; display: block; text-align: center;}
.fz-form-action .right{width: 100%; flex-direction: column;}
.fz-form-action .right .btn + .btn{margin-left: 0; margin-top: 8px;}
.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;}
.fz-form-action .fz-left .btn{width: 100%; display: block; text-align: center;}
.fz-form-action .fz-right{width: 100%; flex-direction: column;}
.fz-form-action .fz-right .btn + .btn{margin-left: 0; margin-top: 8px;}
.fz-form-row .fz-form-col-6, .fz-form-row .fz-form-col-4, .fz-form-row .fz-form-col-8{width: 100%;}
.fz-document-list > ul > li{width: 100%;}
.fz-help-improve-box .left{width: 100%;}
.fz-help-improve-box .right{width: 100%;}
.fz-help-improve-box .fz-left{width: 100%;}
.fz-help-improve-box .fz-right{width: 100%;}
.fz-tabs-menu ul {flex-wrap: wrap;}
.fz-tabs-menu ul li{flex-shrink: 0; width: 50%;}
.fz-tabs-menu ul li a{padding: 0px; border: 1px solid transparent;}
Expand Down
19 changes: 10 additions & 9 deletions css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,15 @@ fieldset[disabled] .form-control {
display: flex;
flex-wrap: wrap;
}
.fz-form-wrap .form-block.form-block-two-column .left{
.fz-form-wrap .form-block.form-block-two-column .fz-left{
width: 285px;
padding-right: 24px;
}
.fz-form-wrap .form-block.form-block-two-column .right{
.fz-form-wrap .form-block.form-block-two-column .fz-right{
width: calc(100% - 285px);
text-align: left;
}
.fz-form-wrap .form-block.form-block-two-column .right .upgrade-alert{
.fz-form-wrap .form-block.form-block-two-column .fz-right .upgrade-alert{
margin-top: 20px;
}
.fz-form-wrap .form-block .only-pro-content{
Expand Down Expand Up @@ -666,14 +667,14 @@ input.fz-switch-toggle[type=checkbox]:checked:before{
flex-wrap: wrap;
justify-content: space-between;
}
.fz-form-action .right{
.fz-form-action .fz-right{
display: flex;
flex-wrap: wrap;
}
.fz-form-action .right .btn{
.fz-form-action .fz-right .btn{
margin-bottom: 8px;
}
.fz-form-action .right .btn + .btn{
.fz-form-action .fz-right .btn + .btn{
margin-left: 16px;
}

Expand Down Expand Up @@ -1310,18 +1311,18 @@ input.fz-switch-toggle[type=checkbox]:checked:before{
flex-direction: row-reverse;
border: 1px solid #D9D9D9;
}
.fz-help-improve-box .left{
.fz-help-improve-box .fz-left{
width: calc(100% - 320px);
padding: 30px;
}
.fz-help-improve-box .left p{
.fz-help-improve-box .fz-left p{
font-size: 16px;
line-height: 24px;
color: #050505;
margin-bottom: 24px;
max-width: 710px;
}
.fz-help-improve-box .right{
.fz-help-improve-box .fz-right{
width: 320px;
padding: 18px;
background-color: #F5F7F9;
Expand Down
17 changes: 12 additions & 5 deletions includes/admin/feedzy-rss-feeds-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -1187,13 +1187,20 @@ public function run_cron( $max = 100 ) {
'post_status' => 'publish',
'numberposts' => 99,
);

$feedzy_imports = get_posts( $args );
foreach ( $feedzy_imports as $job ) {
$result = $this->run_job( $job, $max );
if ( empty( $result ) ) {
$this->run_job( $job, $max );
try {
$result = $this->run_job( $job, $max );
if ( empty( $result ) ) {
$this->run_job( $job, $max );
}
do_action( 'feedzy_run_cron_extra', $job );
} catch ( Exception $e ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
error_log( '[Feedzy Run Cron][Post title: ' . ( ! empty( $job->post_title ) ? $job->post_title : '' ) . '] Error: ' . $e->getMessage() );
}
}
do_action( 'feedzy_run_cron_extra', $job );
}
}

Expand Down Expand Up @@ -1775,7 +1782,7 @@ function( $term ) {
}

// Fetch image from graby.
if ( empty( $image_source_url ) && ( wp_doing_cron() || defined( 'FEEDZY_PRO_FETCH_ITEM_IMG_URL' ) ) ) {
if ( empty( $image_source_url ) && ( wp_doing_cron() && defined( 'FEEDZY_PRO_FETCH_ITEM_IMG_URL' ) ) ) {
// if license does not exist, use the site url
// this should obviously never happen unless on dev instances.
$license = apply_filters( 'product_feedzy_license_key', sprintf( 'n/a - %s', get_site_url() ) );
Expand Down
4 changes: 2 additions & 2 deletions includes/layouts/feedzy-improve.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div id="fz-feedback-modal"></div>
<div class="fz-help-improve-wrap">
<div class="fz-help-improve-box">
<div class="right">
<div class="fz-right">
<img src="<?php echo esc_url( FEEDZY_ABSURL . 'img/improve-feedzy.png' ); ?>" alt="">
</div>
<div class="left">
<div class="fz-left">
<h3 class="h3 pb-16">Answer a few questions to help us improve Feedzy</h3>
<p>We're always looking for suggestions to further improve Feedzy.
<?php if ( ! feedzy_is_pro() ) { ?>
Expand Down
Loading

0 comments on commit 6aabb39

Please sign in to comment.