templates
3 years ago
ga-accounts-selector.php
4 years ago
ga-auth-button.php
3 years ago
ga-code.php
4 years ago
ga-dashboard-widget.php
4 years ago
ga-debug-modal.php
2 years ago
ga-ga4-settings.php
3 years ago
ga-googleanalytics-loader.php
4 years ago
ga-notice.php
3 years ago
ga-oauth-notice.php
4 years ago
ga-wp-notice.php
4 years ago
old-page.php
3 years ago
page.php
3 years ago
statistics.php
3 years ago
stats.php
2 years ago
trending.php
4 years ago
ga-wp-notice.php
22 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WP Notice view. |
| 4 | * |
| 5 | * @package GoogleAnalytics |
| 6 | */ |
| 7 | |
| 8 | $is_dismissable = isset( $is_dismissable ) ? $is_dismissable : false; |
| 9 | |
| 10 | $msg = isset( $msg ) ? $msg : ''; |
| 11 | |
| 12 | $notice_type = isset( $notice_type ) ? $notice_type : ''; |
| 13 | ?> |
| 14 | <div class="notice notice-<?php echo esc_attr( $notice_type ); ?> <?php echo false === empty( $is_dismissable ) ? 'is-dismissible' : ''; ?>"> |
| 15 | <p><?php echo esc_html( $msg ); ?> |
| 16 | <?php if ( ! empty( $action ) ) : ?> |
| 17 | <button onclick="window.location.href='<?php echo esc_js( $action['url'] ); ?>'" |
| 18 | class="button button-primary"><?php echo esc_html( $action['label'] ); ?></button> |
| 19 | <?php endif; ?> |
| 20 | </p> |
| 21 | </div> |
| 22 |