Skip to content

Commit

Permalink
Added title for fullscreen mode toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
suvedisamyog committed Oct 4, 2024
1 parent f633ee8 commit 944bcf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,13 @@ jQuery(function ($) {
if ($this.hasClass("closed")) {
$this.removeClass("closed");
$this.addClass("opened");
$(this).attr('title' , user_registration_form_builder_data.i18n_admin.i18n_exit_fullscreen_mode )

$("body").addClass("ur-full-screen-mode");
} else {
$this.removeClass("opened");
$this.addClass("closed");
$(this).attr('title' , user_registration_form_builder_data.i18n_admin.i18n_fullscreen_mode );

$("body").removeClass("ur-full-screen-mode");
}
Expand Down
2 changes: 2 additions & 0 deletions includes/admin/class-ur-admin-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ public static function get_i18n_admin_data() {
'i18n_learn_more' => esc_html__( 'Learn More', 'user-registration' ),
'i18n_upgrade_to_pro' => esc_html__( 'Upgrade plan', 'user-registration' ),
'i18n_ok' => esc_html__( 'OK', 'user-registration' ),
'i18n_fullscreen_mode' => esc_html__( 'Fullscreen', 'user-registration' ),
'i18n_exit_fullscreen_mode' => esc_html__( 'Exit Fullscreen', 'user-registration' ),
'i18n_default_cannot_delete_message' => esc_html__( 'WordPress requires the user to have an email address during registration.', 'user-registration' ),
);

Expand Down

0 comments on commit 944bcf4

Please sign in to comment.