PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.1.3
ShopBuilder – WooCommerce Builder For Elementor v3.1.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/Admin/PluginRow.php +37 -26 2.1.63.1.3 View file →
@@ -44,9 +44,9 @@
44 44 $new_links = [];
45 45 $demo_url = 'https://shopbuilderwp.com/';
46 46 $new_links[] = '<a href="' . admin_url( 'admin.php?page=rtsb-settings' ) . '">' . esc_html__( 'Settings', 'shopbuilder' ) . '</a>';
47 47 $new_links[] = '<a target="_blank" href="' . esc_url( $demo_url ) . '">' . esc_html__( 'Demo', 'shopbuilder' ) . '</a>';
48 - $new_links[] = '<a target="_blank" href="' . esc_url( 'https://www.radiustheme.com/docs/shopbuilder/getting-started/requirements/' ) . '">' . esc_html__( 'Documentation', 'shopbuilder' ) . '</a>';
48 + $new_links[] = '<a target="_blank" href="' . esc_url( 'https://shopbuilderwp.com/docs/' ) . '">' . esc_html__( 'Documentation', 'shopbuilder' ) . '</a>';
49 49
50 50 $links = array_merge( $new_links, $links );
51 51
52 52 if ( ! rtsb()->has_pro() ) {
@@ -68,8 +68,9 @@
68 68
69 69 if ( RTSB_ACTIVE_FILE_NAME === $file ) {
70 70 $report_url = 'https://www.radiustheme.com/contact/';
71 71 $row_meta['issues'] = sprintf(
72 + /* translators: %1$s: Report URL, %2$s: Facing issue?, %3$s: Please open a support ticket. */
72 73 '%2$s <a target="_blank" href="%1$s"><span style="color: red">%3$s</span></a>',
73 74 esc_url( $report_url ),
74 75 esc_html__( 'Facing issue?', 'shopbuilder' ),
75 76 esc_html__( 'Please open a support ticket.', 'shopbuilder' )
@@ -80,13 +81,9 @@
80 81
81 82 return (array) $links;
82 83 }
83 84
84 - // Servay
85 -
86 85 /***
87 - * @param $mimes
88 - *
89 86 * @return mixed
90 87 */
91 88 public function deactivation_popup() {
92 89 global $pagenow;
@@ -154,10 +151,8 @@
154 151 <?php
155 152 }
156 153
157 154 /***
158 - * @param $mimes
159 - *
160 155 * @return mixed
161 156 */
162 157 public function dialog_box_style() {
163 158 ?>
@@ -212,12 +207,8 @@
212 207 margin: auto;
213 208 padding: 0;
214 209 }
215 210
216 - /*#deactivation-dialog-*/<?php //echo esc_attr( $this->textdomain ); ?>/* .feedback-label {*/
217 - /* font-size: 15px;*/
218 - /*}*/
219 -
220 211 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> p {
221 212 font-size: 15px;
222 213 }
223 214
@@ -233,9 +224,9 @@
233 224 }
234 225
235 226 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content textarea:focus {
236 227 border-color: #2271b1;
237 - }
228 + }
238 229
239 230 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content input.feedback-feedback-text {
240 231 border: 1px solid rgba(0, 0, 0, 0.3);
241 232 min-width: 250px;
@@ -301,13 +292,13 @@
301 292 font-weight: 700;
302 293 font-size: 16px;
303 294 padding-left: 15px;
304 295 padding-right: 15px;
305 - }
296 + }
306 297
307 - #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> {
298 + #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> {
308 299 padding: 30px !important;
309 - }
300 + }
310 301
311 302 #deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .feedback-input-header {
312 303 font-weight: 600;
313 304 font-size: 15px;
@@ -333,9 +324,9 @@
333 324 }
334 325
335 326 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional {
336 327 flex-wrap: wrap;
337 - }
328 + }
338 329
339 330 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text {
340 331 flex: 0 0 calc(100% - 24px);
341 332 margin: 5px 0 10px 24px;
@@ -341,13 +332,13 @@
341 332 margin: 5px 0 10px 24px;
342 333 min-height: 40px;
343 334 border: 1px solid rgba(0, 0, 0, 0.3);
344 335 padding: 0 15px;
345 - }
336 + }
346 337
347 338 div#deactivation-dialog-<?php echo esc_attr( $this->textdomain ); ?> .modal-content .feedback-input-wrapper.conditional .feedback-feedback-text:focus {
348 339 border-color: #2271b1;
349 - }
340 + }
350 341
351 342 .ui-widget-overlay.ui-front {
352 343 position: fixed;
353 344 top: 0;
@@ -381,14 +372,14 @@
381 372 line-height: 1.2;
382 373 padding: 8px 16px;
383 374 outline: none;
384 375 border: none;
385 - }
376 + }
386 377
387 378 .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child {
388 379 background: #4360ef;
389 380 color: #fff;
390 - }
381 + }
391 382
392 383 .ui-dialog[aria-describedby="deactivation-dialog-shopbuilder"] .ui-dialog-buttonset .ui-button:first-child:hover {
393 384 background: #1f3edc;
394 385 }
@@ -406,11 +397,9 @@
406 397 <?php
407 398 }
408 399
409 400 /***
410 - * @param $mimes
411 - *
412 - * @return mixed
401 + * @return void
413 402 */
414 403 public function deactivation_scripts() {
415 404 wp_enqueue_script( 'jquery-ui-dialog' );
416 405 ?>
@@ -477,23 +466,45 @@
477 466 // Perform AJAX request to submit feedback
478 467 if (!reasons && !feedback && !better_plugin) {
479 468 // Define flag variables
480 469 $('#feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?> span').text('Choose The Reason');
481 - $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide me with some advice.');
470 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
482 471 return;
483 472 }
484 473
485 - if ('temporary_deactivation' == reasons && !feedback) {
474 + if (!reasons ) {
475 + // Define flag variables
476 + $('#feedback-form-body-<?php echo esc_attr( $this->textdomain ); ?> span').text('Choose The Reason');
477 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
478 + return;
479 + }
480 +
481 + if ( 'bug_issue_detected' === reasons && !feedback ) {
482 + // Define flag variables
483 + $('.feedback-text-wrapper-<?php echo esc_attr( $this->textdomain ); ?> span').text('Please provide more details regarding the issue so we can address it in future updates.');
484 + return;
485 + }
486 +
487 + if ('temporary_deactivation' === reasons || ! feedback ) {
486 488 window.location.href = href;
487 489 return;
488 490 }
489 491
492 + if ( ! feedback.length > 0 ) {
493 + window.location.href = href;
494 + return;
495 + }
496 + var websiteUrl = '<?php echo esc_url( home_url() ); ?>';
497 + if ( ! websiteUrl.length > 0 ) {
498 + window.location.href = href;
499 + return;
500 + }
490 501 $.ajax({
491 502 url: 'https://shopbuilderwp.com/wp-json/RadiusTheme/pluginSurvey/v1/Survey/appendToSheet',
492 503 method: 'GET',
493 504 dataType: 'json',
494 505 data: {
495 - website: '<?php echo esc_url( home_url() ); ?>',
506 + website: websiteUrl,
496 507 reasons: reasons ? reasons : '',
497 508 better_plugin: better_plugin,
498 509 feedback: feedback,
499 510 wpplugin: 'ShopBuilder',