| 1 |
<?php |
| 2 |
/** |
| 3 |
* @var string $debug_output |
| 4 |
*/ |
| 5 |
|
| 6 |
use cybot\cookiebot\lib\Cookiebot_Frame; |
| 7 |
use cybot\cookiebot\settings\templates\Header; |
| 8 |
use cybot\cookiebot\settings\templates\Main_Tabs; |
| 9 |
|
| 10 |
$header = new Header(); |
| 11 |
$main_tabs = new Main_Tabs(); |
| 12 |
|
| 13 |
$header->display(); |
| 14 |
?> |
| 15 |
<div class="cb-body"> |
| 16 |
<div class="cb-wrapper"> |
| 17 |
<?php $main_tabs->display( 'support' ); ?> |
| 18 |
<div class="cb-main__content"> |
| 19 |
<h1 class="cb-main__page_title"><?php esc_html_e( 'Support', 'cookiebot' ); ?></h1> |
| 20 |
|
| 21 |
<div class="cb-support__content"> |
| 22 |
<div class="cb-support__info__card"> |
| 23 |
<h2 class="cb-support__info__title"><?php esc_html_e( 'Having trouble or need help?', 'cookiebot' ); ?></h2> |
| 24 |
<p class="cb-support__info__text"> |
| 25 |
<?php |
| 26 |
esc_html_e( |
| 27 |
'Need help? Visit our Support Center for answers.', |
| 28 |
'cookiebot' |
| 29 |
); |
| 30 |
echo '<br>'; |
| 31 |
esc_html_e( |
| 32 |
'Still stuck? Click', |
| 33 |
'cookiebot' |
| 34 |
); |
| 35 |
echo '<strong> '; |
| 36 |
esc_html_e( |
| 37 |
'Submit a request', |
| 38 |
'cookiebot' |
| 39 |
); |
| 40 |
echo ' </strong>'; |
| 41 |
esc_html_e( |
| 42 |
'in the top-right corner of the Support Center page.', |
| 43 |
'cookiebot' |
| 44 |
); |
| 45 |
echo '<br>'; |
| 46 |
esc_html_e( |
| 47 |
'Please include your debug info so we can help faster.', |
| 48 |
'cookiebot' |
| 49 |
); |
| 50 |
?> |
| 51 |
</p> |
| 52 |
</div> |
| 53 |
|
| 54 |
<div class="cb-debug__support__card"> |
| 55 |
<a href="https://usercentricsforwordpress.zendesk.com/hc/en-us" target="_blank" class="cb-btn cb-main-btn" style="border: 3px solid #1032cf" |
| 56 |
rel="noopener"> |
| 57 |
<?php esc_html_e( 'Visit Support Center', 'cookiebot' ); ?> |
| 58 |
</a> |
| 59 |
|
| 60 |
<?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?> |
| 61 |
<a href="#" onclick="copyDebugInfo();" class="cb-btn cb-secondary-btn" style="margin-left: 20px;"> |
| 62 |
<?php esc_html_e( 'Copy Debug Info', 'cookiebot' ); ?> |
| 63 |
</a> |
| 64 |
<?php endif; ?> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
|
| 68 |
<?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?> |
| 69 |
<div class="cb-debug__code__container"> |
| 70 |
<textarea |
| 71 |
cols="50" |
| 72 |
rows="40" |
| 73 |
id="cookiebot-debug-info" |
| 74 |
readonly="readonly" |
| 75 |
><?php echo esc_textarea( $debug_output ); ?></textarea> |
| 76 |
</div> |
| 77 |
<?php endif; ?> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
</div> |
| 81 |
|