| @@ -361,12 +361,8 @@ | ||
| 361 | 361 | * |
| 362 | 362 | * @return bool |
| 363 | 363 | */ |
| 364 | 364 | public static function is_plugin_active( $plugin ): bool { |
| 365 | - if ( ! function_exists( 'is_plugin_active' ) ) { | |
| 366 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| 367 | - } | |
| 368 | - | |
| 369 | 365 | $plugin = self::ensure_plugin_folder( $plugin ); |
| 370 | 366 | return is_plugin_active( $plugin ); |
| 371 | 367 | } |
| 372 | 368 | |
| @@ -459,18 +455,18 @@ | ||
| 459 | 455 | |
| 460 | 456 | private static function get_all_widget_content( $step, $one_subscription = false ) { |
| 461 | 457 | if ( $one_subscription ) { |
| 462 | 458 | $steps = [ |
| 463 | - self::INSTALL => esc_html__( 'Want to create an inclusive experience? Install Web Accessibility, included in ONE, and add an accessibility widget to your site.', 'elementor' ), | |
| 464 | - self::ACTIVATE => esc_html__( 'Your ONE subscription includes Web Accessibility. Activate it to place an accessibility widget on your site.', 'elementor' ), | |
| 465 | - self::CONNECT => esc_html__( "Connect the Web Accessibility plugin to your account to access all of it's accessibility features.", 'elementor' ), | |
| 459 | + self::INSTALL => esc_html__( 'Want to create an inclusive experience? Install Ally, included in ONE, and add an accessibility widget to your site.', 'elementor' ), | |
| 460 | + self::ACTIVATE => esc_html__( 'Your ONE subscription includes Ally. Activate it to place an accessibility widget on your site.', 'elementor' ), | |
| 461 | + self::CONNECT => esc_html__( "Connect the Ally plugin to your account to access all of it's accessibility features.", 'elementor' ), | |
| 466 | 462 | self::CUSTOMIZE => esc_html__( "Customize the widget's look, position and the capabilities available for your visitors.", 'elementor' ), |
| 467 | 463 | ]; |
| 468 | 464 | } else { |
| 469 | 465 | $steps = [ |
| 470 | - self::INSTALL => esc_html__( 'Install Web Accessibility to add an accessibility widget visitors can use to navigate your site.', 'elementor' ), | |
| 471 | - self::ACTIVATE => esc_html__( 'Activate the Web Accessibility plugin to turn its accessibility features on across your site.', 'elementor' ), | |
| 472 | - self::CONNECT => esc_html__( "Connect the Web Accessibility plugin to your account to access all of it's accessibility features.", 'elementor' ), | |
| 466 | + self::INSTALL => esc_html__( 'Install Ally to add an accessibility widget visitors can use to navigate your site.', 'elementor' ), | |
| 467 | + self::ACTIVATE => esc_html__( 'Activate the Ally plugin to turn its accessibility features on across your site.', 'elementor' ), | |
| 468 | + self::CONNECT => esc_html__( "Connect the Ally plugin to your account to access all of it's accessibility features.", 'elementor' ), | |
| 473 | 469 | self::CUSTOMIZE => esc_html__( "Customize the widget's look, position and the capabilities available for your visitors.", 'elementor' ), |
| 474 | 470 | ]; |
| 475 | 471 | } |
| 476 | 472 | return $steps[ $step ]; |
| @@ -534,9 +530,9 @@ | ||
| 534 | 530 | $step = self::CUSTOMIZE; |
| 535 | 531 | } |
| 536 | 532 | |
| 537 | 533 | $data = [ |
| 538 | - 'title' => __( 'Web accessibility', 'elementor' ), | |
| 534 | + 'title' => __( 'Ally web accessibility', 'elementor' ), | |
| 539 | 535 | 'content' => self::get_all_widget_content( $step, $one_subscription ), |
| 540 | 536 | 'action_button' => self::get_ally_cta_button( $step, $one_subscription ), |
| 541 | 537 | ]; |
| 542 | 538 | |