PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | libraries/freemius/templates/forms/subscription-cancellation.php +14 -8 2.2.2 → 3.4 View file →
@@ -33,13 +33,19 @@
33 33 if ( $VARS['is_license_deactivation'] ) {
34 34 $subscription_cancellation_text = '';
35 35 } else {
36 36 $subscription_cancellation_text = sprintf(
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 - ),
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 + ) ),
42 48 $module_label
43 49 ) . ' ';
44 50 }
45 51
@@ -138,9 +144,9 @@
138 144 + ' <div class="fs-modal-body">'
139 145 + ' <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>'
140 146 + ' </div>'
141 147 + ' <div class="fs-modal-footer">'
142 - + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo( 'cancel', $slug ) ?></a>'
148 + + ' <a href="#" class="button button-secondary button-close"><?php fs_esc_attr_echo_inline( 'Cancel', 'cancel', $slug ) ?></a>'
143 149 + ' <a href="#" class="button button-primary button-deactivate disabled"><?php fs_esc_attr_echo_inline( 'Proceed', 'proceed', $slug ) ?></a>'
144 150 + ' </div>'
145 151 + ' </div>'
146 152 + '</div>',
@@ -193,9 +199,9 @@
193 199 ) ) ?> );
194 200
195 201 $modal.find('.fs-price-increase-warning').show();
196 202 } else {
197 - $primaryButton.html( <?php echo fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
203 + $primaryButton.html( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
198 204 $modal.find('.fs-price-increase-warning').hide();
199 205 }
200 206
201 207 $primaryButton.toggleClass( 'warn', isSelected );
@@ -270,8 +276,8 @@
270 276
271 277 function updateButtonLabels() {
272 278 $modal.find('.button-primary').text( <?php fs_json_encode_echo_inline( 'Proceed', 'proceed', $slug ) ?> );
273 279
274 - $modal.find('.button-secondary').text( <?php fs_json_encode_echo( 'cancel', $slug ) ?> );
280 + $modal.find('.button-secondary').text( <?php fs_json_encode_echo_inline( 'Cancel', 'cancel', $slug ) ?> );
275 281 }
276 282 })( jQuery );
277 283 </script>