From 2ee6c6e849cb30cbec73b36a04214dccb4952e3f Mon Sep 17 00:00:00 2001 From: Sourov Roy Date: Wed, 2 Sep 2020 18:27:59 +0600 Subject: [PATCH 1/4] Update modal UI --- src/Insights.php | 305 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 207 insertions(+), 98 deletions(-) diff --git a/src/Insights.php b/src/Insights.php index 039f67c..fab047f 100644 --- a/src/Insights.php +++ b/src/Insights.php @@ -674,45 +674,45 @@ private function get_uninstall_reasons() { $reasons = array( array( 'id' => 'could-not-understand', - 'text' => $this->client->__trans( "I couldn't understand how to make it work" ), - 'type' => 'textarea', - 'placeholder' => $this->client->__trans( 'Would you like us to assist you?' ) + 'text' => $this->client->__trans( "Couldn't understand" ), + 'placeholder' => $this->client->__trans( 'Would you like us to assist you?' ), + 'icon' => '' ), array( 'id' => 'found-better-plugin', - 'text' => $this->client->__trans( 'I found a better plugin' ), - 'type' => 'text', - 'placeholder' => $this->client->__trans( 'Which plugin?' ) + 'text' => $this->client->__trans( 'Found a better plugin' ), + 'placeholder' => $this->client->__trans( 'Which plugin?' ), + 'icon' => '', ), array( 'id' => 'not-have-that-feature', - 'text' => $this->client->__trans( "The plugin is great, but I need specific feature that you don't support" ), - 'type' => 'textarea', - 'placeholder' => $this->client->__trans( 'Could you tell us more about that feature?' ) + 'text' => $this->client->__trans( "Missing a specific feature" ), + 'placeholder' => $this->client->__trans( 'Could you tell us more about that feature?' ), + 'icon' => '', ), array( 'id' => 'is-not-working', - 'text' => $this->client->__trans( 'The plugin is not working' ), - 'type' => 'textarea', - 'placeholder' => $this->client->__trans( 'Could you tell us a bit more whats not working?' ) + 'text' => $this->client->__trans( 'Not working' ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more whats not working?' ), + 'icon' => '', ), array( 'id' => 'looking-for-other', - 'text' => $this->client->__trans( "It's not what I was looking for" ), - 'type' => '', - 'placeholder' => '' + 'text' => $this->client->__trans( "Not what I was looking" ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more?' ), + 'icon' => '', ), array( 'id' => 'did-not-work-as-expected', - 'text' => $this->client->__trans( "The plugin didn't work as expected" ), - 'type' => 'textarea', - 'placeholder' => $this->client->__trans( 'What did you expect?' ) + 'text' => $this->client->__trans( "Didn't work as expected" ), + 'placeholder' => $this->client->__trans( 'What did you expect?' ), + 'icon' => '', ), array( 'id' => 'other', - 'text' => $this->client->__trans( 'Other' ), - 'type' => 'textarea', - 'placeholder' => $this->client->__trans( 'Could you tell us a bit more?' ) + 'text' => $this->client->__trans( 'Others' ), + 'placeholder' => $this->client->__trans( 'Could you tell us a bit more?' ), + 'icon' => '', ), ); @@ -751,23 +751,29 @@ public function deactivate_scripts() { return; } + $this->deactivation_modal_styles(); $reasons = $this->get_uninstall_reasons(); ?>
-

client->_etrans( 'If you have a moment, please let us know why you are deactivating:' ); ?>

+

client->_etrans( 'Goodbyes are always hard. If you have a moment, please let us know how we can improve.' ); ?>

-
- -