| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | private static $version = '2.0.0'; |
| 37 | 37 | /** |
| 38 | 38 | * Holds registered products. |
| 39 | 39 | * |
| 40 | - * @var array The products which use the SDK. | |
| 40 | + * @var array<Product> The products which use the SDK. | |
| 41 | 41 | */ |
| 42 | 42 | private static $products = []; |
| 43 | 43 | /** |
| 44 | 44 | * Holds available modules to load. |
| @@ -52,8 +52,9 @@ | ||
| 52 | 52 | 'uninstall_feedback', |
| 53 | 53 | 'licenser', |
| 54 | 54 | 'logger', |
| 55 | 55 | 'translate', |
| 56 | + 'translations', | |
| 56 | 57 | 'review', |
| 57 | 58 | 'recommendation', |
| 58 | 59 | 'notification', |
| 59 | 60 | 'promotions', |
| @@ -61,8 +62,9 @@ | ||
| 61 | 62 | 'compatibilities', |
| 62 | 63 | 'about_us', |
| 63 | 64 | 'announcements', |
| 64 | 65 | 'featured_plugins', |
| 66 | + 'float_widget', | |
| 65 | 67 | ]; |
| 66 | 68 | /** |
| 67 | 69 | * Holds the labels for the modules. |
| 68 | 70 | * |
| @@ -111,10 +113,18 @@ | ||
| 111 | 113 | 'inactive' => 'In order to benefit from updates and support for %s, please add your license code from your %spurchase history%s and validate it %shere%s.', |
| 112 | 114 | 'no_activations' => 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.', |
| 113 | 115 | ], |
| 114 | 116 | 'promotions' => [ |
| 115 | - 'recommended' => 'Recommended by %s', | |
| 116 | - 'woo' => [ | |
| 117 | + 'recommended' => 'Recommended by %s', | |
| 118 | + 'installActivate' => 'Install & Activate', | |
| 119 | + 'preview' => 'Preview', | |
| 120 | + 'installing' => 'Installing', | |
| 121 | + 'activating' => 'Activating', | |
| 122 | + 'connecting' => 'Connecting to API', | |
| 123 | + 'learnmore' => 'Learn More', | |
| 124 | + 'activate' => 'Activate', | |
| 125 | + 'all_set' => 'Awesome! You are all set!', | |
| 126 | + 'woo' => [ | |
| 117 | 127 | 'title' => 'More extensions from Themeisle', |
| 118 | 128 | 'title2' => 'Recommended extensions', |
| 119 | 129 | 'cta_install' => 'Install', |
| 120 | 130 | 'learn_more' => 'Learn More', |
| @@ -127,25 +137,42 @@ | ||
| 127 | 137 | 'spark_desc1' => 'Loyalize your customers by allowing them to save their favorite products.', |
| 128 | 138 | 'spark_desc2' => 'Add a top notification bar on your website to highlight the latest products, offers, or upcoming events.', |
| 129 | 139 | 'spark_desc3' => 'Enable an advanced review section, enlarging the basic review options with lots of capabilities.', |
| 130 | 140 | ], |
| 131 | - 'optimole' => [ | |
| 132 | - 'all_set' => 'Awesome! You are all set!', | |
| 133 | - 'gotodash' => 'Go to Optimole dashboard', | |
| 134 | - 'installing' => 'Installing', | |
| 135 | - 'activating' => 'Activating', | |
| 136 | - 'connecting' => 'Connecting to API', | |
| 137 | - 'start_cta' => 'Start using Optimole', | |
| 138 | - 'dismisscta' => 'Dismiss this notice.', | |
| 139 | - 'gst' => 'Get Started Free', | |
| 140 | - 'heading' => 'Get more with Optimole', | |
| 141 | - 'learnmore' => 'Learn more', | |
| 142 | - 'message1' => 'Increase this page speed and SEO ranking by optimizing images with Optimole.', | |
| 143 | - 'message3' => 'Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.', | |
| 144 | - 'message4' => 'This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images.', | |
| 145 | - 'message2' => 'Leverage Optimole\'s full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!', | |
| 146 | - 'email_placeholder' => 'Email address', | |
| 141 | + | |
| 142 | + 'feedzy' => [ | |
| 143 | + 'import_desc' => 'Schedule automatic content imports from any RSS feed directly to your site. %sBuilt by %s%s', | |
| 144 | + 'install_now' => 'Install Now', | |
| 145 | + 'by' => 'by %s', | |
| 146 | + 'editor_recommends' => '%s recommends %sFeedzy%s to display entries from any RSS feed with more advanced styling and filtering options.', | |
| 147 | 147 | ], |
| 148 | + 'optimole' => [ | |
| 149 | + 'installOptimole' => 'Install Optimole', | |
| 150 | + 'gotodash' => 'Go to Optimole dashboard', | |
| 151 | + 'dismisscta' => 'Dismiss this notice.', | |
| 152 | + 'message1' => 'Increase this page speed and SEO ranking by optimizing images with Optimole.', | |
| 153 | + 'message3' => 'Save your server space by storing images to Optimole and deliver them optimized from 400 locations around the globe. Unlimited images, Unlimited traffic.', | |
| 154 | + 'message4' => 'This image looks to be too large and would affect your site speed, we recommend you to install Optimole to optimize your images.', | |
| 155 | + 'message2' => 'Leverage Optimole\'s full integration with Elementor to automatically lazyload, resize, compress to AVIF/WebP and deliver from 400 locations around the globe!', | |
| 156 | + ], | |
| 157 | + 'redirectionCF7' => [ | |
| 158 | + 'gotodash' => 'Go to Contact Forms', | |
| 159 | + 'dismisscta' => 'Dismiss this notice.', | |
| 160 | + 'gst' => 'Get Started Free', | |
| 161 | + 'message' => 'Add URL redirects, spam protection, execute JavaScript after submissions, and more with the Redirection for CF7 free plugin.', | |
| 162 | + ], | |
| 163 | + 'hyve' => [ | |
| 164 | + 'gotodash' => 'Go to Hyve Dashboard', | |
| 165 | + 'install' => 'Install Hyve', | |
| 166 | + 'dismisscta' => 'Dismiss this notice.', | |
| 167 | + 'message' => 'Hyve is an AI-powered chatbot that turns your WordPress content into interactive conversations, helping you efficiently handle user inquiries.', | |
| 168 | + ], | |
| 169 | + 'wp_full_pay' => [ | |
| 170 | + 'gotodash' => 'Go to WP Full Pay Settings', | |
| 171 | + 'install' => 'Install WP Full Pay', | |
| 172 | + 'dismisscta' => 'Dismiss this notice.', | |
| 173 | + 'message' => 'Enhance your donation page with WP Full Pay—create custom Stripe forms for one-time and recurring donations, manage transactions easily, and boost support with a seamless setup.', | |
| 174 | + ], | |
| 148 | 175 | ], |
| 149 | 176 | 'welcome' => [ |
| 150 | 177 | 'ctan' => 'No, thanks.', |
| 151 | 178 | 'ctay' => 'Upgrade Now!', |
| @@ -275,8 +302,24 @@ | ||
| 275 | 302 | ], |
| 276 | 303 | ], |
| 277 | 304 | ], |
| 278 | 305 | ], |
| 306 | + 'float_widget' => [ | |
| 307 | + 'button' => 'Toggle Help Widget for %s', | |
| 308 | + 'panel' => [ | |
| 309 | + 'greeting' => 'Thank you for using %s', | |
| 310 | + 'title' => 'How can we help you?', | |
| 311 | + 'close' => 'Close Toggle Help Widget', | |
| 312 | + ], | |
| 313 | + 'links' => [ | |
| 314 | + 'documentation' => 'Documentation', | |
| 315 | + 'support' => 'Get Support', | |
| 316 | + 'wizard' => 'Run Setup Wizard', | |
| 317 | + 'upgrade' => 'Upgrade to Pro', | |
| 318 | + 'feature_request' => 'Suggest a Feature', | |
| 319 | + 'rate' => 'Rate Us', | |
| 320 | + ], | |
| 321 | + ], | |
| 279 | 322 | ]; |
| 280 | 323 | |
| 281 | 324 | /** |
| 282 | 325 | * Initialize the sdk logic. |
| @@ -352,9 +395,9 @@ | ||
| 352 | 395 | |
| 353 | 396 | /** |
| 354 | 397 | * Get all products using the SDK. |
| 355 | 398 | * |
| 356 | - * @return array Products available. | |
| 399 | + * @return array<Product> Products available. | |
| 357 | 400 | */ |
| 358 | 401 | public static function get_products() { |
| 359 | 402 | return self::$products; |
| 360 | 403 | } |