/**
  *
  *
  * @param string $type
  * @return string
  */
 public function signInButton($type = 'button')
 {
     $Target = Gdn::request()->post('Target', Gdn::request()->get('Target', url('', '/')));
     $Url = $this->authorizeUri(array('target' => $Target));
     $Result = socialSignInButton('Google', $Url, $type, array('rel' => 'nofollow'));
     return $Result;
 }
Beispiel #2
0
 /**
  * Create signup button specific to this plugin.
  *
  * @param string $type Either button or icon to be output.
  *
  * @return string Resulting HTML element (button).
  */
 public function signInButton($type = 'button')
 {
     $target = Gdn::request()->post('Target', Gdn::request()->get('Target', url('', '/')));
     $url = $this->authorizeUri(['target' => $target]);
     $providerName = val('Name', $this->provider);
     $linkLabel = sprintf(t('Sign in with %s'), $providerName);
     $result = socialSignInButton($providerName, $url, $type, ['rel' => 'nofollow', 'class' => 'default', 'title' => $linkLabel]);
     return $result;
 }