view->current_item; $folder_id = $item->get('id'); $type_display = ($item->get('is_nextgen') ) ? __('Nextgen', 'shortpixel-image-optimiser') : __('Custom Media', 'shortpixel-image-optimiser'); $stat = $item->getStats(); $fullstatus = esc_html__("Optimized",'shortpixel-image-optimiser') . ": " . $stat['optimized'] . "\n" . "" . esc_html__("Unoptimized",'shortpixel-image-optimiser') . ": " . $stat['waiting'] . "\n" ; //$fullstatus .= ($item->get('is_nextgen') ) ? __('Nextgen', 'shortpixel-image-optimiser') : ""; /* if ($stat['total'] == 0) { $optimize_status = __("Empty",'shortpixel-image-optimiser'); $fullstatus = ''; } elseif ($stat['total'] == $stat['optimized']) { $optimize_status = __("Optimized",'shortpixel-image-optimiser'); } elseif ($stat['optimized'] > 0) { $optimize_status = __("Pending",'shortpixel-image-optimiser'); } else { $optimize_status = __("Waiting",'shortpixel-image-optimiser'); } */ // $action = __("Stop monitoring",'shortpixel-image-optimiser'); $err = ''; // unused since failed is gone. if (! $item->exists() && ! $err) $err = __('Directory does not exist', 'shortpixel-image-optimiser'); if ($item->get('is_nextgen') && $view->settings->includeNextGen == 1) $action = false; $refreshUrl = add_query_arg(array('sp-action' => 'action_refreshfolder', 'folder_id' => $folder_id, 'part' => 'adv-settings'), $this->url); // has url $rowActions = $this->getRowActions($item); ?>