tabs = array( 'auth' => __('Authentication', 'awca-text'), ); $auth_settings = get_option('awca_auth_settings'); $awca_refresh_token_fail = get_option('awca_refresh_token_fail'); if (($auth_settings) && ($awca_refresh_token_fail != 'yes')) { if (awca_fs()->is_not_paying() && !(awca_fs()->is_trial()) || (!awca_fs()->is_premium())) { $this->tabs = array( 'settings' => __('Settings', 'awca-text'), ); if (isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'], 'UA') !== false)) { $this->tabs = array_merge(array('dash' => __('Dashboard', 'awca-text')), $this->tabs); } elseif (isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'], 'G') !== false)) { $this->tabs = array_merge(array('dash' => __('Dashboard', 'awca-text')), $this->tabs); } $this->tabs = array_merge($this->tabs, array('upgrade' => __('Upgrade to Pro', 'awca-text'))); $this->tabs = array_merge($this->tabs, array('unlink' => __('Un-Link Google Analytics', 'awca-text'))); } else { $this->tabs = array( 'settings' => __('Settings', 'awca-text'), 'support' => __('Support/Guide', 'awca-text'), ); if (isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'], 'UA') !== false)) { $this->tabs = array_merge(array('dash__premium_only' => __('Dashboard', 'awca-text')), $this->tabs); } elseif (isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'], 'G') !== false)) { $this->tabs = array_merge(array('dash__premium_only' => __('Dashboard', 'awca-text')), $this->tabs); } $this->tabs = array_merge($this->tabs, array('unlink' => __('Un-Link Google Analytics', 'awca-text'))); } } } /* rendering tabs for plugin settings */ public function render() { ?>
get_tracking_id()) { ?>