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