| @@ -4,9 +4,8 @@ | ||
| 4 | 4 | |
| 5 | 5 | use Elementor\Api; |
| 6 | 6 | use Elementor\Controls_Manager; |
| 7 | 7 | use Elementor\Core\Base\Module as Base_Module; |
| 8 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 9 | 8 | use Elementor\Modules\Promotions\AdminMenuItems\Editor_One_Custom_Code_Menu; |
| 10 | 9 | use Elementor\Modules\Promotions\AdminMenuItems\Editor_One_Custom_Elements_Menu; |
| 11 | 10 | use Elementor\Modules\Promotions\AdminMenuItems\Editor_One_Fonts_Menu; |
| 12 | 11 | use Elementor\Modules\Promotions\AdminMenuItems\Editor_One_Icons_Menu; |
| @@ -87,10 +86,8 @@ | ||
| 87 | 86 | if ( Utils::has_pro() ) { |
| 88 | 87 | return; |
| 89 | 88 | } |
| 90 | 89 | |
| 91 | - add_filter( 'elementor/editor/localize_settings', [ $this, 'add_editing_panel_sticky_promotion' ] ); | |
| 92 | - | |
| 93 | 90 | add_action( 'elementor/controls/register', function ( Controls_Manager $controls_manager ) { |
| 94 | 91 | $controls_manager->register( new Controls\Promotion_Control() ); |
| 95 | 92 | } ); |
| 96 | 93 | |
| @@ -168,9 +165,8 @@ | ||
| 168 | 165 | 'react-dom', |
| 169 | 166 | 'backbone-marionette', |
| 170 | 167 | 'elementor-editor-modules', |
| 171 | 168 | 'elementor-v2-ui', |
| 172 | - 'elementor-v2-icons', | |
| 173 | 169 | ], |
| 174 | 170 | ELEMENTOR_VERSION, |
| 175 | 171 | true |
| 176 | 172 | ); |
| @@ -217,18 +213,8 @@ | ||
| 217 | 213 | EditorAssetsAPI::ASSETS_DATA_URL => 'https://assets.elementor.com/free-to-pro-upsell/v1/free-to-pro-upsell.json', |
| 218 | 214 | EditorAssetsAPI::ASSETS_DATA_TRANSIENT_KEY => '_elementor_free_to_pro_upsell', |
| 219 | 215 | EditorAssetsAPI::ASSETS_DATA_KEY => 'free-to-pro-upsell', |
| 220 | 216 | ]; |
| 221 | - } | |
| 222 | - | |
| 223 | - public function add_editing_panel_sticky_promotion( array $settings ): array { | |
| 224 | - if ( ! Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ) ) { | |
| 225 | - return $settings; | |
| 226 | - } | |
| 227 | - | |
| 228 | - $settings['editingPanelStickyPromotion'] = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion(); | |
| 229 | - | |
| 230 | - return $settings; | |
| 231 | 217 | } |
| 232 | 218 | |
| 233 | 219 | public function add_v4_promotions_data( array $settings ): array { |
| 234 | 220 | if ( ! current_user_can( 'manage_options' ) ) { |