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.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / views / pages / tools / settings-log.php
tutor / views / pages / tools Last commit date
manage-tokens.php 1 year ago settings-log.php 1 year ago status.php 1 year ago tutor_pages.php 3 years ago
settings-log.php
122 lines
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