PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 3.6.0
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v3.6.0
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / freemius / templates / account / payments.php

payments.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 3.6.0, at freemius/templates/account/payments.php

59 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2016, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 * @since 1.2.0
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * @var array $VARS
15 * @var Freemius $fs
16 */
17 $fs = freemius( $VARS['id'] );
18
19 /**
20 * @var FS_Payment[] $payments
21 */
22 $payments = $VARS['payments'];
23
24 $slug = $fs->get_slug();
25
26 ?>
27 <div class="postbox">
28 <div id="fs_payments">
29 <h3><span class="dashicons dashicons-paperclip"></span> <?php fs_esc_html_echo_inline( 'Payments', 'payments', $slug ) ?></h3>
30
31 <div class="inside">
32 <table class="widefat">
33 <thead>
34 <tr>
35 <th><?php fs_esc_html_echo_inline( 'ID', 'id', $slug ) ?></th>
36 <th><?php fs_esc_html_echo_inline( 'Date', 'date', $slug ) ?></th>
37 <th><?php fs_esc_html_echo_inline( 'Amount', 'amount', $slug ) ?></th>
38 <th><?php fs_esc_html_echo_inline( 'Invoice', 'invoice', $slug ) ?></th>
39 </tr>
40 </thead>
41 <tbody>
42 <?php $odd = true ?>
43 <?php foreach ( $payments as $payment ) : ?>
44 <tr<?php echo $odd ? ' class="alternate"' : '' ?>>
45 <td><?php echo $payment->id ?></td>
46 <td><?php echo date( 'M j, Y', strtotime( $payment->created ) ) ?></td>
47 <td><?php echo $payment->formatted_gross() ?></td>
48 <td><?php if (! $payment->is_migrated() ) : ?><a href="<?php echo $fs->_get_invoice_api_url( $payment->id ) ?>"
49 class="button button-small"
50 target="_blank" rel="noopener"><?php fs_esc_html_echo_inline( 'Invoice', 'invoice', $slug ) ?></a><?php endif ?></td>
51 </tr>
52 <?php $odd = ! $odd; endforeach ?>
53 </tbody>
54 </table>
55 </div>
56 </div>
57 </div>
58 <?php
59