diff --git a/assets/css/admin-bar.css b/assets/css/admin-bar.css index 22c460d7..f3a6d842 100755 --- a/assets/css/admin-bar.css +++ b/assets/css/admin-bar.css @@ -164,12 +164,12 @@ #wp-admin-bar-imagify-profile .imagify-upsell-admin-bar { position:relative ; background: #c51161; - margin: 10px -13px -10px -13px; - padding: 20px; + margin: 10px -15px -13px -15px; + padding: 16px; } #wp-admin-bar-imagify-profile .imagify-upsell-admin-bar p { - color: #fff; + color: #ebebeb; } #wp-admin-bar-imagify-profile a.imagify-upsell-admin-bar-button { diff --git a/assets/css/pricing-modal.css b/assets/css/pricing-modal.css index d5333937..c7072e9b 100755 --- a/assets/css/pricing-modal.css +++ b/assets/css/pricing-modal.css @@ -427,6 +427,7 @@ div.imagify-col-price { .imagify-offer-monthly .imagify-flex-table .imagify-price-block, .imagify-offer-monthlies .imagify-price-block { padding-top: 0; + max-width: 39%; } .imagify-flex-table .imagify-price-complement { padding-right: 0; @@ -1502,6 +1503,6 @@ input:checked ~ .imagify-badge-container .imagify-badge { background-color: #97c45e; color: white; border-color: #97c45e; - opacity: 1; + opacity: 1; } -/** End Toggle Switch **/ \ No newline at end of file +/** End Toggle Switch **/ diff --git a/inc/classes/class-imagify-files-stats.php b/inc/classes/class-imagify-files-stats.php index 8cc15554..6d8f76cd 100644 --- a/inc/classes/class-imagify-files-stats.php +++ b/inc/classes/class-imagify-files-stats.php @@ -405,7 +405,8 @@ public static function get_overall_original_size() { } $table_name = $files_db->get_table_name(); - $size = round( $wpdb->get_var( "SELECT SUM( original_size ) FROM $table_name" ) ); // WPCS: unprepared SQL ok. + $sql = $wpdb->get_var( "SELECT SUM( original_size ) FROM $table_name" ); // WPCS: unprepared SQL ok. + $size = is_null( $sql ) ? 0 : round( $sql ); return $size; } @@ -435,7 +436,8 @@ public static function calculate_average_size_per_month() { } $table_name = $files_db->get_table_name(); - $average = round( $wpdb->get_var( "SELECT AVG( size ) AS average_size_per_month FROM ( SELECT SUM( original_size ) AS size FROM $table_name GROUP BY YEAR( file_date ), MONTH( file_date ) ) AS size_per_month" ) ); // WPCS: unprepared SQL ok. + $sql = $wpdb->get_var( "SELECT AVG( size ) AS average_size_per_month FROM ( SELECT SUM( original_size ) AS size FROM $table_name GROUP BY YEAR( file_date ), MONTH( file_date ) ) AS size_per_month" ); // WPCS: unprepared SQL ok. + $average = is_null( $sql ) ? 0 : round( $sql ); return $average; }