PluginProbe
WP Docs / 2.3.2
WP Docs v2.3.2
2.3.4 2.3.3 2.3.2 trunk 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1
← All changes | inc/wpdocs_settings.php +30 -0 2.3.02.3.2 View file →
@@ -52,8 +52,10 @@
52 52
53 53 $dir_string = __('Memphis Directories', 'wp-docs');
54 54 $files_string = __('Memphis Files', 'wp-docs');
55 55 $out_of_string = __('Out of', 'wp-docs');
56 + $import_folder = ($import_folder>$total_folder?$total_folder:$import_folder);
57 + $import_files = ($import_files>$total_files?$total_files:$import_files);
56 58
57 59 echo "<li class='list-group-item'>{$dir_string}: <strong class='float-right d-inline-block'>{$import_folder} {$out_of_string} {$total_folder}</strong></li>";
58 60 echo "<li class='list-group-item'>{$files_string}: <strong class='float-right d-inline-block'>{$import_files} {$out_of_string} {$total_files}</strong></li>";
59 61
@@ -76,11 +78,39 @@
76 78 <?php
77 79 }
78 80 ?>
79 81 <button data-text="<?php _e('Please wait...', 'wp-docs'); ?>" class="btn btn-primary btn-sm wp_docs_import_memphis"><?php _e('Import From Memphis Documents Library', 'wp-docs') ?></button>
82 +
83 + <button data-text="<?php _e('Please wait...', 'wp-docs'); ?>" class="btn btn-warning btn-sm wp_docs_verify_memphis">
84 + <?php _e('Verify Files & Folders', 'wp-docs'); ?>
85 + </button>
80 86 </div>
81 87
82 88 <div class="alert alert-danger mt-2" style="font-size: 14px;text-align: center;padding: 2px 0 4px;cursor: pointer; margin-bottom:0;" title="<?php _e('Memphis Documents Library .htaccess file in mdocs directory will not let you browse the files on front-end.', 'wp-docs'); ?>"><?php _e('We recommend deactivation of Memphis Documents Library after import.', 'wp-docs'); ?></div>
89 +
90 + <!-- Progress Bar Container -->
91 + <div id="wpdocs_memphis_verify_progress_wrap" style="display:none; margin: 20px 0;">
92 + <div style="background:#f0f0f0; border-radius:4px; overflow:hidden; height:30px;">
93 + <div id="wpdocs_memphis_verify_progress_bar" style="background:#0073aa; height:100%; width:0%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px;">
94 + 0%
95 + </div>
96 + </div>
97 + <div id="wpdocs_memphis_verify_current" style="margin-top:10px; font-size:13px; color:#666;"></div>
98 + </div>
99 +
100 + <!-- Statistics Results Container -->
101 + <div id="wpdocs_memphis_verify_results" style="margin: 20px 0;"></div>
102 +
103 + <!-- Tree Container -->
104 + <div id="wpdocs_memphis_verify_tree" style="max-height:500px; overflow-y:auto; border:1px solid #ddd; padding:15px; background:#fafafa; border-radius:4px;"></div>
105 +
106 + <!-- Import Missing Button Container -->
107 + <div id="wpdocs_memphis_import_missing_wrap" style="margin-top:20px; display:none;">
108 + <button type="button" class="btn btn-danger wp_docs_import_missing_memphis">
109 + <?php _e('Import Missing Items Only', 'wp-docs'); ?>
110 + </button>
111 + </div>
112 +
83 113 </div>
84 114
85 115 </div>
86 116