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.0 3.6.0 3.6.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 / options / template / import_export.php
tutor / views / options / template Last commit date
common 1 year ago basic.php 1 year ago buddypress.php 3 years ago color_picker.php 3 years ago design.php 3 years ago google_classroom.php 3 years ago gradebook.php 3 years ago import_export.php 1 year ago notifications.php 3 years ago status.php 3 years ago tab.php 1 year ago tutor_pages.php 1 year ago zoom.php 4 years ago
import_export.php
158 lines
1 <?php
2 /**
3 * Import export tools view
4 *
5 * @package Tutor\Views
6 * @subpackage Tutor\Tools
7 * @author Themeum <support@themeum.com>
8 * @link https://themeum.com
9 * @since 2.0.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( 'Import/Export', 'tutor' ); ?>
16 </div>
17 </div>
18
19 <?php
20 tutor_alert(
21 __( 'Warning: Importing, Restoring, or Resetting will overwrite ALL existing settings. Please proceed with caution.', 'tutor' ),
22 'warning'
23 );
24 ?>
25
26 <div class="tutor-option-single-item tutor-mb-32">
27 <div class="tutor-option-group-title tutor-mb-16">
28 <div class="tutor-fs-6 tutor-color-muted"><?php esc_html_e( 'Export', 'tutor' ); ?></div>
29 </div>
30
31 <div class="item-wrapper">
32 <div class="tutor-option-field-row">
33 <div class="tutor-option-field-label">
34 <div class="label tutor-fs-6 tutor-color-black"><?php esc_html_e( 'Current Settings', 'tutor' ); ?></div>
35 <div class="desc tutor-fs-8 tutor-fw-medium tutor-color-secondary">
36 <span style="font-weight: 500"><?php esc_html_e( 'Last Update', 'tutor' ); ?>: </span> <?php echo esc_html( get_option( 'tutor_option_update_time' ) ); ?>
37 </div>
38 </div>
39 <div class="tutor-option-field-input">
40 <button class="tutor-btn tutor-btn-outline-primary tutor-btn-sm" id="tutor_export_settings"><?php esc_html_e( 'Export Settings', 'tutor' ); ?></button>
41 </div>
42 </div>
43 </div>
44 </div>
45
46 <div class="tutor-option-single-item tutor-mb-32 item-variation-dragndrop import-setting">
47 <div class="tutor-option-group-title tutor-mb-16">
48 <div class="tutor-fs-6 tutor-color-muted"><?php esc_html_e( 'Import Settings', 'tutor' ); ?></div>
49 </div>
50 <div class="item-wrapper">
51 <div class="tutor-option-field-row tutor-d-block">
52 <div>
53 <div class="drag-drop-zone">
54 <span class="tutor-icon-upload tutor-fs-1 tutor-color-primary"></span>
55 <div class="title"><?php esc_html_e( 'Drag &amp; Drop your JSON File here', 'tutor' ); ?> </div>
56 <div class="subtitle"><span><?php esc_html_e( 'File Format', 'tutor' ); ?>:</span> .json <br> <?php esc_html_e( 'Or', 'tutor' ); ?></div>
57 <label for="drag-drop-input" class="tutor-btn tutor-btn-secondary tutor-btn-sm tutor-mt-8">
58 <input type="file" name="drag-drop-input" id="drag-drop-input" class="tutor-d-none">
59 <span><?php esc_html_e( 'Choose From Computer', 'tutor' ); ?></span>
60 </label>
61 <span class="file-info"></span>
62 </div>
63 </div>
64 <div class="tutor-option-field-input tutor-mt-16">
65 <button class="tutor-btn tutor-btn-primary tutor-btn-md tutor_import_options"
66 data-tutor-modal-target="tutor-modal-bulk-action"
67 data-btntext="<?php esc_attr_e( 'Yes, Import Settings', 'tutor' ); ?>"
68 data-heading="<?php esc_attr_e( 'Import from Previous Settings?', 'tutor' ); ?>"
69 data-message="<?php esc_attr_e( 'WARNING! This will overwrite all existing settings, please proceed with caution.', 'tutor' ); ?>"
70 id="tutor_import_options"><?php esc_html_e( 'Update Settings', 'tutor' ); ?></button>
71 </div>
72 </div>
73 </div>
74 </div>
75
76 <div class="tutor-option-single-item tutor-mb-32 item-variation-table settings-history">
77 <div class="tutor-option-group-title tutor-mb-16">
78 <div class="tutor-fs-6 tutor-color-muted"><?php esc_attr_e( 'Settings History', 'tutor' ); ?></div>
79 </div>
80 <div class="item-wrapper history_data">
81 <div class="tutor-option-field-row">
82 <div class="tutor-option-field-label">
83 <?php esc_attr_e( 'Date', 'tutor' ); ?>
84 </div>
85 </div>
86 <?php
87 $tutor_options = get_option( 'tutor_settings_log', array() );
88 if ( $tutor_options ) :
89 ?>
90 <?php
91 foreach ( $tutor_options as $key => $option_data ) :
92 $datetype_class = 'saved' === $option_data['datatype'] ? ' label-primary' : ' label-default';
93 ?>
94 <div class="tutor-option-field-row">
95 <div class="tutor-option-field-label">
96 <div class="tutor-fs-7 tutor-fw-medium">
97 <?php echo esc_html( $option_data['history_date'] ); ?>
98 <span class="tutor-badge-label tutor-ml-16<?php echo esc_attr( $datetype_class ); ?>"> <?php echo esc_html( ucwords( $option_data['datatype'] ) ); ?></span>
99 </div>
100 </div>
101 <div class="tutor-option-field-input">
102 <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>
103 <div class="tutor-dropdown-parent tutor-ml-16">
104 <button type="button" class="tutor-iconic-btn" action-tutor-dropdown="toggle">
105 <span class="tutor-icon-kebab-menu" area-hidden="true"></span>
106 </button>
107 <ul class="tutor-dropdown tutor-dropdown-dark tutor-text-left">
108 <li>
109 <a href="javascript:;" class="tutor-dropdown-item export_single_settings" data-id="<?php echo esc_attr( $key ); ?>">
110 <span class="tutor-icon-archive tutor-mr-8" area-hidden="true"></span>
111 <span><?php esc_html_e( 'Download', 'tutor' ); ?></span>
112 </a>
113 </li>
114 <li>
115 <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 ); ?>">
116 <span class="icon tutor-icon-trash-can-bold tutor-mr-8" area-hidden="true"></span>
117 <span><?php esc_html_e( 'Delete', 'tutor' ); ?></span>
118 </a>
119 </li>
120 </ul>
121 </div>
122 </div>
123 </div>
124 <?php endforeach; ?>
125 <?php else : ?>
126 <div class="tutor-option-field-row">
127 <div class="tutor-option-field-label">
128 <div class="tutor-fs-7 tutor-fw-medium"><?php esc_html_e( 'No settings data found.', 'tutor' ); ?></div>
129 </div>
130 </div>
131 <?php endif; ?>
132 </div>
133 </div>
134
135 <div class="tutor-option-single-item tutor-mb-32">
136 <div class="tutor-option-group-title tutor-mb-16">
137 <div class="tutor-fs-6 tutor-color-muted"><?php esc_html_e( 'Reset Settings', 'tutor' ); ?></div>
138 </div>
139 <div class="item-wrapper">
140 <div class="tutor-option-field-row">
141 <div class="tutor-option-field-label">
142 <div class="tutor-fs-6 tutor-color-black"><?php esc_html_e( 'Reset Everything to Default', 'tutor' ); ?></div>
143 <div class="tutor-fs-7 tutor-fw-medium tutor-color-secondary">
144 <span class="tutor-fw-medium"><?php esc_html_e( 'It will revert all settings to initial setup.', 'tutor' ); ?></span>
145 </div>
146 </div>
147 <div class="tutor-option-field-input">
148 <button class="tutor-btn tutor-btn-outline-primary tutor-btn-sm tutor-reset-all"
149 data-tutor-modal-target="tutor-modal-bulk-action"
150 data-btntext="<?php esc_attr_e( 'Yes, Reset Settings', 'tutor' ); ?>"
151 data-heading="<?php esc_attr_e( 'Reset All Settings?', 'tutor' ); ?>"
152 data-message="<?php esc_attr_e( 'WARNING! This will reset all settings to default, please proceed with caution.', 'tutor' ); ?>"
153 id="tutor_reset_options"><?php esc_html_e( 'Reset All Settings', 'tutor' ); ?></button>
154 </div>
155 </div>
156 </div>
157 </div>
158