ga_accounts_selector.php
9 years ago
ga_auth_button.php
9 years ago
ga_code.php
6 years ago
ga_dashboard_widget.php
9 years ago
ga_debug_modal.php
6 years ago
ga_googleanalytics_loader.php
6 years ago
ga_notice.php
6 years ago
ga_oauth_notice.php
9 years ago
ga_wp_notice.php
9 years ago
page.php
6 years ago
statistics.php
6 years ago
stats.php
6 years ago
trending.php
8 years ago
ga_accounts_selector.php
27 lines
| 1 | <div class="wrap"> |
| 2 | <input type="hidden" name="<?php echo esc_attr( Ga_Admin::GA_SELECTED_ACCOUNT ); ?>" |
| 3 | value="<?php echo esc_attr( $selected ); ?>"> |
| 4 | <select id="ga_account_selector" |
| 5 | name="<?php echo esc_attr( Ga_Admin::GA_SELECTED_ACCOUNT ); ?>" <?php echo esc_attr( $add_manually_enabled ? 'disabled="disabled"' : '' ); ?>> |
| 6 | <option><?php _e( 'Please select your Google Analytics account:' ); ?></option> |
| 7 | <?php |
| 8 | if ( ! empty( $selector ) ) { |
| 9 | foreach ( $selector as $account ) { |
| 10 | ?> |
| 11 | <optgroup label="<?php echo $account['name']; ?>"> |
| 12 | <?php foreach ( $account['webProperties'] as $property ): ?> |
| 13 | <?php foreach ( $property['profiles'] as $profile ): ?> |
| 14 | <option |
| 15 | value="<?php echo esc_attr( $account['id'] . "_" . $property['webPropertyId'] . "_" . $profile['id'] ) ?>" |
| 16 | <?php echo( $selected === $account['id'] . "_" . $property['webPropertyId'] . "_" . $profile['id'] ? 'selected="selected"' : '' ); ?>><?php echo esc_html( $property['name'] . " [" . $property['webPropertyId'] . "][" . $profile['id'] . "]" ) ?></option> |
| 17 | <?php endforeach; ?> |
| 18 | <?php endforeach; ?> |
| 19 | </optgroup> |
| 20 | <?php |
| 21 | } |
| 22 | } |
| 23 | ?> |
| 24 | </select> |
| 25 | </div> |
| 26 | |
| 27 |