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;
|
||||
use WP_Error;
|
||||
use WP_Post;
|
||||
|
||||
@@ -35,6 +36,11 @@ final class PostPasswordForm extends Location {
|
||||
ob_start();
|
||||
$this->render();
|
||||
$output .= ob_get_clean();
|
||||
|
||||
if (Settings::is_widget_floating()) {
|
||||
$output = Widget::set_button_floating($output);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user