Version 5.0.0 beta 10
This commit is contained in:
1 parent
56979f8ee8
commit
264eeb97e0
325 files changed
+6442
-1849
No files matched your search
@@ -12,6 +12,7 @@ namespace IPS\Login\Handler;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\File;
|
||||
use IPS\Http\Url;
|
||||
use IPS\Login;
|
||||
use IPS\Login\Exception;
|
||||
@@ -67,9 +68,9 @@ trait ButtonHandler
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
abstract public function buttonIcon(): string;
|
||||
abstract public function buttonIcon(): string|File;
|
||||
|
||||
/**
|
||||
* Get button text
|
||||
|
||||
@@ -127,9 +127,9 @@ class Apple extends OpenID
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'apple';
|
||||
}
|
||||
|
||||
@@ -213,9 +213,9 @@ class Custom extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return ( isset( $this->settings['button_icon'] ) and $this->settings['button_icon'] ) ? File::get( 'core_Login', $this->settings['button_icon'] ) : '';
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace IPS\Login\Handler\OAuth2;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
use DomainException;
|
||||
use IPS\File;
|
||||
use IPS\Helpers\Form\Radio;
|
||||
use IPS\Http\Request\Exception;
|
||||
use IPS\Http\Url;
|
||||
@@ -109,9 +110,9 @@ class Facebook extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'facebook-f';
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace IPS\Login\Handler\OAuth2;
|
||||
|
||||
use DomainException;
|
||||
use IPS\Db;
|
||||
use IPS\File;
|
||||
use IPS\Helpers\Form\Radio;
|
||||
use IPS\Http\Url;
|
||||
use IPS\Login;
|
||||
@@ -91,9 +92,9 @@ class Google extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'google';
|
||||
}
|
||||
|
||||
@@ -171,9 +171,9 @@ class Invision extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return ( isset( $this->settings['button_icon'] ) and $this->settings['button_icon'] ) ? File::get( 'core_Login', $this->settings['button_icon'] ) : '';
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace IPS\Login\Handler\OAuth2;
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use DomainException;
|
||||
use IPS\File;
|
||||
use IPS\Helpers\Form\Radio;
|
||||
use IPS\Http\Url;
|
||||
use IPS\Login;
|
||||
@@ -93,9 +94,9 @@ class LinkedIn extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'linkedin';
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace IPS\Login\Handler\OAuth2;
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use DomainException;
|
||||
use IPS\File;
|
||||
use IPS\Helpers\Form\Radio;
|
||||
use IPS\Http\Url;
|
||||
use IPS\Login;
|
||||
@@ -86,9 +87,9 @@ class Microsoft extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'windows';
|
||||
}
|
||||
|
||||
@@ -163,9 +163,9 @@ class Wordpress extends OAuth2
|
||||
/**
|
||||
* Get the button icon
|
||||
*
|
||||
* @return string
|
||||
* @return string|File
|
||||
*/
|
||||
public function buttonIcon(): string
|
||||
public function buttonIcon(): string|File
|
||||
{
|
||||
return 'wordpress';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user