Skip to content

Commit

Permalink
added "Equally"
Browse files Browse the repository at this point in the history
  • Loading branch information
bainternet committed Jan 7, 2025
1 parent 2059498 commit 8c4f604
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions modules/legacy/components/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function maybe_add_introduction_modal() {
<iframe width="480" height="270" src="https://www.youtube.com/embed/MLpWrANjFbI?si=NugoZlkXwil9ya9P" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
<h2 style="color: #0C0D0E;font-family: Roboto;font-size: 24px;font-style: normal;font-weight: 700;line-height: 133.4%;"><?php esc_html_e( 'Switch to our new accessibility widget', 'pojo-accessibility' ); ?></h2>
<p><?php esc_html_e( '{{appName}} by Elementor is our new and improved accessibility widget. Get advanced customization, control, and customer support with one simple switch.', 'pojo-accessibility' ); ?></p>
<p><?php esc_html_e( 'Equally by Elementor is our new and improved accessibility widget. Get advanced customization, control, and customer support with one simple switch.', 'pojo-accessibility' ); ?></p>
<div>
<ul class="benefits">
<li>
Expand Down Expand Up @@ -221,8 +221,8 @@ public function maybe_add_confirmation_modal() {
<div id="<?php echo esc_html( self::CONFIRMATION_MODAL ); ?>" style="display:none;">
<div data-modal-slug="<?php echo esc_html( self::CONFIRMATION_MODAL ); ?>" class="modal-content-wrap">
<div>add icons here!!!</div>
<h2 style="color: #0C0D0E;font-family: Roboto;font-size: 24px;font-style: normal;font-weight: 700;line-height: 133.4%;"><?php esc_html_e( 'Confirm switching to {{appName}}', 'pojo-accessibility' ); ?></h2>
<p><?php esc_html_e( 'You’re about to switch from {{oldApp}}, which we no longer support, to {{appName}} by Elementor. Any previous settings will be removed, and this action cannot be undone.', 'pojo-accessibility' ); ?></p>
<h2 style="color: #0C0D0E;font-family: Roboto;font-size: 24px;font-style: normal;font-weight: 700;line-height: 133.4%;"><?php esc_html_e( 'Confirm switching to Equally', 'pojo-accessibility' ); ?></h2>
<p><?php esc_html_e( 'You’re about to switch from One click accessibility, which we no longer support, to Equally by Elementor. Any previous settings will be removed, and this action cannot be undone.', 'pojo-accessibility' ); ?></p>
<div class="footer-actions">
<a href="#" class="close-button"><?php esc_html_e( 'Keep Current' ); ?></a>
<a href="<?php echo esc_url( self::get_switch_now_link() ); ?>" class="button button-primary upgrade-now"><?php esc_html_e( 'Confirm and switch', 'pojo-accessibility' ); ?></a>
Expand Down Expand Up @@ -352,7 +352,7 @@ public function maybe_render_pointer() {
wp_enqueue_style( 'wp-pointer' );

$pointer_content = '<h3>' . esc_html__( 'Accessibility', 'pojo-accessibility' ) . '</h3>';
$pointer_content .= '<p>' . esc_html__( "Our new, improved accessibility widget is now available! {{appName}} is packed with advanced styling options, improved feature controls, and so much more. ", 'pojo-accessibility' ) . '</p>';
$pointer_content .= '<p>' . esc_html__( "Our new, improved accessibility widget is now available! Equally is packed with advanced styling options, improved feature controls, and so much more. ", 'pojo-accessibility' ) . '</p>';

$pointer_content .= sprintf(
'<p><a class="button button-primary ea11y-pointer-settings-link" href="%s">%s</a></p>',
Expand Down
10 changes: 8 additions & 2 deletions modules/legacy/notices/dismissible-deprecated-nag.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Dismissible_Deprecated_Nag extends Notice_Base {
public $capability = 'manage_options';
public string $id = 'dismissible-deprecated-nag';

public string $content = '<p>Time to take your site’s accessibility to the next level with {{appName}}, our newest accessibility widget is packed advanced customization, flexible feature controls, and a built-in statement generator. Want more details before switching? Learn more</p>';
public string $content = '<p>Time to take your site’s accessibility to the next level with Equally, our newest accessibility widget is packed advanced customization, flexible feature controls, and a built-in statement generator. Want more details before switching? Learn more</p>';

public function maybe_add_nag_deprecation_notice() {
if ( Upgrade::is_legacy_page() ) {
Expand All @@ -28,7 +28,13 @@ public function maybe_add_nag_deprecation_notice() {
}

public function content(): string {
return $this->content . '<p><a class="button button-primary" href="' . esc_attr( Upgrade::get_switch_now_link() ). '">Switch To {{appName}}</a></p>';
return sprintf( '<p>%s</p> <a href="%s">%s</a><p><a class="button button-primary" href="%s">%s</a></p>',
esc_html__( 'Time to take your site’s accessibility to the next level with Equally, our newest accessibility widget is packed advanced customization, flexible feature controls, and a built-in statement generator. Want more details before switching?', 'pojo-accessibility' ),
esc_attr( Upgrade::get_learn_more_link() ),
esc_html__( 'Learn more', 'pojo-accessibility' ),
esc_attr( Upgrade::get_switch_now_link() ),
esc_html__( 'Switch To Equally', 'pojo-accessibility' )
);
}

public function __construct() {
Expand Down
2 changes: 1 addition & 1 deletion modules/legacy/notices/sticky-deprecated-nag.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Sticky_Deprecated_Nag extends Notice_Base {
public function content(): string {
return sprintf( '<h4>%s</h4><p>%s<a href="%s">%s</a></p><p><a class="button button-primary" href="%s">%s</a></p>',
__( 'New accessibility widget available!', 'pojo-accessibility' ),
__( 'Your current accessibility Widget is no longer supported. Switch to {{appName}} by Elementor now to access more customization, control, and tools for a more inclusive site.', 'pojo-accessibility' ),
__( 'Your current accessibility Widget is no longer supported. Switch to Equally by Elementor now to access more customization, control, and tools for a more inclusive site.', 'pojo-accessibility' ),
Upgrade::get_learn_more_link(), // link to learn more
__( 'Learn More', 'pojo-accessibility' ),
Upgrade::get_switch_now_link(), // link to switch now
Expand Down

0 comments on commit 8c4f604

Please sign in to comment.