appearance.php
5 years ago
demographic-chart.php
5 years ago
demographic.php
5 years ago
exclusions.php
5 years ago
gdpr-config.php
5 years ago
gdpr.php
5 years ago
purposes.php
5 years ago
demographic.php
21 lines
| 1 | <?php |
| 2 | $enabledisable = get_option('googleanalytics_demographic') === '1' ? 'Disable' : 'Enable'; |
| 3 | ?> |
| 4 | <?php if ('Enable' === $enabledisable) : ?> |
| 5 | <tr valign="top"> |
| 6 | <th scope="row"><?php esc_html_e('Enable demographic charts', 'googleanalytics'); ?>:</th> |
| 7 | </tr> |
| 8 | <?php if ( Ga_Helper::are_features_enabled() ) : ?> |
| 9 | <td> |
| 10 | <button id="demographic-popup"><?php esc_html_e('Enable', 'googleanalytics'); ?></button> |
| 11 | </td> |
| 12 | <?php else : ?> |
| 13 | <td> |
| 14 | <label class="<?php echo ( ! Ga_Helper::are_features_enabled() ) ? 'label-grey ga-tooltip' : '' ?>"> |
| 15 | <button class="gdpr-enable" disabled="disabled"><?php esc_html_e('Enable'); ?></button> |
| 16 | <span class="ga-tooltiptext ga-tt-abs"><?php _e( $tooltip ); ?></span> |
| 17 | </label> |
| 18 | </td> |
| 19 | <?php endif; ?> |
| 20 | <?php endif; ?> |
| 21 |