File "tasks-status.php"
Full Path: /home/tekvhqgl/public_html/wp-content/plugins/rt-demo-importer/unyson/framework/extensions/backups/views/tasks-status.php
File size: 1.25 KB
MIME-type: text/x-php
Charset: utf-8
<?php if (!defined('FW')) die('Forbidden');
/**
* @var null|FW_Ext_Backups_Task_Collection $active_task_collection
* @var null|FW_Ext_Backups_Task $executing_task
* @var null|FW_Ext_Backups_Task $pending_tasks
*/
/**
* @var FW_Extension_Backups $backups
*/
$backups = fw_ext('backups');
?>
<?php if ($active_task_collection): ?>
<img src="<?php echo get_site_url() ?>/wp-admin/images/spinner.gif" alt="Loading">
<em class="fw-text-muted"><?php
if ($executing_task) {
echo esc_html($backups->tasks()->get_task_type_title(
$executing_task->get_type(),
$executing_task->get_args(),
$executing_task->get_result()
));
} elseif ($pending_tasks) {
echo esc_html($backups->tasks()->get_task_type_title(
$pending_tasks->get_type(),
$pending_tasks->get_args(),
$pending_tasks->get_result()
));
} else {
esc_html_e('Unknown task');
}
?></em>
<?php else: ?>
<em class="fw-text-muted" style="color: transparent;"><?php esc_html_e('Nothing running in background', 'fw'); ?></em>
<?php endif; ?>
<?php if ($active_task_collection && $active_task_collection->is_cancelable()): ?>
<a href="#" onclick="fwEvents.trigger('fw:ext:backups:cancel'); return false;"><em><?php
esc_html_e('Abort', 'fw');
?></em></a>
<?php endif; ?>