|
|
$column_display_name): ?>
|
never
|
never
|
baseUrl); ?>
array(
'url' => ( ! $item['processing'] and ! $item['executing'] ) ? esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'edit'), $this->baseUrl)) : '',
'title' => __('Edit Template', 'wp_all_import_plugin'),
'class' => 'edit'
),
'import_settings' => array(
'url' => ( ! $item['processing'] and ! $item['executing'] ) ? esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) : '',
'title' => __('Settings', 'wp_all_import_plugin'),
'class' => 'edit'
),
'delete' => array(
'url' => esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'delete'), $this->baseUrl)),
'title' => __('Delete', 'wp_all_import_plugin'),
'class' => 'delete'
),
);
$import_actions = apply_filters('pmxi_import_actions', $import_actions, $item );
$ai = 1;
foreach ($import_actions as $key => $action) {
switch ($key) {
default:
?>
|
|
= 10) echo 'style="color:red;"';?>>
';
printf('Records Processed %s', $item['imported']);
if ($item['last_activity'] != '0000-00-00 00:00:00'){
$diff = ceil((time() - strtotime($item['last_activity']))/60);
?>
= 10) echo 'style="color:red;"';?>>
= 10) echo 'style="color:red;"';?>>
';
_e('Import canceled', 'wp_all_import_plugin');
}
elseif($item['failed'] and $item['failed_on'] != '0000-00-00 00:00:00'){
printf(__('Import Attempt at %s', 'wp_all_import_plugin'), get_date_from_gmt($item['failed_on'], "m/d/Y g:i a")); echo ' ';
_e('Import failed, please check logs', 'wp_all_import_plugin');
}
else{
if (!empty($item['options']['custom_type'])){
$custom_type = get_post_type_object( $item['options']['custom_type'] );
$cpt_name = ( ! empty($custom_type)) ? $custom_type->label : '';
}
else{
$cpt_name = '';
}
printf(__('Last run: %s', 'wp_all_import_plugin'), ($item['registered_on'] == '0000-00-00 00:00:00') ? __('never', 'wp_all_import_plugin') : get_date_from_gmt($item['registered_on'], "m/d/Y g:i a")); echo ' ';
printf(__('%d %s created', 'wp_all_import_plugin'), esc_attr($item['created']), esc_attr($cpt_name)); echo ' ';
printf(__('%d updated, %d skipped, %d deleted'), esc_attr($item['updated']), esc_attr($item['skipped']), esc_attr($item['deleted']));
//printf(__('%d records', 'wp_all_import_plugin'), $item['post_count']);
}
if ($item['settings_update_on'] != '0000-00-00 00:00:00' and $item['last_activity'] != '0000-00-00 00:00:00' and strtotime($item['settings_update_on']) > strtotime($item['last_activity'])){
echo ' ';
?>
|
">?
|
|
|