multiple-configuration
3 years ago
prior-consent
2 years ago
dashboard-page.php
1 year ago
debug-page.php
3 years ago
gcm-page.php
2 years ago
gtm-page.php
1 year ago
iab-page.php
1 year ago
legislations-page.php
3 years ago
network-settings-page.php
1 year ago
settings-page.php
1 year ago
support-page.php
1 year ago
support-page.php
199 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var string $manager_language |
| 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( 'support' ); ?> |
| 17 | <div class="cb-main__content"> |
| 18 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Support', 'cookiebot' ); ?></h1> |
| 19 | |
| 20 | <div class="cb-support__content"> |
| 21 | <div class="cb-support__info__card"> |
| 22 | <h2 class="cb-support__info__title"><?php esc_html_e( 'Need help with your configuration?', 'cookiebot' ); ?></h2> |
| 23 | <p class="cb-support__info__text"> |
| 24 | <?php |
| 25 | esc_html_e( |
| 26 | 'In our Help Center you find all the answers to your questions. If you have additional questions, create a support request and our Support Team will help out as soon as possible.', |
| 27 | 'cookiebot' |
| 28 | ); |
| 29 | ?> |
| 30 | </p> |
| 31 | <a href="https://support.cookiebot.com/hc/en-us" target="_blank" class="cb-btn cb-main-btn" rel="noopener"> |
| 32 | <?php |
| 33 | esc_html_e( |
| 34 | 'Visit Cookiebot CMP Help Center', |
| 35 | 'cookiebot' |
| 36 | ); |
| 37 | ?> |
| 38 | </a> |
| 39 | </div> |
| 40 | <div class="cb-support__video__card"> |
| 41 | <div class="cb-support__video__inner"> |
| 42 | <h2 class="cb-support__video__title"><?php esc_html_e( 'Video guide', 'cookiebot' ); ?></h2> |
| 43 | <div class="cb-main__video"> |
| 44 | <iframe src="https://www.youtube.com/embed/1-lvuJa42P0" |
| 45 | title="Cookiebot WordPress Installation" |
| 46 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 47 | allowfullscreen></iframe> |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | </div> |
| 52 | </div> |
| 53 | |
| 54 | <div class="cb-faqs"> |
| 55 | <h2 class="cb-support__info__title">FAQ:</h2> |
| 56 | <div class="cb-faq__container cb-faq--opened"> |
| 57 | <h3 class="cb-faq__question"><?php esc_html_e( 'How to find my Cookiebot™ ID', 'cookiebot' ); ?><span class="cb-faq__toggle"></span></h3> |
| 58 | <div class="cb-faq__answer"> |
| 59 | <p class="cb-faq__answer__content"> |
| 60 | <ol> |
| 61 | <li> |
| 62 | <?php |
| 63 | echo sprintf( |
| 64 | // 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 |
| 65 | esc_html__( 'Log in to your %1$sCookiebot CMP account%2$s.', 'cookiebot' ), |
| 66 | '<a href="https://www.cookiebot.com/' . esc_html( $manager_language ) . '/account/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">', |
| 67 | '</a>' |
| 68 | ); |
| 69 | ?> |
| 70 | </li> |
| 71 | <li> |
| 72 | <?php |
| 73 | echo sprintf( |
| 74 | // translators: the placeholder strings denote the positions of <b>, </b>, <b> and </b> HTML tags |
| 75 | esc_html__( 'Go to %1$s"Settings"%2$s and setup your Cookiebot CMP', 'cookiebot' ), |
| 76 | '<b>', |
| 77 | '</b>' |
| 78 | ); |
| 79 | ?> |
| 80 | </li> |
| 81 | <li> |
| 82 | <?php |
| 83 | echo sprintf( |
| 84 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 85 | esc_html__( 'Go to the %1$s"Your scripts"%2$s tab', 'cookiebot' ), |
| 86 | '<b>', |
| 87 | '</b>' |
| 88 | ); |
| 89 | ?> |
| 90 | </li> |
| 91 | <li><?php esc_html_e( 'Copy the value inside the data-cid parameter - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ); ?></li> |
| 92 | <li> |
| 93 | <?php |
| 94 | echo sprintf( |
| 95 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 96 | esc_html__( 'Add %1$s[cookie_declaration]%2$s shortcode to a page to show the declaration', 'cookiebot' ), |
| 97 | '<b>', |
| 98 | '</b>' |
| 99 | ); |
| 100 | ?> |
| 101 | </li> |
| 102 | <li><?php esc_html_e( 'Remember to change your scripts as described below', 'cookiebot' ); ?></li> |
| 103 | </ol> |
| 104 | </p> |
| 105 | </div> |
| 106 | </div> |
| 107 | |
| 108 | <div class="cb-faq__container"> |
| 109 | <h3 class="cb-faq__question"><?php esc_html_e( 'Add the Cookie Declaration to your website', 'cookiebot' ); ?><span class="cb-faq__toggle"></span></h3> |
| 110 | <div class="cb-faq__answer"> |
| 111 | <p class="cb-faq__answer__content"> |
| 112 | <?php |
| 113 | echo sprintf( |
| 114 | // translators: the placeholder strings denote the positions of <b> and </b> HTML tags |
| 115 | esc_html__( 'Use the shortcode %1$s[cookie_declaration]%2$s to add the cookie declaration to a page or post. The cookie declaration will always show the latest version from Cookiebot CMP.', 'cookiebot' ), |
| 116 | '<b>', |
| 117 | '</b>' |
| 118 | ); |
| 119 | ?> |
| 120 | </p> |
| 121 | <p class="cb-faq__answer__content"> |
| 122 | <?php |
| 123 | echo sprintf( |
| 124 | // translators: the placeholder strings denote the positions of <i>, </i>, <b> and </b> HTML tags |
| 125 | esc_html__( 'If you want to show the cookie declaration in a specific language, you can add the %1$s"lang"%2$s attribute, e.g. %3$s[cookie_declaration lang="de"]%4$s.', 'cookiebot' ), |
| 126 | '<i>', |
| 127 | '</i>', |
| 128 | '<b>', |
| 129 | '</b>' |
| 130 | ); |
| 131 | ?> |
| 132 | </p> |
| 133 | </div> |
| 134 | </div> |
| 135 | |
| 136 | <div class="cb-faq__container"> |
| 137 | <h3 class="cb-faq__question"><?php esc_html_e( 'Update your script tags', 'cookiebot' ); ?><span class="cb-faq__toggle"></span></h3> |
| 138 | <div class="cb-faq__answer"> |
| 139 | <p class="cb-faq__answer__content"> |
| 140 | <?php |
| 141 | esc_html_e( |
| 142 | '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/or "marketing" in accordance with the types of cookies being set by each script. Finally, change the attribute "type" from "text/javascript" to "text/plain".', |
| 143 | 'cookiebot' |
| 144 | ); |
| 145 | ?> |
| 146 | </p> |
| 147 | <p class="cb-faq__answer__content"> |
| 148 | <?php |
| 149 | echo sprintf( |
| 150 | // translators: the placeholder strings denote the positions of <i>, </i>, <b> and </b> HTML tags |
| 151 | esc_html__( 'Example on modifying an existing Google Analytics Universal script tag can be found %1$shere in step 4%2$s.', 'cookiebot' ), |
| 152 | '<a href="https://www.cookiebot.com/en/manual-implementation/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">', |
| 153 | '</a>' |
| 154 | ); |
| 155 | ?> |
| 156 | </p> |
| 157 | <code class="cb-faq__code"> |
| 158 | <?php |
| 159 | $output = "<script type=\"text/plain\" data-cookieconsent=\"statistics\"> |
| 160 | (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'); |
| 161 | ga('create', 'UA-00000000-0', 'auto'); |
| 162 | ga('send', 'pageview'); |
| 163 | </script>"; |
| 164 | echo nl2br( esc_html( $output ) ); |
| 165 | ?> |
| 166 | </code> |
| 167 | </div> |
| 168 | </div> |
| 169 | |
| 170 | <div class="cb-faq__container"> |
| 171 | <h3 class="cb-faq__question"><?php esc_html_e( 'Helper function to update your scripts', 'cookiebot' ); ?><span class="cb-faq__toggle"></span></h3> |
| 172 | <div class="cb-faq__answer"> |
| 173 | <p class="cb-faq__answer__content"> |
| 174 | <?php |
| 175 | esc_html_e( |
| 176 | 'You can update your scripts yourself. However, Cookiebot CMP also offers a small helper function that can make the work easier.', |
| 177 | 'cookiebot' |
| 178 | ); |
| 179 | ?> |
| 180 | </p> |
| 181 | <p class="cb-faq__answer__content"> |
| 182 | <?php esc_html_e( 'Update your script tags this way:', 'cookiebot' ); ?> |
| 183 | </p> |
| 184 | <?php |
| 185 | printf( |
| 186 | // translators: %1$s refers to the original script tag HTML, and %2$s refers to its replacement |
| 187 | esc_html__( '%1$s to %2$s', 'cookiebot' ), |
| 188 | '<code class="cb-faq__code">' . esc_html( '<script type="text/javascript">' ) . '</code>', |
| 189 | '<code class="cb-faq__code">' . esc_html( '<script<?php echo function_exists(\'cookiebot_assist\') ? cookiebot_assist(\'marketing\') : \' type="text/javascript"\' ?>>' ) . '</code>' |
| 190 | ); |
| 191 | ?> |
| 192 | </div> |
| 193 | </div> |
| 194 | </div> |
| 195 | |
| 196 | </div> |
| 197 | </div> |
| 198 | </div> |
| 199 |