Skip to content

Commit 27bfa67

Browse files
authored
Update/app 1029 app name (#173)
* update: plugin name * update: default menu option * update: menu structure * update: add inline checks * update: reduce padding on app icon in menu * fix: height of the modal * update: app menu icon color * update: menu icon colors * fix: menu icon size * update: plugin names * update: HELP_LINK * update: app name * update: icon background color * update: icon size * fix: admin icon size * fix: width of the sidebar
1 parent 2920503 commit 27bfa67

File tree

16 files changed

+50
-52
lines changed

16 files changed

+50
-52
lines changed

assets/css/admin.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#adminmenu .toplevel_page_accessibility-settings .wp-menu-image img {
2-
width: 18px;
3-
height: 18px;
4-
padding: 8px 0 0 3px;
2+
width: 20px;
3+
height: 20px;
4+
padding: 7px 0;
55

66
opacity: 1;
77
filter: none;

assets/images/menu-icon-wp.svg

Lines changed: 6 additions & 0 deletions
Loading

modules/legacy/components/upgrade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function maybe_add_introduction_modal() {
176176
></iframe>
177177
</div>
178178
<h2 class="intro-title"><?php esc_html_e( 'Switch to our new accessibility widget', 'pojo-accessibility' ); ?></h2>
179-
<p class="intro-description typography-body1"><?php esc_html_e( 'Web Accessibility by Elementor is our new and improved accessibility plugin. Get advanced customization, control, and customer support with one simple switch.', 'pojo-accessibility' ); ?></p>
179+
<p class="intro-description typography-body1"><?php esc_html_e( 'Ally - Web Accessibility by Elementor is our new and improved accessibility plugin. Get advanced customization, control, and customer support with one simple switch.', 'pojo-accessibility' ); ?></p>
180180
<div>
181181
<ul class="benefits typography-body1">
182182
<li>
@@ -191,7 +191,7 @@ public function maybe_add_introduction_modal() {
191191
<a class="intro-learn-more no-underline typography-body1" href="<?php echo esc_url( self::get_learn_more_link( 'acc-popup-switch-oc' ) ); ?>"><?php esc_html_e( 'Learn more about the changes', 'pojo-accessibility' ); ?></a>
192192
<div class="footer-actions">
193193
<a href="#" class="close-button no-underline"><?php esc_html_e( 'Not now', 'pojo-accessibility' ); ?></a>
194-
<a href="<?php echo esc_url( self::get_switch_now_link() ); ?>" class="button button-primary switch-now"><?php esc_html_e( 'Switch to Web Accessibility', 'pojo-accessibility' ); ?></a>
194+
<a href="<?php echo esc_url( self::get_switch_now_link() ); ?>" class="button button-primary switch-now"><?php esc_html_e( 'Switch to Ally', 'pojo-accessibility' ); ?></a>
195195
</div>
196196
</div>
197197
</div>
@@ -366,8 +366,8 @@ public function maybe_add_confirmation_modal() {
366366
</svg>
367367
</div>
368368
</div>
369-
<h2 class="confirmation-title"><?php esc_html_e( 'Confirm switching to Web Accessibility', 'pojo-accessibility' ); ?></h2>
370-
<p class="confirmation-description"><?php esc_html_e( 'You’re about to switch from One click accessibility, which we no longer support, to Web Accessibility by Elementor. Any previous settings will be removed, and this action cannot be undone.', 'pojo-accessibility' ); ?></p>
369+
<h2 class="confirmation-title"><?php esc_html_e( 'Confirm switching to Ally - Web Accessibility', 'pojo-accessibility' ); ?></h2>
370+
<p class="confirmation-description"><?php esc_html_e( 'You’re about to switch from One click accessibility, which we no longer support, to Ally - Web Accessibility by Elementor. Any previous settings will be removed, and this action cannot be undone.', 'pojo-accessibility' ); ?></p>
371371
<div class="footer-actions">
372372
<a href="#" class="close-button no-underline"><?php esc_html_e( 'Keep Current', 'pojo-accessibility' ); ?></a>
373373
<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>
@@ -568,7 +568,7 @@ public function maybe_render_pointer() {
568568
wp_enqueue_style( 'wp-pointer' );
569569

570570
$pointer_content = '<h3>' . esc_html__( 'Accessibility', 'pojo-accessibility' ) . '</h3>';
571-
$pointer_content .= '<p>' . esc_html__( 'Our new, improved accessibility plugin is now available! Web Accessibility is packed with advanced styling options, improved feature controls, and so much more.', 'pojo-accessibility' ) . '</p>';
571+
$pointer_content .= '<p>' . esc_html__( 'Our new, improved accessibility plugin is now available! Ally - Web Accessibility by Elementor is packed with advanced styling options, improved feature controls, and so much more.', 'pojo-accessibility' ) . '</p>';
572572

573573
$pointer_content .= sprintf(
574574
'<p><a class="button button-primary ea11y-pointer-settings-link" href="%s">%s</a></p>',

modules/legacy/notices/dismissible-deprecated-nag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function maybe_add_nag_deprecation_notice() {
2727

2828
public function content(): string {
2929
return sprintf( '<p>%s <a href="%s">%s</a></p><p><a class="button button-primary" href="%s">%s</a></p>',
30-
esc_html__( 'Time to take your site’s accessibility to the next level with Web Accessibility, our newest plugin packed with advanced widget customization, flexible feature controls, and a built-in statement generator. Want more details before switching?', 'pojo-accessibility' ),
30+
esc_html__( 'Time to take your site’s accessibility to the next level with Ally - Web Accessibility by Elementor, our newest plugin packed with advanced widget customization, flexible feature controls, and a built-in statement generator. Want more details before switching?', 'pojo-accessibility' ),
3131
esc_attr( Upgrade::get_learn_more_link( 'acc-notice-switch-dash' ) ),
3232
esc_html__( 'Learn more', 'pojo-accessibility' ),
3333
esc_attr( Upgrade::get_switch_now_link() ),
34-
esc_html__( 'Switch To Web Accessibility', 'pojo-accessibility' )
34+
esc_html__( 'Switch To Ally - Web Accessibility by Elementor', 'pojo-accessibility' )
3535
);
3636
}
3737

modules/legacy/notices/sticky-deprecated-nag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class Sticky_Deprecated_Nag extends Notice_Base {
2222
public function content(): string {
2323
return sprintf( '<h4>%s</h4><p>%s<a href="%s">%s</a></p><p><a class="button button-primary" href="%s">%s</a></p>',
2424
__( 'New accessibility plugin available!', 'pojo-accessibility' ),
25-
__( 'Your current plugin is no longer supported. Switch to Web Accessibility by Elementor now to access more customization, control, and tools for a more inclusive site.', 'pojo-accessibility' ),
25+
__( 'Your current plugin is no longer supported. Switch to Ally - Web Accessibility by Elementor now to access more customization, control, and tools for a more inclusive site.', 'pojo-accessibility' ),
2626
Upgrade::get_learn_more_link( 'acc-notice-switch-oc' ), // link to learn more
2727
__( 'Learn More', 'pojo-accessibility' ),
2828
Upgrade::get_switch_now_link(), // link to switch now
29-
__( 'Switch Web Accessibility', 'pojo-accessibility' )
29+
__( 'Switch Ally - Web Accessibility by Elementor', 'pojo-accessibility' )
3030
);
3131
}
3232

modules/settings/assets/js/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ const App = () => {
5151
});
5252
}, []);
5353

54-
const selectedParent = MenuItems[selectedMenu.parent];
55-
const selectedChild = selectedMenu.child
56-
? selectedParent.children[selectedMenu.child]
54+
const selectedParent = MenuItems[selectedMenu?.parent];
55+
const selectedChild = selectedMenu?.child
56+
? selectedParent?.children[selectedMenu?.child]
5757
: null;
5858

5959
return (
@@ -69,7 +69,7 @@ const App = () => {
6969
<PageContent
7070
// Looks the best if we have both checks
7171
isLoading={!hasFinishedResolution || loading}
72-
page={selectedChild ? selectedChild.page : selectedParent?.page}
72+
page={selectedChild ? selectedChild?.page : selectedParent?.page}
7373
/>
7474
</StyledContainer>
7575
</StyledGrid>

modules/settings/assets/js/components/connect-modal/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const StyledGrid = styled(Grid)`
2525
2626
width: 600px;
2727
max-width: 95%;
28-
height: 552px;
28+
height: 570px;
2929
gap: 0;
3030
background-color: ${({ theme }) => theme.palette.background.paper};
3131
padding: ${({ theme }) => theme.spacing(5)};
@@ -65,7 +65,7 @@ const ConnectModal = () => {
6565

6666
<Typography variant="body2" color="text.primary" width={400}>
6767
{__(
68-
'Make your site more inclusive with Web accessibility.',
68+
'Make your site more inclusive with Ally - Web Accessibility by Elementor.',
6969
'pojo-accessibility',
7070
)}
7171
</Typography>

modules/settings/assets/js/components/post-connect-modal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const PostConnectModal = () => {
6868
marginBottom={5}
6969
>
7070
{__(
71-
'Web accessibility is now connected and ready to use on your site.',
71+
'Ally - Web Accessibility by Elementor is now connected and ready to use on your site.',
7272
'pojo-accessibility',
7373
)}
7474
</Typography>

modules/settings/assets/js/components/sidebar-app-bar/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import { __ } from '@wordpress/i18n';
1111
const StyledHeading = styled(Box)`
1212
display: flex;
1313
align-items: center;
14-
justify-content: center;
15-
padding: ${({ theme }) => theme.spacing(0.5)};
16-
padding-top: 0;
14+
justify-content: flex-start;
15+
padding: 0;
16+
width: 200px;
1717
`;
1818

1919
const SidebarAppBar = () => {
@@ -24,17 +24,16 @@ const SidebarAppBar = () => {
2424
<Toolbar
2525
disableGutters
2626
variant="dense"
27-
sx={{ justifyContent: 'flex-start' }}
27+
sx={{ justifyContent: 'space-between' }}
2828
>
2929
<StyledHeading>
3030
<ElementorLogo />
31-
3231
<Typography
3332
variant="h6"
3433
marginLeft={0.5}
3534
display={!openSidebar ? 'none' : 'inherit'}
3635
>
37-
{__('Web accessibility', 'pojo-accessibility')}
36+
{__('Ally', 'pojo-accessibility')}
3837
</Typography>
3938
</StyledHeading>
4039

modules/settings/assets/js/components/sidebar-menu/menu.js

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
import { PagesIcon } from '@elementor/icons';
1+
import { PagesIcon, SettingsIcon } from '@elementor/icons';
22
import { WidgetIcon } from '@ea11y/icons';
33
import { AccessibilityStatement, Menu, IconSettings } from '@ea11y/pages';
44
import { __ } from '@wordpress/i18n';
55
import AccessibilityStatementTooltip from './tooltips/accessibility-statement';
66

77
export const MenuItems = {
8-
widget: {
9-
name: __('Widget', 'pojo-accessibility'),
10-
key: 'widget',
11-
icon: <WidgetIcon size="small" />,
12-
children: {
13-
iconSettings: {
14-
name: __('Button', 'pojo-accessibility'),
15-
key: 'icon-settings',
16-
page: <IconSettings />,
17-
},
18-
menu: {
19-
name: __('Capabilities', 'pojo-accessibility'),
20-
key: 'menu',
21-
page: <Menu />,
22-
},
23-
},
8+
design: {
9+
name: __('Design', 'pojo-accessibility'),
10+
key: 'design',
11+
page: <IconSettings />,
12+
icon: <WidgetIcon />,
13+
},
14+
capabilities: {
15+
name: __('Capabilities', 'pojo-accessibility'),
16+
key: 'capabilities',
17+
page: <Menu />,
18+
icon: <SettingsIcon size="small" sx={{ color: 'common.black' }} />,
2419
},
2520
accessibilityStatement: {
2621
name: __('Statement', 'pojo-accessibility'),

0 commit comments

Comments
 (0)