Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor/views/pages/tools/settings-log.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Settings log page
4
+
*
5
+
* @package Tutor\Views
6
+
* @subpackage Tutor\Tools
7
+
* @author Themeum <support@themeum.com>
8
+
* @link https://themeum.com
9
+
* @since 3.6.0
10
+
*/
11
+
12
+
?>
13
+
<div class="tutor-option-main-title">
14
+
<div class="tutor-fs-4 tutor-fw-medium tutor-color-black">
15
+
<?php esc_html_e( 'Settings Log', 'tutor' ); ?>
16
+
</div>
17
+
</div>
18
+
19
+
<div class="tutor-option-single-item tutor-mb-32">
20
+
<div class="item-wrapper">
21
+
<div class="tutor-option-field-row">
22
+
<div class="tutor-option-field-label">
23
+
<div class="label tutor-fs-6 tutor-color-black"><?php esc_html_e( 'Current Settings', 'tutor' ); ?></div>
24
+
<div class="desc tutor-fs-8 tutor-color-subdued">
25
+
<span class="tutor-fw-medium"><?php esc_html_e( 'Last Update', 'tutor' ); ?>: </span> <?php echo esc_html( get_option( 'tutor_option_update_time' ) ); ?>
26
+
</div>
27
+
</div>
28
+
<div class="tutor-option-field-input">
29
+
<button class="tutor-btn tutor-btn-primary tutor-btn-sm" id="tutor_export_settings"><?php esc_html_e( 'Export Settings', 'tutor' ); ?></button>
30
+
</div>
31
+
</div>
32
+
</div>
33
+
</div>
34
+
35
+
<div class="tutor-option-single-item tutor-mb-32 item-variation-table settings-history">
36
+
<div class="tutor-option-group-title tutor-mb-16">
37
+
<div class="tutor-fs-6 tutor-color-muted"><?php esc_attr_e( 'Logs', 'tutor' ); ?></div>
38
+
</div>
39
+
<div class="item-wrapper history_data">
40
+
<div class="tutor-option-field-row">
41
+
<div class="tutor-option-field-label">
42
+
<?php esc_attr_e( 'Date', 'tutor' ); ?>
43
+
</div>
44
+
</div>
45
+
<?php
46
+
$tutor_options = get_option( 'tutor_settings_log', array() );
47
+
if ( $tutor_options ) :
48
+
?>
49
+
<?php
50
+
foreach ( $tutor_options as $key => $option_data ) :
51
+
$datetype_class = ' label-default';
52
+
if ( 'saved' === $option_data['datatype'] ) {
53
+
$datetype_class = ' label-primary';
54
+
} if ( 'Imported' === $option_data['datatype'] ) {
55
+
$datetype_class = ' label-success';
56
+
}
57
+
?>
58
+
<div class="tutor-option-field-row">
59
+
<div class="tutor-option-field-label">
60
+
<div class="tutor-fs-7 tutor-fw-medium">
61
+
<?php echo esc_html( $option_data['history_date'] ); ?>
62
+
<span class="tutor-badge-label tutor-ml-16<?php echo esc_attr( $datetype_class ); ?>"> <?php echo esc_html( ucwords( $option_data['datatype'] ) ); ?></span>
63
+
</div>
64
+
</div>
65
+
<div class="tutor-option-field-input">
66
+
<button class="tutor-btn tutor-btn-outline-primary tutor-btn-sm apply_settings" data-tutor-modal-target="tutor-modal-bulk-action" data-btntext="<?php esc_attr_e( 'Yes, Restore Settings', 'tutor' ); ?>" data-heading="<?php esc_attr_e( 'Restore Previous Settings?', 'tutor' ); ?>" data-message="<?php esc_attr_e( 'WARNING! This will overwrite all existing settings, please proceed with caution.', 'tutor' ); ?>" data-id="<?php echo esc_attr( $key ); ?>"><?php esc_html_e( 'Apply', 'tutor' ); ?></button>
67
+
<div class="tutor-dropdown-parent tutor-ml-16">
68
+
<button type="button" class="tutor-iconic-btn" action-tutor-dropdown="toggle">
69
+
<span class="tutor-icon-kebab-menu" area-hidden="true"></span>
70
+
</button>
71
+
<ul class="tutor-dropdown tutor-dropdown-dark tutor-text-left">
72
+
<li>
73
+
<a href="javascript:;" class="tutor-dropdown-item export_single_settings" data-id="<?php echo esc_attr( $key ); ?>">
74
+
<span class="tutor-icon-archive tutor-mr-8" area-hidden="true"></span>
75
+
<span><?php esc_html_e( 'Download', 'tutor' ); ?></span>
76
+
</a>
77
+
</li>
78
+
<li>
79
+
<a href="javascript:;" class="tutor-dropdown-item delete_single_settings" data-tutor-modal-target="tutor-modal-bulk-action" data-btntext="<?php esc_attr_e( 'Yes, Delete Settings', 'tutor' ); ?>" data-heading="<?php esc_attr_e( 'Delete This Settings?', 'tutor' ); ?>" data-message="<?php esc_attr_e( 'WARNING! This will remove the settings history data from your system, please proceed with caution.', 'tutor' ); ?>" data-id="<?php echo esc_attr( $key ); ?>">
80
+
<span class="icon tutor-icon-trash-can-bold tutor-mr-8" area-hidden="true"></span>
81
+
<span><?php esc_html_e( 'Delete', 'tutor' ); ?></span>
82
+
</a>
83
+
</li>
84
+
</ul>
85
+
</div>
86
+
</div>
87
+
</div>
88
+
<?php endforeach; ?>
89
+
<?php else : ?>
90
+
<div class="tutor-option-field-row">
91
+
<div class="tutor-option-field-label">
92
+
<div class="tutor-fs-7 tutor-fw-medium"><?php esc_html_e( 'No settings data found.', 'tutor' ); ?></div>
93
+
</div>
94
+
</div>
95
+
<?php endif; ?>
96
+
</div>
97
+
</div>
98
+
99
+
<div class="tutor-option-single-item tutor-mb-32">
100
+
<div class="tutor-option-group-title tutor-mb-16">
101
+
<div class="tutor-fs-6 tutor-color-muted"><?php esc_html_e( 'Reset Settings', 'tutor' ); ?></div>
102
+
</div>
103
+
<div class="item-wrapper">
104
+
<div class="tutor-option-field-row">
105
+
<div class="tutor-option-field-label">
106
+
<div class="tutor-fs-6 tutor-color-black tutor-mb-4"><?php esc_html_e( 'Restore to Default Settings', 'tutor' ); ?></div>
107
+
<div class="tutor-fs-7 tutor-color-subdued">
108
+
<?php esc_html_e( 'Revert all settings back to their initial state.', 'tutor' ); ?>
109
+
</div>
110
+
</div>
111
+
<div class="tutor-option-field-input">
112
+
<button class="tutor-btn tutor-btn-outline-primary tutor-btn-sm tutor-reset-all"
113
+
data-tutor-modal-target="tutor-modal-bulk-action"
114
+
data-btntext="<?php esc_attr_e( 'Yes, Reset Settings', 'tutor' ); ?>"
115
+
data-heading="<?php esc_attr_e( 'Reset All Settings?', 'tutor' ); ?>"
116
+
data-message="<?php esc_attr_e( 'WARNING! This will reset all settings to default, please proceed with caution.', 'tutor' ); ?>"
117
+
id="tutor_reset_options"><?php esc_html_e( 'Reset All Settings', 'tutor' ); ?></button>
118
+
</div>
119
+
</div>
120
+
</div>
121
+
</div>
122
+