| @@ -16,9 +16,8 @@ | ||
| 16 | 16 | use Elementor\Modules\Promotions\Pointers\Birthday; |
| 17 | 17 | use Elementor\Modules\Promotions\Pointers\Black_Friday; |
| 18 | 18 | use Elementor\Modules\Promotions\PropTypes\Promotion_Prop_Type; |
| 19 | 19 | use Elementor\Modules\Promotions\Widgets\Ally_Dashboard_Widget; |
| 20 | -use Elementor\Modules\Promotions\Widgets\Atomic_Form_Widget_Promotion; | |
| 21 | 20 | use Elementor\Widgets_Manager; |
| 22 | 21 | use Elementor\Utils; |
| 23 | 22 | use Elementor\Includes\EditorAssetsAPI; |
| 24 | 23 | use Elementor\Plugin; |
| @@ -69,10 +68,8 @@ | ||
| 69 | 68 | if ( Black_Friday::should_display_notice() ) { |
| 70 | 69 | new Black_Friday(); |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | - add_filter( 'elementor/editor/localize_settings', [ $this, 'add_v4_promotions_data' ] ); | |
| 74 | - | |
| 75 | 72 | if ( Utils::has_pro() ) { |
| 76 | 73 | return; |
| 77 | 74 | } |
| 78 | 75 | |
| @@ -81,8 +78,9 @@ | ||
| 81 | 78 | } ); |
| 82 | 79 | |
| 83 | 80 | add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'enqueue_react_data' ] ); |
| 84 | 81 | add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'enqueue_editor_v4_alphachip' ] ); |
| 82 | + add_filter( 'elementor/editor/localize_settings', [ $this, 'add_v4_promotions_data' ] ); | |
| 85 | 83 | |
| 86 | 84 | // Add Ally promo |
| 87 | 85 | Ally_Dashboard_Widget::init(); |
| 88 | 86 | |
| @@ -94,9 +92,9 @@ | ||
| 94 | 92 | * |
| 95 | 93 | * @return string |
| 96 | 94 | */ |
| 97 | 95 | public static function get_ally_external_scanner_url(): string { |
| 98 | - return apply_filters( 'elementor/ally_external_scanner_url', 'https://go.elementor.com/acc-checker-dashboard-plg' ); | |
| 96 | + return apply_filters( 'elementor/ally_external_scanner_url', 'https://elementor.com/tools/ally-accessibility-checker/scanner' ); | |
| 99 | 97 | } |
| 100 | 98 | |
| 101 | 99 | private function handle_external_redirects() { |
| 102 | 100 | $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); |
| @@ -246,10 +244,8 @@ | ||
| 246 | 244 | 2 |
| 247 | 245 | ); |
| 248 | 246 | } |
| 249 | 247 | } ); |
| 250 | - | |
| 251 | - ( new Atomic_Form_Widget_Promotion() )->register(); | |
| 252 | 248 | } |
| 253 | 249 | |
| 254 | 250 | public function inject_atomic_promotion_props( array $schema ): array { |
| 255 | 251 | foreach ( $this->get_atomic_promotion_configs() as $config ) { |