-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathclass-one-click-restoration.php
More file actions
56 lines (48 loc) · 1.6 KB
/
class-one-click-restoration.php
File metadata and controls
56 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* One_Click_Restoration class.
*
* @link https://www.boldgrid.com
* @since 1.13.0
*
* @package Boldgrid\Backup
* @subpackage Boldgrid\Backup\Card
* @copyright BoldGrid
* @author BoldGrid <support@boldgrid.com>
*/
namespace Boldgrid\Backup\Admin\Card;
/**
* Class: One_Click_Restoration.
*
* This class is responsible for rendering the "One Click Restoration" card.
* on this plugin's Premium Features Page.
*
* @since 1.13.0
*/
class One_Click_Restoration extends \Boldgrid\Library\Library\Ui\Card {
/**
* Init.
*
* @since 1.13.0
*/
public function init() {
$this->id = 'bgbkup_one_click_restoration';
$this->title = esc_html__( 'One Click File Restorations', 'boldgrid-backup' );
$this->icon = '<span class="dashicons dashicons-undo"></span>';
$this->footer = '
<p>' .
esc_html__(
'Restore a single file within the backup browser. Helpful when modifying individual files.',
'boldgrid-backup'
) .
'</p>';
$url = 'https://www.boldgrid.com/support/total-upkeep/individual-file-restorations/?source=one-click-restore';
$video = 'https://www.youtube.com/embed/r2VCQ-9fQP8?controls=1&autoplay=1&modestbranding=1&width=560&height=315&KeepThis=true&TB_iframe=true';
$this->links = '
<a class="video button thickbox" href=' . esc_url( $video ) . '" data-id="' . $this->id . '" title="Restore Files with One Click"><span class="dashicons dashicons-video-alt3"></span>' .
esc_html__( 'Learn More', 'boldgrid-backup' ) .
'<a target="_blank" href="' . esc_url( $url ) . '">' .
esc_html__( 'Setup Guide', 'boldgrid-backup' ) . '
</a>';
}
}