multiple-configuration
3 years ago
prior-consent
3 years ago
dashboard-page.php
3 years ago
debug-page.php
3 years ago
gtm-page.php
3 years ago
iab-page.php
3 years ago
legislations-page.php
4 years ago
network-settings-page.php
3 years ago
settings-page.php
3 years ago
support-page.php
3 years ago
debug-page.php
67 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var string $debug_output |
| 4 | */ |
| 5 | |
| 6 | use cybot\cookiebot\settings\templates\Header; |
| 7 | use cybot\cookiebot\settings\templates\Main_Tabs; |
| 8 | |
| 9 | $header = new Header; |
| 10 | $main_tabs = new Main_Tabs; |
| 11 | |
| 12 | $header->display(); |
| 13 | ?> |
| 14 | <div class="cb-body"> |
| 15 | <div class="cb-wrapper"> |
| 16 | <?php $main_tabs->display('debug'); ?> |
| 17 | <div class="cb-main__content"> |
| 18 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Debug info', 'cookiebot' ); ?></h1> |
| 19 | |
| 20 | <div class="cb-debug__content"> |
| 21 | <div class="cb-debug__info__card"> |
| 22 | <h2 class="cb-debug__info__title"><?php esc_html_e( 'Debug information', 'cookiebot' ); ?></h2> |
| 23 | <p class="cb-debug__info__text"> |
| 24 | <?php |
| 25 | esc_html_e( |
| 26 | 'The information below is for debugging purposes. If you have any issues with your Cookiebot CMP integration, this information is the best place to start.', |
| 27 | 'cookiebot' |
| 28 | ); |
| 29 | ?> |
| 30 | </p> |
| 31 | <button class="cb-btn cb-main-btn" onclick="copyDebugInfo();"> |
| 32 | <?php |
| 33 | esc_html_e( |
| 34 | 'Copy debug information to clipboard', |
| 35 | 'cookiebot' |
| 36 | ); |
| 37 | ?> |
| 38 | </button> |
| 39 | </div> |
| 40 | <div class="cb-debug__support__card"> |
| 41 | <div class="cb-debug__support__inner"> |
| 42 | <h2 class="cb-debug__support__title"><?php esc_html_e( 'If you have any issues with the implemenation of Cookiebot CMP, please visit our Support Center.', 'cookiebot' ); ?></h2> |
| 43 | <a href="https://support.cookiebot.com/hc/en-us" target="_blank" class="cb-btn cb-main-btn"> |
| 44 | <?php |
| 45 | esc_html_e( |
| 46 | 'Visit Support Center', |
| 47 | 'cookiebot' |
| 48 | ); |
| 49 | ?> |
| 50 | </a> |
| 51 | </div> |
| 52 | |
| 53 | </div> |
| 54 | </div> |
| 55 | |
| 56 | <div class="cb-debug__code__container"> |
| 57 | <textarea |
| 58 | cols="50" |
| 59 | rows="40" |
| 60 | id="cookiebot-debug-info" |
| 61 | readonly="readonly" |
| 62 | ><?php echo esc_textarea( $debug_output ); ?></textarea> |
| 63 | </div> |
| 64 | </div> |
| 65 | </div> |
| 66 | </div> |
| 67 |