sidebar
2 months ago
appearance.php
2 months ago
date-custom-range-filter.php
2 months ago
demo-popup.php
2 months ago
demographic-chart.php
2 months ago
demographic.php
2 months ago
exclusions.php
2 months ago
ga4-dashboard.php
2 months ago
ga4-demographic-chart.php
2 months ago
gdpr-config.php
2 months ago
gdpr.php
2 months ago
purposes.php
2 months ago
demographic.php
29 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Demographic view. |
| 4 | * |
| 5 | * @package GoogleAnalytics |
| 6 | */ |
| 7 | |
| 8 | if (!defined('ABSPATH')) exit; |
| 9 | |
| 10 | $enabledisable = get_option( 'googleanalytics_demographic' ) === '1' ? 'Disable' : 'Enable'; |
| 11 | ?> |
| 12 | <?php if ( 'Enable' === $enabledisable ) : ?> |
| 13 | <tr> |
| 14 | <th scope="row"><?php esc_html_e( 'Enable demographic charts', 'googleanalytics' ); ?>:</th> |
| 15 | </tr> |
| 16 | <?php if ( true === Ga_Helper::are_features_enabled() ) : ?> |
| 17 | <td> |
| 18 | <button id="demographic-popup"><?php esc_html_e( 'Enable', 'googleanalytics' ); ?></button> |
| 19 | </td> |
| 20 | <?php else : ?> |
| 21 | <td> |
| 22 | <label class="<?php echo false === Ga_Helper::are_features_enabled() ? 'label-grey ga-tooltip' : ''; ?>"> |
| 23 | <button class="gdpr-enable" disabled="disabled"><?php esc_html_e( 'Enable', 'googleanalytics' ); ?></button> |
| 24 | <span class="ga-tooltiptext ga-tt-abs"><?php echo esc_html( $tooltip ); ?></span> |
| 25 | </label> |
| 26 | </td> |
| 27 | <?php endif; ?> |
| 28 | <?php endif; ?> |
| 29 |