| @@ -1,8 +1,23 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Beaver Builder integration for the ThinkRank SEO metabox. |
| 4 | 4 | * |
| 5 | + * @package ThinkRank | |
| 6 | + * @since 2.2.2 | |
| 7 | + */ | |
| 8 | + | |
| 9 | +declare(strict_types=1); | |
| 10 | + | |
| 11 | +namespace ThinkRank\Admin; | |
| 12 | + | |
| 13 | +if (!defined('ABSPATH')) { | |
| 14 | + exit; | |
| 15 | +} | |
| 16 | + | |
| 17 | +/** | |
| 18 | + * Wires the React metabox into the Beaver Builder editor. | |
| 19 | + * | |
| 5 | 20 | * Beaver Builder's editor is a front-end editing overlay, not a standalone SPA: |
| 6 | 21 | * it loads the post on its own permalink with `?fl_builder` and paints its own |
| 7 | 22 | * chrome (top bar, panels, settings modals) over the rendered page. It does NOT |
| 8 | 23 | * render WordPress metaboxes and does not submit the #post form, so the |
| @@ -76,23 +91,8 @@ | ||
| 76 | 91 | * Styles are not wiped, and `wp_enqueue_media()` is deliberately called in the |
| 77 | 92 | * ordinary pass: `FLBuilderUIIFrame::enqueue_scripts()` re-runs it only when it |
| 78 | 93 | * has already fired, which is what keeps the media library available to the |
| 79 | 94 | * drawer's social-image picker after the queue is emptied. |
| 80 | - * | |
| 81 | - * @package ThinkRank | |
| 82 | - * @since 2.2.2 | |
| 83 | - */ | |
| 84 | - | |
| 85 | -declare(strict_types=1); | |
| 86 | - | |
| 87 | -namespace ThinkRank\Admin; | |
| 88 | - | |
| 89 | -if (!defined('ABSPATH')) { | |
| 90 | - exit; | |
| 91 | -} | |
| 92 | - | |
| 93 | -/** | |
| 94 | - * Wires the React metabox into the Beaver Builder editor. | |
| 95 | 95 | */ |
| 96 | 96 | class Beaver_Metabox { |
| 97 | 97 | |
| 98 | 98 | /** |