$cloud_summary ) : ?>


__('Image Optimization', 'litespeed-cache'), 'page_optm' => __('Page Optimization', 'litespeed-cache'), 'cdn' => __('CDN Bandwidth', 'litespeed-cache'), 'lqip' => __('Low Quality Image Placeholder', 'litespeed-cache'), ); foreach ( $cat_list as $svc => $title ) : $finished_percentage = 0; $total_used = $used = $quota = $pag_used = $pag_total = '-'; $used = $quota = $pag_used = $pag_total = '-'; $pag_width = 0; if ( ! empty( $cloud_summary[ 'usage.' . $svc ] ) ) { $finished_percentage = floor( $cloud_summary[ 'usage.' . $svc ][ 'used' ] * 100 / $cloud_summary[ 'usage.' . $svc ][ 'quota' ] ); $used = $cloud_summary[ 'usage.' . $svc ][ 'used' ]; $quota = $cloud_summary[ 'usage.' . $svc ][ 'quota' ]; $pag_used = ! empty( $cloud_summary[ 'usage.' . $svc ][ 'pag_used' ] ) ? $cloud_summary[ 'usage.' . $svc ][ 'pag_used' ] : 0; $pag_bal = ! empty( $cloud_summary[ 'usage.' . $svc ][ 'pag_bal' ] ) ? $cloud_summary[ 'usage.' . $svc ][ 'pag_bal' ] : 0; $pag_total = $pag_used + $pag_bal; if ( $pag_total ) { $pag_width = round( $pag_used / $pag_total * 100 ) . '%'; } if ( $svc == 'cdn' ) { $used = Utility::real_size( $used * 1024 * 1024 ); $quota = Utility::real_size( $quota * 1024 * 1024 ); $pag_used = Utility::real_size( $pag_used * 1024 * 1024 ); $pag_total = Utility::real_size( $pag_total * 1024 * 1024 ); } } $percentage_bg = 'success'; if( $finished_percentage > 95 ){ $percentage_bg = 'danger'; } elseif ( $finished_percentage > 85 ){ $percentage_bg = 'warning'; } ?>

of

0 ) { ?>

:

: / ∞