Add floating mode support

This commit is contained in:
Cooper Dalrymple
2026-06-09 12:53:19 -05:00
parent 401676e7f3
commit 6a6e8f3960
15 changed files with 341 additions and 22 deletions
@@ -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;
}