templates
3 years ago
ga-accounts-selector.php
4 years ago
ga-auth-button.php
4 years ago
ga-code.php
4 years ago
ga-dashboard-widget.php
4 years ago
ga-debug-modal.php
4 years ago
ga-ga4-settings.php
3 years ago
ga-googleanalytics-loader.php
4 years ago
ga-notice.php
3 years ago
ga-oauth-notice.php
4 years ago
ga-wp-notice.php
4 years ago
page.php
3 years ago
statistics.php
3 years ago
stats.php
3 years ago
trending.php
4 years ago
ga-debug-modal.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Debug Modal view. |
| 4 | * |
| 5 | * @package GoogleAnalytics |
| 6 | */ |
| 7 | |
| 8 | $sdb = filter_input( INPUT_GET, 'sdb', FILTER_SANITIZE_STRING ); |
| 9 | |
| 10 | $debug_info = isset( $debug_info ) ? $debug_info : array(); |
| 11 | $show_modal = false === empty( $sdb ) ? 'style=display:block;' : ''; |
| 12 | ?> |
| 13 | |
| 14 | <div id="ga_debug_modal" class="ga-modal" tabindex="-1" <?php echo esc_attr( $show_modal ); ?>> |
| 15 | <div class="ga-modal-dialog"> |
| 16 | <div id="ga_debug_modal_content" class="ga-modal-content"> |
| 17 | <div class="ga-modal-header"> |
| 18 | <h4 class="ga-modal-title"><?php echo esc_html( 'Debug helper:' ); ?></h4> |
| 19 | <span id="ga_close" class="ga-close">×</span> |
| 20 | </div> |
| 21 | <div class="ga-modal-body"> |
| 22 | <div class="ga-loader-wrapper"> |
| 23 | <div class="ga-loader"></div> |
| 24 | </div> |
| 25 | <div class="ga-debug-form-div"> |
| 26 | <?php if ( is_array( $debug_info ) ) : ?> |
| 27 | <?php echo wp_kses_post( $debug_info['message'] ); ?> |
| 28 | <?php else : ?> |
| 29 | <h4 class="ga-modal-title"><?php echo esc_html( 'Copy and paste this debug info into an email and send to support@sharethis.com' ); ?></h4> |
| 30 | <label for="ga_debug_info" |
| 31 | class="ga-debug-form-label"><strong><?php echo esc_html( 'Debug info' ); ?></strong>:</label> |
| 32 | <textarea id="ga_debug_info" class="ga-debug-form-field" rows="8" |
| 33 | cols="50"><?php echo esc_html( $debug_info ); ?></textarea> |
| 34 | <div class="ga-modal-footer"> |
| 35 | <button type="button" id="copy-debug" class="button"> |
| 36 | <?php |
| 37 | esc_html_e( |
| 38 | 'Copy', |
| 39 | 'google-analytics' |
| 40 | ); |
| 41 | ?> |
| 42 | </button> |
| 43 | <button id="ga_btn_close" type="button" class="button">Close</button> |
| 44 | </div> |
| 45 | <?php endif; ?> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div><!-- /.modal-content --> |
| 49 | </div><!-- /.modal-dialog --> |
| 50 | </div><!-- /.modal --> |
| 51 |