PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
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 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/heading.php +20 -57 4.0.73.32.2 View file →
@@ -265,10 +265,10 @@
265 265 [
266 266 'label' => esc_html__( 'Alignment', 'elementor' ),
267 267 'type' => Controls_Manager::CHOOSE,
268 268 'options' => [
269 - 'start' => [
270 - 'title' => esc_html__( 'Start', 'elementor' ),
269 + 'left' => [
270 + 'title' => esc_html__( 'Left', 'elementor' ),
271 271 'icon' => 'eicon-text-align-left',
272 272 ],
273 273 'center' => [
274 274 'title' => esc_html__( 'Center', 'elementor' ),
@@ -273,10 +273,10 @@
273 273 'center' => [
274 274 'title' => esc_html__( 'Center', 'elementor' ),
275 275 'icon' => 'eicon-text-align-center',
276 276 ],
277 - 'end' => [
278 - 'title' => esc_html__( 'End', 'elementor' ),
277 + 'right' => [
278 + 'title' => esc_html__( 'Right', 'elementor' ),
279 279 'icon' => 'eicon-text-align-right',
280 280 ],
281 281 'justify' => [
282 282 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -282,13 +282,8 @@
282 282 'title' => esc_html__( 'Justified', 'elementor' ),
283 283 'icon' => 'eicon-text-align-justify',
284 284 ],
285 285 ],
286 - 'classes' => 'elementor-control-start-end',
287 - 'selectors_dictionary' => [
288 - 'left' => is_rtl() ? 'end' : 'start',
289 - 'right' => is_rtl() ? 'start' : 'end',
290 - ],
291 286 'default' => '',
292 287 'selectors' => [
293 288 '{{WRAPPER}}' => 'text-align: {{VALUE}};',
294 289 ],
@@ -462,62 +457,30 @@
462 457
463 458 public function maybe_add_ally_heading_hint() {
464 459 $notice_id = 'ally_heading_notice';
465 460 $plugin_slug = 'pojo-accessibility';
466 -
467 461 if ( ! Hints::should_display_hint( $notice_id ) ) {
468 462 return;
469 463 }
464 + $notice_content = esc_html__( 'Make sure your page is structured with accessibility in mind. Ally helps detect and fix common issues across your site.', 'elementor' );
470 465
471 - $one_subscription = Hints::is_plugin_connected_to_one_subscription();
472 - $is_installed = Hints::is_plugin_installed( $plugin_slug );
473 - $is_active = Hints::is_plugin_active( $plugin_slug );
466 + $campaign_data = [
467 + 'name' => 'elementor_ea11y_campaign',
468 + 'campaign' => 'acc-scanner-plg-heading',
469 + 'source' => 'editor-heading-widget',
470 + 'medium' => 'editor',
471 + ];
474 472
475 - if ( $is_active ) {
476 - return;
477 - }
473 + $button_text = __( 'Install Plugin', 'elementor' );
474 + $action_url = Admin_Notices::add_plg_campaign_data( Hints::get_plugin_action_url( $plugin_slug ), $campaign_data );
478 475
479 - if ( $one_subscription ) {
480 - if ( ! $is_installed ) {
481 - $notice_content = esc_html__( 'Want to ensure this heading is accessible? Your ONE subscription includes Ally. Install it and scan your page.', 'elementor' );
482 - $button_text = esc_html__( 'Install now', 'elementor' );
483 - $button_url = Hints::get_plugin_install_url( $plugin_slug );
484 - $campaign_data = [
485 - 'name' => 'elementor_ea11y_campaign',
486 - 'campaign' => 'acc-scanner-plg-heading-one-install',
487 - 'source' => 'editor-heading-widget-one-install',
488 - 'medium' => 'editor-one',
489 - ];
490 - } elseif ( ! $is_active ) {
491 - $notice_content = esc_html__( 'Keep your content accessible. Activate Ally, included in ONE, to scan this page.', 'elementor' );
492 - $button_text = esc_html__( 'Activate now', 'elementor' );
493 - $button_url = Hints::get_plugin_activate_url( $plugin_slug );
494 - $campaign_data = [
495 - 'name' => 'elementor_ea11y_campaign',
496 - 'campaign' => 'acc-scanner-plg-heading-one-activate',
497 - 'source' => 'editor-heading-widget-one-non-activate',
498 - 'medium' => 'editor-one',
499 - ];
500 - }
501 - } else {
502 - $notice_content = esc_html__( 'Make sure your page is structured with accessibility in mind. Ally helps detect and fix common issues across your site.', 'elementor' );
503 - if ( ! $is_installed ) {
504 - $button_text = esc_html__( 'Install now', 'elementor' );
505 - $button_url = Hints::get_plugin_install_url( $plugin_slug );
506 - } elseif ( ! $is_active ) {
507 - $button_text = esc_html__( 'Activate now', 'elementor' );
508 - $button_url = Hints::get_plugin_activate_url( $plugin_slug );
509 - }
510 - $campaign_data = [
511 - 'name' => 'elementor_ea11y_campaign',
512 - 'campaign' => 'acc-scanner-plg-heading',
513 - 'source' => 'editor-heading-widget',
514 - 'medium' => 'editor',
515 - ];
476 + if ( Hints::is_plugin_installed( $plugin_slug ) && ! Hints::is_plugin_active( $plugin_slug ) ) {
477 + $button_text = __( 'Activate Plugin', 'elementor' );
478 + } else if ( Hints::is_plugin_active( $plugin_slug ) && empty( get_option( 'ea11y_access_token' ) ) ) {
479 + $button_text = __( 'Connect to Ally', 'elementor' );
480 + $action_url = admin_url( 'admin.php?page=accessibility-settings' );
516 481 }
517 482
518 - $notice_heading = esc_html__( 'Accessible structure matters', 'elementor' );
519 -
520 483 $this->add_control(
521 484 $notice_id,
522 485 [
523 486 'type' => Controls_Manager::RAW_HTML,
@@ -522,9 +485,9 @@
522 485 [
523 486 'type' => Controls_Manager::RAW_HTML,
524 487 'raw' => Hints::get_notice_template( [
525 488 'display' => ! Hints::is_dismissed( $notice_id ),
526 - 'heading' => $notice_heading,
489 + 'heading' => esc_html__( 'Accessible structure matters', 'elementor' ),
527 490 'type' => 'info',
528 491 'content' => $notice_content,
529 492 'icon' => true,
530 493 'dismissible' => $notice_id,
@@ -530,9 +493,9 @@
530 493 'dismissible' => $notice_id,
531 494 'button_text' => $button_text,
532 495 'button_event' => $notice_id,
533 496 'button_data' => [
534 - 'action_url' => Admin_Notices::add_plg_campaign_data( $button_url, $campaign_data ),
497 + 'action_url' => $action_url,
535 498 ],
536 499 ], true ),
537 500 ]
538 501 );