Skip to content

Commit

Permalink
fix: label for float widget
Browse files Browse the repository at this point in the history
References: Codeinwp/redirection-for-contact-form-7/pull/7
  • Loading branch information
preda-bogdan committed Jun 19, 2024
1 parent 2101ae4 commit 4d28029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ final class Loader {
],
],
'float_widget' => [
'button' => 'Toggle Help Widget',
'button' => 'Toggle Help Widget for %s',
'panel' => [
'greeting' => 'Thank you for using %s',
'title' => 'How can we help you?',
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Float_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private function get_float_localization_data() {
'logoUrl' => $this->float_widget_data['logo'],
'primaryColor' => esc_attr( $this->float_widget_data['primary_color'] ),
'strings' => [
'toggleButton' => Loader::$labels['float_widget']['button'],
'toggleButton' => sprintf( Loader::$labels['float_widget']['button'], $this->float_widget_data['nice_name'] ),
'panelGreet' => sprintf( Loader::$labels['float_widget']['panel']['greeting'], $this->float_widget_data['nice_name'] ),
'panelTitle' => Loader::$labels['float_widget']['panel']['title'],
'closeToggle' => Loader::$labels['float_widget']['panel']['close'],
Expand Down

0 comments on commit 4d28029

Please sign in to comment.