PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / admin-views / event-log.php
pods / tribe-common / src / admin-views Last commit date
notices 2 weeks ago tabbed-view 2 weeks ago widgets 2 weeks ago app-shop.php 2 weeks ago event-log.php 2 weeks ago tribe-options-display.php 2 weeks ago tribe-options-general.php 2 weeks ago tribe-options-help.php 2 weeks ago tribe-options-licenses.php 2 weeks ago tribe-options-network.php 2 weeks ago
event-log.php
117 lines
1 <?php
2 /**
3 * @var array $log_choices
4 * @var array $log_engines
5 * @var array $log_levels
6 * @var array $log_entries
7 * @var string $download_url
8 */
9 ?>
10 <div id="tribe-log-controls">
11
12 <?php
13 /**
14 * Fires within the #tribe-log-controls div, before any of the default
15 * controls are generated.
16 */
17 do_action( 'tribe_common_log_controls_top' );
18 ?>
19
20 <div>
21 <label for="log-levels"><?php esc_html_e( 'Logging level', 'tribe-common' ) ?></label>
22 <select
23 class="tribe-dropdown"
24 name="log-level"
25 id="log-level"
26 >
27 <?php foreach ( $log_levels as $code => $name ): ?>
28 <option name="<?php echo esc_attr( $code ) ?>" <?php selected( $code, tribe_get_option( 'logging_level') ); ?>>
29 <?php echo esc_html( $name ) ?>
30 </option>
31 <?php endforeach; ?>
32 </select>
33 </div>
34
35 <?php
36 /**
37 * Fires within the #tribe-log-controls div, after the #log-level control.
38 */
39 do_action( 'tribe_common_log_controls_after_log_level' );
40 ?>
41
42 <div>
43 <label for="log-engine"><?php esc_html_e( 'Method', 'tribe-common' ) ?></label>
44 <select
45 class="tribe-dropdown"
46 name="log-engine"
47 id="log-engine"
48 >
49 <?php foreach ( $log_engines as $code => $name ): ?>
50 <option name="<?php echo esc_attr( $code ) ?>" <?php selected( $code, tribe_get_option( 'logging_engine') ); ?>>
51 <?php echo esc_html( $name ) ?>
52 </option>
53 <?php endforeach; ?>
54 </select>
55 </div>
56
57 <?php
58 /**
59 * Fires within the #tribe-log-controls div, after the #log-engine control.
60 */
61 do_action( 'tribe_common_log_controls_after_log_engine' );
62 ?>
63
64 <div>
65 <label for="log-selector"><?php esc_html_e( 'View', 'tribe-common' ) ?></label>
66 <select
67 class="tribe-dropdown"
68 name="log-selector"
69 id="log-selector"
70 >
71 <?php foreach ( $log_choices as $name ): ?>
72 <option name="<?php echo esc_attr( $name ) ?>"><?php echo esc_html( $name ) ?></option>
73 <?php endforeach; ?>
74 </select>
75 </div>
76
77 <?php
78 /**
79 * Fires within the #tribe-log-controls div, after the #log-selector control.
80 */
81 do_action( 'tribe_common_log_controls_after_log_selector' );
82 ?>
83
84 <div class="working hidden">
85 <img src="<?php echo esc_url( get_admin_url( null, '/images/spinner.gif' ) ); ?>" />
86 </div>
87
88 <?php
89 /**
90 * Fires within the #tribe-log-controls div, after all of the default
91 * controls have been generated.
92 */
93 do_action( 'tribe_common_log_controls_bottom' );
94 ?>
95
96 </div>
97
98 <div id="tribe-log-viewer">
99 <?php if ( empty( $log_entries ) ): ?>
100 <p><?php esc_html_e( 'The selected log file is empty or has not been generated yet.', 'tribe-common' ); ?></p>
101 <?php else: ?>
102
103 <table>
104 <?php foreach ( $log_entries as $data ): ?>
105 <tr>
106 <?php foreach ( $data as $single_cell ): ?>
107 <td><?php echo esc_html( $single_cell ); ?></td>
108 <?php endforeach; ?>
109 </tr>
110 <?php endforeach; ?>
111 </table>
112
113 <?php endif; ?>
114
115 </div>
116
117 <p> <a href="<?php echo esc_url( $download_url ) ?>" class="download_log" target="_blank"><?php esc_html_e( 'Download log', 'tribe-common' ); ?> </a> </p>