Add floating mode support
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Ogre\Captcha\Location;
|
||||
use Override;
|
||||
use Ogre\Captcha\Location;
|
||||
use Ogre\Captcha\Settings;
|
||||
use Ogre\Captcha\Widget;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
@@ -39,6 +40,11 @@ final class LoginForm extends Location {
|
||||
ob_start();
|
||||
$this->render();
|
||||
$content .= ob_get_clean();
|
||||
|
||||
if (Settings::is_widget_floating()) {
|
||||
Widget::add_dynamic_floating_attributes();
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user