PluginProbe
Debug Log Viewer / 2.2.3
Debug Log Viewer v2.2.3
2.5 2.5.1 2.5.2 2.4 trunk 1.0.2 1.0.3 1.1 1.1.1 1.2 1.2.1 1.3 1.4 1.4.1 1.4.2 1.4.3 2.0.1 2.0.3 2.0.4 2.0.5 2.1 2.2.3
debug-log-viewer / front / views / components / modals / display-errors.tpl.php

display-errors.tpl.php in Debug Log Viewer 2.2.3, at front/views/components/modals/display-errors.tpl.php

46 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6
7 <div class="modal fade" id="display-errors-warning-modal" tabindex="-1" data-bs-backdrop="static">
8 <div class="modal-dialog modal-dialog-centered">
9 <div class="modal-content">
10 <div class="modal-body">
11 <div class="alert alert-warning" role="alert">
12 <p>
13 <i class="fa fa-exclamation-triangle me-2"></i>
14 <?php esc_html_e('Enabling "Display errors" may expose sensitive site data, break page layouts, and display warnings to visitors.', 'debug-log-viewer'); ?>
15 </p>
16 <p>
17 <?php esc_html_e('For security, disable this setting on live sites.', 'debug-log-viewer'); ?>
18 </p>
19
20 <p>
21 <?php esc_html_e('�
22 Use only in development environments.', 'debug-log-viewer'); ?>
23 <br />
24 <?php esc_html_e('�
25 Enable "Log in file" to log errors instead.', 'debug-log-viewer'); ?>
26 </p>
27 </div>
28 </div>
29 <div class="modal-footer">
30 <button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal" id="cancel-display-errors">
31 <?php esc_html_e('Cancel', 'debug-log-viewer'); ?>
32 </button>
33 <button type="button" class="btn btn-danger btn-sm" id="confirm-display-errors">
34 <?php esc_html_e('I understand', 'debug-log-viewer'); ?>
35 </button>
36 </div>
37 </div>
38 </div>
39 </div>
40
41 <script>
42 document.getElementById('display-errors-warning-modal').addEventListener('shown.bs.modal', function() {
43 document.getElementById('confirm-display-errors').focus(); // Set focus to a button inside modal
44 });
45 </script>
46