PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / view / ga-accounts-selector.php
googleanalytics / view Last commit date
templates 2 months ago ga-accounts-selector.php 2 months ago ga-auth-button.php 2 months ago ga-code.php 2 months ago ga-dashboard-widget.php 2 months ago ga-debug-modal.php 2 months ago ga-ga4-settings.php 2 months ago ga-googleanalytics-loader.php 2 months ago ga-notice.php 2 months ago ga-oauth-notice.php 2 months ago ga-wp-notice.php 2 months ago old-page.php 2 months ago page.php 2 months ago statistics.php 2 months ago stats.php 2 months ago trending.php 2 months ago
ga-accounts-selector.php
50 lines
1 <?php
2 /**
3 * Accounts Selector view.
4 *
5 * @package GoogleAnalytics
6 */
7
8 if (!defined('ABSPATH')) exit;
9
10 // Set add_manually_enabled fallback.
11 $add_manually_enabled = isset( $add_manually_enabled ) ? $add_manually_enabled : false;
12
13 // Set selected value fallback.
14 $selected = isset( $selected ) ? $selected : '';
15 ?>
16 <div class="wrap">
17 <input type="hidden" name="<?php echo esc_attr( Ga_Admin::GA_SELECTED_ACCOUNT ); ?>"
18 value="<?php echo esc_attr( $selected ); ?>">
19 <select id="ga_account_selector"
20 name="<?php echo esc_attr( Ga_Admin::GA_SELECTED_ACCOUNT ); ?>"
21 <?php echo disabled( true === $add_manually_enabled ); ?>
22 >
23 <option><?php echo esc_html__( 'Please select your Google Analytics account:', 'googleanalytics' ); ?></option>
24 <?php
25 if ( false === empty( $selector ) ) :
26 foreach ( $selector as $account ) :
27 ?>
28 <optgroup label="<?php echo esc_attr( $account['name'] ); ?>">
29 <?php foreach ( $account['webProperties'] as $property ) : ?>
30 <?php
31 foreach ( $property['profiles'] as $profile ) :
32 $profile_value = $account['id'] . '_' . $property['webPropertyId'] . '_' . $profile['id'];
33 $profile_label = $property['name'] . '&nbsp;[' . $property['webPropertyId'] . '][' . $profile['id'] . ']';
34 ?>
35 <option value="<?php echo esc_attr( $profile_value ); ?>"
36 <?php echo selected( $selected, $profile_value ); ?>
37 >
38 <?php echo esc_html( $profile_label ); ?>
39 </option>
40 <?php endforeach; ?>
41 <?php endforeach; ?>
42 </optgroup>
43 <?php
44 endforeach;
45 endif;
46 ?>
47 </select>
48 </div>
49
50