first commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Activity Log integration upgrade notice template
|
||||
*
|
||||
* @package Duplicator
|
||||
* @copyright (c) 2022, Snap Creek LLC
|
||||
*/
|
||||
|
||||
defined("ABSPATH") or die("");
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var \Duplicator\Core\Controllers\ControllersManager $ctrlMng
|
||||
* @var \Duplicator\Core\Views\TplMng $tplMng
|
||||
* @var array<string, mixed> $tplData
|
||||
*/
|
||||
?>
|
||||
<div>
|
||||
<p><b><?php esc_html_e('Activity Log Integration Update', 'duplicator-pro'); ?></b></p>
|
||||
<p>
|
||||
<?php esc_html_e('Failed backups are no longer shown in the main backup list.', 'duplicator-pro'); ?>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
_n(
|
||||
'%d failed backup has been moved to the Activity Log.',
|
||||
'%d failed backups have been moved to the Activity Log.',
|
||||
$tplData['count'],
|
||||
'duplicator-pro'
|
||||
),
|
||||
$tplData['count']
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
esc_html__(
|
||||
'You can view them in the %1$sActivity Log%2$s.',
|
||||
'duplicator-pro'
|
||||
),
|
||||
'<a href="' . esc_url($tplData['activityLogUrl']) . '">',
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Failed backups notice template
|
||||
*/
|
||||
|
||||
defined("ABSPATH") or die("");
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var \Duplicator\Core\Controllers\ControllersManager $ctrlMng
|
||||
* @var \Duplicator\Core\Views\TplMng $tplMng
|
||||
* @var array<string, mixed> $tplData
|
||||
*/
|
||||
?>
|
||||
<img src="<?php echo esc_url(plugins_url('duplicator-pro/assets/img/warning.png')); ?>"
|
||||
style="float:left; padding:0 10px 0 5px"
|
||||
alt="<?php esc_attr_e('Warning', 'duplicator-pro'); ?>" />
|
||||
<div style="margin-left: 70px;">
|
||||
<p><b><?php esc_html_e('Failed Backups Detected', 'duplicator-pro'); ?></b></p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
esc_html__(
|
||||
'One or more backups have failed. To view failure details, check the %1$sActivity Log%2$s.',
|
||||
'duplicator-pro'
|
||||
),
|
||||
'<a href="' . esc_url($tplData['activityLogUrl']) . '">',
|
||||
'</a>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Duplicator Backup row in table Backups list
|
||||
*
|
||||
* @package Duplicator
|
||||
* @copyright (c) 2022, Snap Creek LLC
|
||||
*/
|
||||
|
||||
defined("ABSPATH") or die("");
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var \Duplicator\Core\Controllers\ControllersManager $ctrlMng
|
||||
* @var \Duplicator\Core\Views\TplMng $tplMng
|
||||
* @var array<string, mixed> $tplData
|
||||
*/
|
||||
?>
|
||||
<?php echo esc_html(
|
||||
sprintf(
|
||||
_x(
|
||||
'There are currently (%1$s) orphaned Backup files taking up %2$s of space.
|
||||
These Backup files are no longer visible in the backups list below and are safe to remove.',
|
||||
'%1$s is the number of orphaned packages, %2$s is the total size of orphaned packages',
|
||||
'duplicator-pro'
|
||||
),
|
||||
$tplData['count'],
|
||||
$tplData['size']
|
||||
)
|
||||
); ?>
|
||||
<br>
|
||||
<?php esc_html_e(
|
||||
'Go to: Tools > General > Information > Stored Data > look for the [Delete Backups Orphans] button for more details.',
|
||||
'duplicator-pro'
|
||||
); ?>
|
||||
<br>
|
||||
<a href="<?php echo esc_url($tplData['url']); ?>">
|
||||
<?php esc_html_e('Take me there now!', 'duplicator-pro'); ?>
|
||||
</a>
|
||||
Reference in New Issue
Block a user