| @@ -1,17 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| 10 | 8 | $document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() ); |
| 11 | - | |
| 12 | -$show_editing_panel_sticky_promotion = ! Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ); | |
| 13 | -$editing_panel_sticky_promotion = $show_editing_panel_sticky_promotion ? Filtered_Promotions_Manager::get_editor_panel_sticky_promotion() : []; | |
| 14 | 9 | ?> |
| 15 | 10 | <script type="text/template" id="tmpl-elementor-panel"> |
| 16 | 11 | <div id="elementor-panel-state-loading"> |
| 17 | 12 | <i class="eicon-loading eicon-animation-spin"></i> |
| @@ -200,16 +195,8 @@ | ||
| 200 | 195 | <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a> |
| 201 | 196 | <# } #> |
| 202 | 197 | </div> |
| 203 | 198 | <# } #> |
| 204 | - <?php if ( $show_editing_panel_sticky_promotion ) : ?> | |
| 205 | - <div class="elementor-panel-editor-sticky-promotion"> | |
| 206 | - <div class="elementor-get-pro-sticky-message"> | |
| 207 | - <?php echo esc_html( $editing_panel_sticky_promotion['message'] ); ?> | |
| 208 | - <a target="_blank" href="<?php echo esc_url( $editing_panel_sticky_promotion['url'] ); ?>"><?php echo esc_html( $editing_panel_sticky_promotion['button_text'] ); ?></a> | |
| 209 | - </div> | |
| 210 | - </div> | |
| 211 | - <?php endif; ?> | |
| 212 | 199 | </script> |
| 213 | 200 | |
| 214 | 201 | <script type="text/template" id="tmpl-elementor-panel-schemes-disabled"> |
| 215 | 202 | <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" /> |