← All changes
|
libraries/freemius/templates/debug/scheduled-crons.php
+12
-1
2.2.3
→
3.4
View file →
| @@ -12,8 +12,10 @@ | ||
| 12 | 12 | |
| 13 | 13 | $fs_options = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true ); |
| 14 | 14 | $scheduled_crons = array(); |
| 15 | 15 | |
| 16 | + $is_fs_debug_page = ( isset( $VARS['is_fs_debug_page'] ) && $VARS['is_fs_debug_page'] ); | |
| 17 | + | |
| 16 | 18 | $module_types = array( |
| 17 | 19 | WP_FS__MODULE_TYPE_PLUGIN, |
| 18 | 20 | WP_FS__MODULE_TYPE_THEME |
| 19 | 21 | ); |
| @@ -72,10 +74,19 @@ | ||
| 72 | 74 | } |
| 73 | 75 | |
| 74 | 76 | $sec_text = fs_text_x_inline( 'sec', 'seconds' ); |
| 75 | 77 | ?> |
| 78 | +<?php if ( $is_fs_debug_page ) : ?> | |
| 79 | +<h2> | |
| 80 | + <button class="fs-debug-table-toggle-button" aria-expanded="true"> | |
| 81 | + <span class="fs-debug-table-toggle-icon">▼</span> | |
| 82 | + </button> | |
| 83 | + <?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?> | |
| 84 | +</h2> | |
| 85 | +<?php else : ?> | |
| 76 | 86 | <h1><?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?></h1> |
| 77 | -<table class="widefat"> | |
| 87 | +<?php endif ?> | |
| 88 | +<table class="widefat fs-debug-table"> | |
| 78 | 89 | <thead> |
| 79 | 90 | <tr> |
| 80 | 91 | <th><?php fs_esc_html_echo_inline( 'Slug' ) ?></th> |
| 81 | 92 | <th><?php fs_esc_html_echo_inline( 'Module' ) ?></th> |