| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php use FluentCart\App\Helpers\Helper; |
| 3 |
$showNotice = $show_notice ?? true; |
| 4 |
if (isset($heading)): ?> |
| 5 |
<p style="font-size:16px;font-weight:600;color:rgb(44,62,80);margin: 16px 0 0 0;line-height:24px;"> |
| 6 |
<?php echo esc_html($heading); ?> |
| 7 |
</p> |
| 8 |
|
| 9 |
|
| 10 |
<?php endif; ?> |
| 11 |
|
| 12 |
<table role="presentation" style="width: 100%;overflow:hidden;margin-bottom: 0;border-spacing: 0;border:none;padding: 0 0 0 10px;"> |
| 13 |
<tbody> |
| 14 |
<tr> |
| 15 |
<td style="border:none;padding: 0;"> |
| 16 |
<table role="presentation" style="width: 100%;vertical-align: bottom;border-spacing: 0;padding: 0;margin-bottom: 10px;border:none;"> |
| 17 |
<tbody style="width:100%;vertical-align: bottom;"> |
| 18 |
|
| 19 |
<?php foreach ($downloadItems as $downloadItem): ?> |
| 20 |
<tr style="width:100%;vertical-align: bottom;"> |
| 21 |
<td style="width:75%;border:none;padding: 0;"> |
| 22 |
<?php if ($downloadItem['downloads']): ?> |
| 23 |
|
| 24 |
<table role="presentation" style="width: 100%;border-radius:4px;border-spacing: 0;border:none; margin-bottom: 0;"> |
| 25 |
<tbody style="width:100%;vertical-align: top;"> |
| 26 |
<?php foreach ($downloadItem['downloads'] as $download): ?> |
| 27 |
<tr> |
| 28 |
<td style="width: 100%;border:none;padding: 1px 0;vertical-align: middle;"> |
| 29 |
<p style="margin: 0;font-size: 14px"> |
| 30 |
<?php echo esc_html($download['title']); ?> |
| 31 |
<?php if($download['file_size']): ?> |
| 32 |
<span style="color: #666;font-size: 12px">(<?php echo esc_html(Helper::readableFileSize($download['file_size'])); ?>)</span> |
| 33 |
<?php endif; ?> |
| 34 |
</p> |
| 35 |
</td> |
| 36 |
<td style="width: 20%;text-align:right;vertical-align: middle;border:none;padding: 1px 0;"> |
| 37 |
<a style="display: inline-block;font-size: 14px;color:#000;line-height: 1;" |
| 38 |
href="<?php echo esc_url($download['download_url'] ?? ''); ?>"> |
| 39 |
<?php echo esc_html__('Download','fluent-cart'); ?> |
| 40 |
</a> |
| 41 |
</td> |
| 42 |
</tr> |
| 43 |
<?php endforeach; ?> |
| 44 |
</tbody> |
| 45 |
</table> |
| 46 |
|
| 47 |
<?php endif; ?> |
| 48 |
|
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<?php endforeach; ?> |
| 52 |
</tbody> |
| 53 |
</table> |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
</tbody> |
| 57 |
</table> |
| 58 |
|
| 59 |
<?php if($showNotice): ?> |
| 60 |
<table role="presentation" |
| 61 |
style="background-color:rgb(239,246,255);padding:12px;border-radius:6px;margin-bottom:20px;border-width:1px;border-color:rgb(191,219,254)"> |
| 62 |
<tbody> |
| 63 |
<tr> |
| 64 |
<td> |
| 65 |
<p style="font-size:14px;font-weight:600;color:rgb(30,58,138);line-height:24px;margin: 0 0 6px 0;"> |
| 66 |
<?php echo esc_html__('Important', 'fluent-cart');?> |
| 67 |
</p> |
| 68 |
<p style="font-size:13px;color:rgb(30,64,175);margin-bottom:0;line-height:1.2;margin-top:0"> |
| 69 |
<?php echo esc_html__('This download link is valid for 7 days. After that, you can download the files again from your account |
| 70 |
on our website.', 'fluent-cart');?> |
| 71 |
</p> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
</tbody> |
| 75 |
</table> |
| 76 |
<?php endif; ?> |
| 77 |
|