| @@ -17,22 +17,16 @@ | ||
| 17 | 17 | $fs = freemius( $VARS['id'] ); |
| 18 | 18 | |
| 19 | 19 | $slug = $fs->get_slug(); |
| 20 | 20 | |
| 21 | - $payments = $fs->_fetch_payments(); | |
| 21 | + $edit_text = fs_text_x_inline( 'Edit', 'verb', 'edit', $slug ); | |
| 22 | + $update_text = fs_text_x_inline( 'Update', 'verb', 'update', $slug ); | |
| 22 | 23 | |
| 23 | - $show_billing = ( is_array( $payments ) && 0 < count( $payments ) ); | |
| 24 | - | |
| 25 | - if ( $show_billing ) : | |
| 26 | - | |
| 27 | - $edit_text = fs_text_x_inline( 'Edit', 'verb', 'edit', $slug ); | |
| 28 | - $update_text = fs_text_x_inline( 'Update', 'verb', 'update', $slug ); | |
| 29 | - | |
| 30 | - $billing = $fs->_fetch_billing(); | |
| 31 | - $has_billing = ( $billing instanceof FS_Billing ); | |
| 32 | - if ( ! $has_billing ) { | |
| 33 | - $billing = new FS_Billing(); | |
| 34 | - } | |
| 24 | + $billing = $fs->_fetch_billing(); | |
| 25 | + $has_billing = ( $billing instanceof FS_Billing ); | |
| 26 | + if ( ! $has_billing ) { | |
| 27 | + $billing = new FS_Billing(); | |
| 28 | + } | |
| 35 | 29 | ?> |
| 36 | 30 | <!-- Billing --> |
| 37 | 31 | <div class="postbox"> |
| 38 | 32 | <div id="fs_billing"> |
| @@ -425,7 +419,5 @@ | ||
| 425 | 419 | .toggleClass('button-primary'); |
| 426 | 420 | } |
| 427 | 421 | }); |
| 428 | 422 | })(jQuery); |
| 429 | -</script> | |
| 430 | -<?php | |
| 431 | - endif; | |
| 423 | +</script> | |