prior-consent
4 years ago
debug-page.php
4 years ago
gtm-page.php
4 years ago
iab-page.php
4 years ago
legislations-page.php
4 years ago
network-settings-page.php
4 years ago
settings-page.php
4 years ago
support-page.php
4 years ago
support-page.php
136 lines
| 1 | <div class="wrap"> |
| 2 | <h1><?php esc_html_e( 'Support', 'cookiebot' ); ?></h1> |
| 3 | <h2><?php esc_html_e( 'How to find my Cookiebot ID', 'cookiebot' ); ?></h2> |
| 4 | <div> |
| 5 | <ol> |
| 6 | <li> |
| 7 | <?php |
| 8 | echo sprintf( |
| 9 | // translators: the first placeholder string will be replaced with a html anchor open tag and the second placeholder string will be replaced by the html anchor closing tag |
| 10 | esc_html__( 'Log in to your %1$sCookiebot account%2$s.', 'cookiebot' ), |
| 11 | '<a href="https://www.cookiebot.com/goto/account" target="_blank">', |
| 12 | '</a>' |
| 13 | ); |
| 14 | ?> |
| 15 | </li> |
| 16 | <li> |
| 17 | <?php |
| 18 | echo sprintf( |
| 19 | // translators: the placeholder strings denote the positions of <b>, </b>, <b> and </b> HTML tags |
| 20 | esc_html__( 'Go to %1$sManage%2$s > %3$sSettings%4$s and add setup your Cookiebot', 'cookiebot' ), |
| 21 | '<b>', |
| 22 | '</b>', |
| 23 | '<b>', |
| 24 | '</b>' |
| 25 | ); |
| 26 | ?> |
| 27 | </li> |
| 28 | <li> |
| 29 | <?php |
| 30 | echo sprintf( |
| 31 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 32 | esc_html__( 'Go to the %1$s"Your scripts"%2$s tab', 'cookiebot' ), |
| 33 | '<b>', |
| 34 | '</b>' |
| 35 | ); |
| 36 | ?> |
| 37 | </li> |
| 38 | <li><?php esc_html_e( 'Copy the value inside the data-cid parameter - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ); ?></li> |
| 39 | <li> |
| 40 | <?php |
| 41 | echo sprintf( |
| 42 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 43 | esc_html__( 'Add %1$s[cookie_declaration]%2$s shortcode to a page to show the declation', 'cookiebot' ), |
| 44 | '<b>', |
| 45 | '</b>' |
| 46 | ); |
| 47 | ?> |
| 48 | </li> |
| 49 | <li><?php esc_html_e( 'Remember to change your scripts as descripted below', 'cookiebot' ); ?></li> |
| 50 | </ol> |
| 51 | </div> |
| 52 | <h2><?php esc_html_e( 'Add the Cookie Declaration to your website', 'cookiebot' ); ?></h2> |
| 53 | <p> |
| 54 | <?php |
| 55 | echo sprintf( |
| 56 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 57 | esc_html__( 'Use the shortcode %1$s[cookie_declaration]%2$s to add the cookie declaration a page or post. The cookie declaration will always show the latest version from Cookiebot.', 'cookiebot' ), |
| 58 | '<b>', |
| 59 | '</b>' |
| 60 | ); |
| 61 | ?> |
| 62 | <br/> |
| 63 | <?php |
| 64 | echo sprintf( |
| 65 | // translators: the placeholder strings denote the positions of <i>, </i>, <b> and </b> HTML tags |
| 66 | esc_html__( 'If you need to force language of the cookie declaration, you can add the %1$slang%2$s attribute. Eg. %3$s[cookie_declaration lang="de"]%4$s.', 'cookiebot' ), |
| 67 | '<i>', |
| 68 | '</i>', |
| 69 | '<b>', |
| 70 | '</b>' |
| 71 | ); |
| 72 | ?> |
| 73 | </p> |
| 74 | <p> |
| 75 | <a href="https://www.youtube.com/watch?v=OCXz2bt4H_w" target="_blank" class="button"> |
| 76 | <?php |
| 77 | esc_html_e( |
| 78 | 'Watch video demonstration', |
| 79 | 'cookiebot' |
| 80 | ); |
| 81 | ?> |
| 82 | </a> |
| 83 | </p> |
| 84 | <h2><?php esc_html_e( 'Update your script tags', 'cookiebot' ); ?></h2> |
| 85 | <p> |
| 86 | <?php |
| 87 | esc_html_e( |
| 88 | 'To enable prior consent, apply the attribute "data-cookieconsent" to cookie-setting script tags on your website. Set the comma-separated value to one or more of the cookie categories "preferences", "statistics" and "marketing" in accordance with the types of cookies being set by each script. Finally change the attribute "type" from "text/javascript" to "text/plain". Example on modifying an existing Google Analytics Universal script tag.', |
| 89 | 'cookiebot' |
| 90 | ); |
| 91 | ?> |
| 92 | </p> |
| 93 | <code> |
| 94 | <?php |
| 95 | $output = <<<HTML |
| 96 | <script type="text/plain" data-cookieconsent="statistics"> |
| 97 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 98 | ga('create', 'UA-00000000-0', 'auto'); |
| 99 | ga('send', 'pageview'); |
| 100 | </script> |
| 101 | HTML; |
| 102 | echo nl2br( esc_html( $output ) ); |
| 103 | ?> |
| 104 | </code> |
| 105 | <p> |
| 106 | <a href="https://www.youtube.com/watch?v=MeHycvV2QCQ" target="_blank" class="button"> |
| 107 | <?php |
| 108 | esc_html_e( |
| 109 | 'Watch video demonstration', |
| 110 | 'cookiebot' |
| 111 | ); |
| 112 | ?> |
| 113 | </a> |
| 114 | </p> |
| 115 | |
| 116 | <h2><?php esc_html_e( 'Helper function to update your scripts', 'cookiebot' ); ?></h2> |
| 117 | <p> |
| 118 | <?php |
| 119 | esc_html_e( |
| 120 | 'You are able to update your scripts yourself. However, Cookiebot also offers a small helper function that makes the work easier.', |
| 121 | 'cookiebot' |
| 122 | ); |
| 123 | ?> |
| 124 | <br/> |
| 125 | <?php esc_html_e( 'Update your script tags this way:', 'cookiebot' ); ?> |
| 126 | </p> |
| 127 | <?php |
| 128 | printf( |
| 129 | // translators: %1$s refers to the original script tag HTML, and %2$s refers to its replacement |
| 130 | esc_html__( '%1$s to %2$s', 'cookiebot' ), |
| 131 | '<code>' . esc_html( '<script type="text/javascript">' ) . '</code>', |
| 132 | '<code>' . esc_html( '<script<?php echo cookiebot_assist(\'marketing\') ?>>' ) . '</code>' |
| 133 | ); |
| 134 | ?> |
| 135 | </div> |
| 136 |