PluginProbe
Tiered Pricing Table for WooCommerce / 8.1.0
Tiered Pricing Table for WooCommerce v8.1.0
8.1.0 8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 All 92 releases
← All changes | freemius/templates/account/payments.php +12 -13 2.2.2 → 8.1.0 View file →
@@ -9,21 +9,21 @@
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 exit;
11 11 }
12 12
13 - /**
14 - * @var array $VARS
15 - * @var Freemius $fs
16 - */
17 - $fs = freemius( $VARS['id'] );
13 + /**
14 + * @var array $VARS
15 + * @var Freemius $fs
16 + */
17 + $fs = freemius( $VARS['id'] );
18 18
19 + /**
20 + * @var FS_Payment[] $payments
21 + */
22 + $payments = $VARS['payments'];
23 +
19 24 $slug = $fs->get_slug();
20 25
21 - $payments = $fs->_fetch_payments();
22 -
23 - $show_payments = ( is_array( $payments ) && 0 < count( $payments ) );
24 -
25 - if ( $show_payments ) :
26 26 ?>
27 27 <div class="postbox">
28 28 <div id="fs_payments">
29 29 <h3><span class="dashicons dashicons-paperclip"></span> <?php fs_esc_html_echo_inline( 'Payments', 'payments', $slug ) ?></h3>
@@ -43,12 +43,12 @@
43 43 <?php foreach ( $payments as $payment ) : ?>
44 44 <tr<?php echo $odd ? ' class="alternate"' : '' ?>>
45 45 <td><?php echo $payment->id ?></td>
46 46 <td><?php echo date( 'M j, Y', strtotime( $payment->created ) ) ?></td>
47 - <td>$<?php echo $payment->gross ?></td>
47 + <td><?php echo $payment->formatted_gross() ?></td>
48 48 <td><?php if (! $payment->is_migrated() ) : ?><a href="<?php echo $fs->_get_invoice_api_url( $payment->id ) ?>"
49 49 class="button button-small"
50 - target="_blank"><?php fs_esc_html_echo_inline( 'Invoice', 'invoice', $slug ) ?></a><?php endif ?></td>
50 + target="_blank" rel="noopener"><?php fs_esc_html_echo_inline( 'Invoice', 'invoice', $slug ) ?></a><?php endif ?></td>
51 51 </tr>
52 52 <?php $odd = ! $odd; endforeach ?>
53 53 </tbody>
54 54 </table>
@@ -55,5 +55,4 @@
55 55 </div>
56 56 </div>
57 57 </div>
58 58 <?php
59 - endif;