demo-ad.php
64 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for GDPR side bar ad in settings page. |
| 4 | */ |
| 5 | ?> |
| 6 | <div class="sidebar-ad"> |
| 7 | <div id="demo-ad"> |
| 8 | <h2 style="text-decoration: underline;"> |
| 9 | <?php esc_html_e('Demographics data now available!', 'googleanalytics'); ?> |
| 10 | </h2> |
| 11 | <div class="row"> |
| 12 | <div class="col-md-12"> |
| 13 | <img src="<?php echo $plugin_uri . 'assets/images/demo-ex.png'; ?>" /> |
| 14 | </div> |
| 15 | <div class="col-md-6"> |
| 16 | <p> |
| 17 | <?php esc_html_e('Find out more about your target audience by enabling the demographics feature!', 'googleanalytics'); ?> |
| 18 | </p> |
| 19 | <h3><?php esc_html_e('Why Collect Demographics and Interests Data?', 'googleanalytics'); ?></h3> |
| 20 | <p> |
| 21 | <?php esc_html_e( |
| 22 | 'By viewing demographics data, you will learn more details about your visitors so you can deliver content/create products that address their needs!', |
| 23 | 'googleanalytics' |
| 24 | ); ?> |
| 25 | </p> |
| 26 | </div> |
| 27 | <div class="col-md-6"> |
| 28 | <h3><?php esc_html_e('Gender', 'googleanalytics'); ?></h3> |
| 29 | <p> |
| 30 | <?php esc_html_e( |
| 31 | 'Understanding exactly which gender visits different areas of your website, could allow you to optimise those areas accordingly.', |
| 32 | 'googleanalytics' |
| 33 | ); ?> |
| 34 | </p> |
| 35 | </div> |
| 36 | </div> |
| 37 | <div class="row"> |
| 38 | <div class="col-md-6"> |
| 39 | <h3><?php esc_html_e('Age', 'googleanalytics'); ?></h3> |
| 40 | <p> |
| 41 | <?php esc_html_e( |
| 42 | 'Determine your site\'s age demographic and make the site more friendly to use for that group.', |
| 43 | 'googleanalytics' |
| 44 | ); ?> |
| 45 | </p> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="row register-section"> |
| 49 | <?php if ( Ga_Helper::are_features_enabled() ) : ?> |
| 50 | <td> |
| 51 | <button id="demographic-popup"><?php esc_html_e('Enable'); ?></button> |
| 52 | </td> |
| 53 | <?php else : ?> |
| 54 | <td> |
| 55 | <label class="<?php echo ( ! Ga_Helper::are_features_enabled() ) ? 'label-grey ga-tooltip' : '' ?>"> |
| 56 | <button class="gdpr-enable" disabled="disabled"><?php esc_html_e('Enable'); ?></button> |
| 57 | <span class="ga-tooltiptext ga-tt-abs"><?php _e( $tooltip ); ?></span> |
| 58 | </label> |
| 59 | </td> |
| 60 | <?php endif; ?> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 |