PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.3.26
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.3.26
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / app / Views / invoice / parts / subscription_items.php

subscription_items.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.3.26, at app/Views/invoice/parts/subscription_items.php

53 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <?php if ($subscriptions->count() > 0): ?>
3
4 <div style="font-size:16px;font-weight:600;color:rgb(44,62,80);margin: 16px 0 0 0;line-height:24px;">
5 <?php echo esc_html__('Subscription Details', 'fluent-cart'); ?>
6 </div>
7
8 <div style="padding: 6px 0 0 10px; display: flex; flex-direction: column;gap:12px;font-size: 14px;color:#4b5563;">
9 <table role="presentation"
10 style="width: 100%;vertical-align: bottom;border-spacing: 0;padding: 0;margin-bottom: 10px;border:none;">
11 <tbody>
12
13
14 <?php foreach ($subscriptions as $subs): ?>
15 <tr>
16 <td style="width: 50%;border:none;padding: 1px 0;vertical-align: middle;">
17 <p style="margin: 0;">
18 <?php echo esc_html($subs->item_name); ?>
19 </p>
20
21
22 </td>
23
24 <td style="width: 50%;text-align:right;vertical-align: top;border:none;padding: 1px 0;">
25 <div>
26 <?php if (!empty($subs->payment_info)) : ?>
27 <span>
28 <?php echo $subs->payment_info; // @phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
29 </span>
30 <?php endif; ?>
31
32 <?php if (!empty($subs->next_billing_date)) : ?>
33 <p style="font-size:12px;color:rgb(75,85,99);line-height:20px;margin: 3px 0 0 0;">
34 <?php
35 printf(
36 /* translators: %s is the auto-renewal date and time */
37 esc_html__('- Auto renews on %s', 'fluent-cart'),
38 esc_html(
39 \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($subs->next_billing_date)->format('M d, Y h:i A')
40 )
41 );
42 ?>
43 </p>
44 <?php endif; ?>
45 </div>
46 </td>
47 </tr>
48 <?php endforeach; ?>
49 </tbody>
50 </table>
51 </div>
52 <?php endif; ?>
53