filesystem();
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- This is not a form
if ( isset($_GET['noheader']) ) {
require_once(ABSPATH . 'wp-admin/admin-header.php');
}
$this->loadView('custom/part-othermedia-top');
?>
view->headings as $hname => $heading):
$isSortable = $heading['sortable'];
?>
getDisplayHeading($heading); ?>
view->items) == 0) : ?>
hasSearch)
{
echo esc_html__('Your search query didn\'t result in any images. ', 'shortpixel-image-optimiser');
}
elseif (true === $view->hasFilter )
{
printf(esc_html__('Filter didn\'t yield any results. %s Show all Items %s ', 'shortpixel-image-optimiser'), "",' ');
}
else
{
$folder_url = esc_url(add_query_arg('part', 'folders', $this->url));
printf(esc_html__('No images available. Go to %s Folders %s to configure additional folders to be optimized.','shortpixel-image-optimiser'), '', ' ');
} ?>
view->folders;
foreach($this->view->items as $item):
?>
'>
getFileSize();
$display_date = $this->getDisplayDate($item);
$folder_id = $item->get('folder_id');
$rowActions = $this->getRowActions($item);
$folder = isset($folders[$folder_id]) ? $folders[$folder_id] : false;
$media_type = ($folder && $folder->get('is_nextgen')) ? __('Nextgen', 'shortpixel-image-optimiser') : __('Custom', 'shortpixel_image_optimiser');
$img_url = $fs->pathToUrl($item);
$is_heavy = ($filesize >= 500000 && $filesize > 0);
$item_class = '';
if (count($checkBoxActions) > 0)
$item_class = ' class="' . implode(' ', $checkBoxActions) . '" ';
?>
/>
style="background-image:url('plugin_url('res/img/heavy-image@2x.png')) : esc_url($img_url)) ?>')">
getFileName()) ?>
#get('id')); ?>
$action):
$classes = ''; // ($action['display'] == 'button') ? " button-smaller button-primary $actionName " : "$actionName";
$link = ($action['type'] == 'js') ? 'javascript:' . $action['function'] : $action['function'];
$newtab = ($actionName == 'extendquota' || $actionName == 'view') ? 'target="_blank"' : '';
if ($i > 0)
echo "|";
?>
class="">
getFileDir()); ?>
doActionColumn($item); ?>
loadView('snippets/part-comparer'); ?>