PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.1.7
ShareThis Dashboard for Google Analytics v3.1.7
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-auth-button.php
googleanalytics / view Last commit date
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 4 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 3 years ago trending.php 4 years ago
ga-auth-button.php
34 lines
1 <?php
2 /**
3 * GA Auth Button view.
4 *
5 * @package GoogleAnalytics
6 */
7
8 // Template partial fallback values.
9 $label = isset( $label ) ? $label : '';
10 $manually_id = isset( $manually_id ) ? $manually_id : '';
11 $button_type = isset( $button_type ) ? $button_type : '';
12 $url = isset( $url ) ? $url : '';
13 $classes = array();
14
15 // Determine button classes.
16 if ( 'auth' === $button_type ) {
17 $classes[] = 'button-primary';
18 } else {
19 $classes[] = 'button-secondary';
20 }
21 ?>
22 <a id="ga_authorize_with_google_button"
23 class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"
24 href="https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=1068475218768-0id2em2grsa7fcb1la1t3ephea6l7lvf.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fsharethis.com%2Fgoogle-analytics-setup%2F&state&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly&prompt=consent"
25 <?php
26 echo disabled(
27 false === empty( $manually_id )
28 || false === Ga_Helper::are_features_enabled()
29 || true === Ga_Helper::is_curl_disabled()
30 );
31 ?>
32 ><?php echo esc_html( $label ); ?>
33 </a>
34