PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev4
Elementor Website Builder – more than just a page builder v4.0.0-dev4
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | core/admin/admin.php +21 -11 4.3.04.0.0-dev4 View file →
@@ -242,10 +242,10 @@
242 242 <div id="elementor-switch-mode">
243 243 <input id="elementor-switch-mode-input" type="hidden" name="_elementor_post_mode" value="<?php echo esc_attr( $document->is_built_with_elementor() ); ?>" />
244 244 <button id="elementor-switch-mode-button" type="button" class="button button-primary button-hero">
245 245 <span class="elementor-switch-mode-on">
246 - <i class="eicon-wordpress" aria-hidden="true"></i>
247 - <?php echo esc_html__( 'Edit with WordPress', 'elementor' ); ?>
246 + <i class="eicon-arrow-<?php echo ( is_rtl() ) ? 'right' : 'left'; ?>" aria-hidden="true"></i>
247 + <?php echo esc_html__( 'Back to WordPress Editor', 'elementor' ); ?>
248 248 </span>
249 249 <span class="elementor-switch-mode-off">
250 250 <i class="eicon-elementor-square" aria-hidden="true"></i>
251 251 <?php echo esc_html__( 'Edit with Elementor', 'elementor' ); ?>
@@ -373,9 +373,9 @@
373 373 array_unshift( $links, $settings_link );
374 374
375 375 $go_pro_text = esc_html__( 'Get Elementor Pro', 'elementor' );
376 376 if ( Utils::is_sale_time() ) {
377 - $go_pro_text = esc_html__( 'Sale! Upgrade Now', 'elementor' );
377 + $go_pro_text = esc_html__( 'Discounted Upgrades Now!', 'elementor' );
378 378 }
379 379
380 380 $links['go_pro'] = sprintf( '<a href="%1$s" target="_blank" class="elementor-plugins-gopro">%2$s</a>', 'https://go.elementor.com/go-pro-wp-plugins/', $go_pro_text );
381 381
@@ -427,13 +427,8 @@
427 427 * @return string The content that will be printed.
428 428 */
429 429 public function admin_footer_text( $footer_text ) {
430 430 $current_screen = get_current_screen();
431 -
432 - if ( $current_screen && str_ends_with( $current_screen->id, 'elementor-mcp' ) ) {
433 - return $footer_text;
434 - }
435 -
436 431 $is_elementor_screen = ( $current_screen && false !== strpos( $current_screen->id, 'elementor' ) );
437 432
438 433 if ( $is_elementor_screen ) {
439 434 $footer_text = sprintf(
@@ -1138,14 +1133,14 @@
1138 1133 $description = esc_html__( 'Automatically optimize images to improve site speed and performance. Included with your ONE subscription.', 'elementor' );
1139 1134 $button_text = esc_html__( 'Install now', 'elementor' );
1140 1135 $button_url = Hints::get_plugin_install_url( $plugin_slug );
1141 1136 } elseif ( ! $is_active ) {
1142 - $description = esc_html__( 'Image Optimization is installed and included in your ONE subscription. Activate it to optimize images and improve site performance.', 'elementor' );
1137 + $description = esc_html__( 'Image Optimizer is installed and included in your ONE subscription. Activate it to optimize images and improve site performance.', 'elementor' );
1143 1138 $button_text = esc_html__( 'Activate now', 'elementor' );
1144 1139 $button_url = Hints::get_plugin_activate_url( $plugin_slug );
1145 1140 }
1146 1141 } else {
1147 - $description = esc_html__( 'Optimize your images to enhance site performance by using Image Optimization.', 'elementor' );
1142 + $description = esc_html__( 'Optimize your images to enhance site performance by using Image Optimizer.', 'elementor' );
1148 1143 if ( ! $is_installed ) {
1149 1144 $button_text = esc_html__( 'Install now', 'elementor' );
1150 1145 $button_url = Hints::get_plugin_install_url( $plugin_slug );
1151 1146 } elseif ( ! $is_active ) {
@@ -1155,9 +1150,9 @@
1155 1150 }
1156 1151
1157 1152 $dismissible = 'image_optimizer_hint';
1158 1153
1159 - $title = esc_html__( 'Speed up your website with Image Optimization', 'elementor' );
1154 + $title = esc_html__( 'Speed up your website with Image Optimizer', 'elementor' );
1160 1155 $content = sprintf(
1161 1156 "<strong>%1\$s</strong><br>%2\$s <a class='e-btn-1' href='%3\$s' target='_blank'>%4\$s</a>!",
1162 1157 $title,
1163 1158 $description,
@@ -1186,8 +1181,9 @@
1186 1181 }
1187 1182
1188 1183 public function register_ajax_hints( $ajax_manager ) {
1189 1184 $ajax_manager->register_ajax_action( 'elementor_image_optimization_campaign', [ $this, 'ajax_set_image_optimization_campaign' ] );
1185 + $ajax_manager->register_ajax_action( 'elementor_core_site_mailer_campaign', [ $this, 'ajax_site_mailer_campaign' ] );
1190 1186 $ajax_manager->register_ajax_action( 'elementor_core_ally_campaign', [ $this, 'ajax_ally_campaign' ] );
1191 1187 }
1192 1188
1193 1189 public function ajax_ally_campaign( $request ) {
@@ -1215,6 +1211,20 @@
1215 1211 'medium' => sanitize_key( $request['medium'] ?? '' ),
1216 1212 ];
1217 1213
1218 1214 set_transient( 'elementor_image_optimization_campaign', $campaign_data, 30 * DAY_IN_SECONDS );
1215 + }
1216 +
1217 + public function ajax_site_mailer_campaign( $request ) {
1218 + if ( ! current_user_can( 'install_plugins' ) ) {
1219 + return;
1220 + }
1221 +
1222 + $campaign_data = [
1223 + 'campaign' => sanitize_key( $request['campaign'] ?? '' ),
1224 + 'source' => sanitize_key( $request['source'] ?? '' ),
1225 + 'medium' => sanitize_key( $request['medium'] ?? '' ),
1226 + ];
1227 +
1228 + set_transient( 'elementor_site_mailer_campaign', $campaign_data, 30 * DAY_IN_SECONDS );
1219 1229 }
1220 1230 }