← All changes
|
vendor/codeinwp/themeisle-sdk/src/Modules/Review.php
+11
-6
4.0.4
→
3.4.4
View file →
| @@ -11,9 +11,8 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace ThemeisleSDK\Modules; |
| 13 | 13 | |
| 14 | 14 | use ThemeisleSDK\Common\Abstract_Module; |
| 15 | -use ThemeisleSDK\Loader; | |
| 16 | 15 | use ThemeisleSDK\Product; |
| 17 | 16 | |
| 18 | 17 | // Exit if accessed directly. |
| 19 | 18 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -53,25 +52,31 @@ | ||
| 53 | 52 | */ |
| 54 | 53 | public function add_notification( $all_notifications ) { |
| 55 | 54 | |
| 56 | 55 | $developers = [ |
| 56 | + 'Bogdan', | |
| 57 | 57 | 'Marius', |
| 58 | 58 | 'Hardeep', |
| 59 | + 'Rodica', | |
| 60 | + 'Stefan', | |
| 61 | + 'Uriahs', | |
| 62 | + 'Madalin', | |
| 63 | + 'Cristi', | |
| 64 | + 'Silviu', | |
| 59 | 65 | 'Andrei', |
| 60 | - 'Robert', | |
| 61 | 66 | ]; |
| 62 | 67 | |
| 63 | 68 | $link = 'https://wordpress.org/support/' . $this->product->get_type() . '/' . $this->product->get_slug() . '/reviews/#wporg-footer'; |
| 64 | 69 | |
| 65 | - $message = apply_filters( $this->product->get_key() . '_feedback_review_message', Loader::$labels['review']['notice'] ); | |
| 70 | + $message = apply_filters( $this->product->get_key() . '_feedback_review_message', '<p>Hey, it\'s great to see you have <b>{product}</b> active for a few days now. How is everything going? If you can spare a few moments to rate it on WordPress.org it would help us a lot (and boost my motivation). Cheers! <br/> <br/>~ {developer}, developer of {product}</p>' ); | |
| 66 | 71 | |
| 67 | - $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', Loader::$labels['review']['ctay'] ); | |
| 68 | - $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', Loader::$labels['review']['ctan'] ); | |
| 72 | + $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', 'Ok, I will gladly help.' ); | |
| 73 | + $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', 'No, thanks.' ); | |
| 69 | 74 | $message = str_replace( |
| 70 | 75 | [ '{product}', '{developer}' ], |
| 71 | 76 | [ |
| 72 | 77 | $this->product->get_friendly_name(), |
| 73 | - $developers[ strlen( get_site_url() ) % count( $developers ) ], | |
| 78 | + $developers[ strlen( get_site_url() ) % 10 ], | |
| 74 | 79 | ], |
| 75 | 80 | $message |
| 76 | 81 | ); |
| 77 | 82 | |