| @@ -31,9 +31,14 @@ | ||
| 31 | 31 | 'message' => __( 'Get more with Elementor Pro', 'elementor' ), |
| 32 | 32 | 'button_text' => __( 'Upgrade Now', 'elementor' ), |
| 33 | 33 | 'show_banner' => ! $has_pro, |
| 34 | 34 | ] ); |
| 35 | - $promotion_data_sticky = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion(); | |
| 35 | + $promotion_data_sticky = [ | |
| 36 | + 'url' => 'https://go.elementor.com/go-pro-sticky-widget-panel/', | |
| 37 | + 'message' => __( 'Access all Pro widgets.', 'elementor' ), | |
| 38 | + 'button_text' => __( 'Upgrade Now', 'elementor' ), | |
| 39 | + ]; | |
| 40 | + $promotion_data_sticky = Filtered_Promotions_Manager::get_filtered_promotion_data( $promotion_data_sticky, 'elementor/editor/panel/get_pro_details-sticky', 'url' ); | |
| 36 | 41 | ?> |
| 37 | 42 | <?php if ( $get_pro_details['show_banner'] ) : ?> |
| 38 | 43 | <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box"> |
| 39 | 44 | <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/go-pro.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>" /> |
| @@ -41,18 +46,18 @@ | ||
| 41 | 46 | <a class="elementor-button go-pro" target="_blank" href="<?php echo esc_url( $get_pro_details['link'] ); ?>"><?php echo esc_html( $get_pro_details['button_text'] ); ?></a> |
| 42 | 47 | </div> |
| 43 | 48 | <?php endif; ?> |
| 44 | 49 | <?php if ( ! $has_pro ) : ?> |
| 45 | - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?> | |
| 50 | + <div id="elementor-panel-get-pro-elements-sticky"> | |
| 51 | + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/unlock-sticky.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>"/> | |
| 52 | + <div class="elementor-get-pro-sticky-message"> | |
| 53 | + <?php echo esc_html( $promotion_data_sticky['message'] ); ?> | |
| 54 | + <a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a> | |
| 55 | + </div> | |
| 56 | + </div> | |
| 46 | 57 | <?php endif; ?> |
| 47 | 58 | </script> |
| 48 | 59 | |
| 49 | -<script type="text/template" id="tmpl-elementor-panel-element-sticky-promotion"> | |
| 50 | - <?php if ( ! $has_pro ) : ?> | |
| 51 | - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?> | |
| 52 | - <?php endif; ?> | |
| 53 | -</script> | |
| 54 | - | |
| 55 | 60 | <script type="text/template" id="tmpl-elementor-panel-elements-category"> |
| 56 | 61 | <button class="elementor-panel-heading elementor-panel-category-title"> |
| 57 | 62 | <span class="elementor-panel-heading-toggle"> |
| 58 | 63 | <i class="eicon-caret-right" aria-hidden="true"></i> |
| @@ -61,9 +66,9 @@ | ||
| 61 | 66 | <?php do_action( 'elementor/editor/templates/panel/category' ); ?> |
| 62 | 67 | <# if ( 'undefined' !== typeof promotion && promotion ) { #> |
| 63 | 68 | <span class="elementor-panel-heading-promotion"> |
| 64 | 69 | <a href="{{{ promotion.url }}}" target="_blank"> |
| 65 | - <i class="eicon-upgrade-crown-full"></i>{{{ promotion.text || <?php echo wp_json_encode( __( 'Upgrade', 'elementor' ) ); ?> }}} | |
| 70 | + <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?> | |
| 66 | 71 | </a> |
| 67 | 72 | </span> |
| 68 | 73 | <# } #> |
| 69 | 74 | </button> |
| @@ -82,11 +87,12 @@ | ||
| 82 | 87 | <# const v4Categories = ['v4-elements', 'atomic-form']; #> |
| 83 | 88 | <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}"> |
| 84 | 89 | <# if ( obj.integration ) { #> |
| 85 | 90 | <i class="eicon-plug"></i> |
| 86 | - <# } else if ( false === obj.editable ) { #> | |
| 87 | - <i class="eicon-upgrade-crown-full"></i> | |
| 88 | - <# } else if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #> | |
| 91 | + <# } else if ( false === obj.editable && !obj.atomicFormPromotion ) { #> | |
| 92 | + <i class="eicon-lock"></i> | |
| 93 | + <# } #> | |
| 94 | + <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #> | |
| 89 | 95 | <i class="eicon-atomic"></i> |
| 90 | 96 | <# } #> |
| 91 | 97 | <div class="icon"> |
| 92 | 98 | <i class="{{ icon }}" aria-hidden="true"></i> |
| @@ -105,19 +111,15 @@ | ||
| 105 | 111 | ?> |
| 106 | 112 | <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state"> |
| 107 | 113 | <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div> |
| 108 | 114 | <div class="elementor-panel-elements-widget-creation__message"><?php echo esc_html__( 'Build a custom widget with Angie by describing what you need.', 'elementor' ); ?></div> |
| 109 | - <?php if ( current_user_can( 'manage_options' ) ) : ?> | |
| 110 | 115 | <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button> |
| 111 | - <?php endif; ?> | |
| 112 | 116 | </script> |
| 113 | 117 | |
| 114 | 118 | <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer"> |
| 115 | 119 | <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div> |
| 116 | 120 | <div class="elementor-panel-elements-widget-creation__message"><?php echo esc_html__( 'Build a custom widget with Angie by describing what you need.', 'elementor' ); ?></div> |
| 117 | - <?php if ( current_user_can( 'manage_options' ) ) : ?> | |
| 118 | 121 | <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button> |
| 119 | - <?php endif; ?> | |
| 120 | 122 | </script> |
| 121 | 123 | <?php endif; ?> |
| 122 | 124 | |
| 123 | 125 | <script type="text/template" id="tmpl-elementor-panel-global"> |