← All changes
|
freemius/templates/forms/subscription-cancellation.php
+8
-14
5.0.1
→
2.6.6
View file →
| @@ -33,19 +33,13 @@ | ||
| 33 | 33 | if ( $VARS['is_license_deactivation'] ) { |
| 34 | 34 | $subscription_cancellation_text = ''; |
| 35 | 35 | } else { |
| 36 | 36 | $subscription_cancellation_text = sprintf( |
| 37 | - ( $fs->is_theme() ? | |
| 38 | - fs_text_inline( | |
| 39 | - "Deactivating or uninstalling the %s will automatically disable the license, which you'll be able to use on another site.", | |
| 40 | - 'deactivation-or-uninstall-message', | |
| 41 | - $slug | |
| 42 | - ) : | |
| 43 | - fs_text_inline( | |
| 44 | - "Uninstalling the %s will automatically disable the license, which you'll be able to use on another site.", | |
| 45 | - 'uninstall-message', | |
| 46 | - $slug | |
| 47 | - ) ), | |
| 37 | + fs_text_inline( | |
| 38 | + "Deactivating or uninstalling the %s will automatically disable the license, which you'll be able to use on another site.", | |
| 39 | + 'deactivation-or-uninstall-message', | |
| 40 | + $slug | |
| 41 | + ), | |
| 48 | 42 | $module_label |
| 49 | 43 | ) . ' '; |
| 50 | 44 | } |
| 51 | 45 | |
| @@ -144,9 +138,9 @@ | ||
| 144 | 138 | + ' <div class="fs-modal-body">' |
| 145 | 139 | + ' <div class="fs-modal-panel active">' + <?php echo json_encode( $subscription_cancellation_html ) ?> + '<p class="fs-price-increase-warning" style="display: none;">' + <?php echo json_encode( $prices_increase_text ) ?> + '</p></div>' |
| 146 | 140 | + ' </div>' |
| 147 | 141 | + ' <div class="fs-modal-footer">' |
| 148 | - + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo_inline( 'Cancel', 'cancel', $slug ) ?></a>' | |
| 142 | + + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo( 'cancel', $slug ) ?></a>' | |
| 149 | 143 | + ' <a href="#" class="button button-primary button-deactivate disabled"><?php fs_esc_attr_echo_inline( 'Proceed', 'proceed', $slug ) ?></a>' |
| 150 | 144 | + ' </div>' |
| 151 | 145 | + ' </div>' |
| 152 | 146 | + '</div>', |
| @@ -199,9 +193,9 @@ | ||
| 199 | 193 | ) ) ?> ); |
| 200 | 194 | |
| 201 | 195 | $modal.find('.fs-price-increase-warning').show(); |
| 202 | 196 | } else { |
| 203 | - $primaryButton.html( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> ); | |
| 197 | + $primaryButton.html( <?php echo fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> ); | |
| 204 | 198 | $modal.find('.fs-price-increase-warning').hide(); |
| 205 | 199 | } |
| 206 | 200 | |
| 207 | 201 | $primaryButton.toggleClass( 'warn', isSelected ); |
| @@ -276,8 +270,8 @@ | ||
| 276 | 270 | |
| 277 | 271 | function updateButtonLabels() { |
| 278 | 272 | $modal.find('.button-primary').text( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> ); |
| 279 | 273 | |
| 280 | - $modal.find('.button-secondary').text( <?php fs_json_encode_echo_inline( 'Cancel', 'cancel', $slug ) ?> ); | |
| 274 | + $modal.find('.button-secondary').text( <?php fs_json_encode_echo( 'cancel', $slug ) ?> ); | |
| 281 | 275 | } |
| 282 | 276 | })( jQuery ); |
| 283 | 277 | </script> |