| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
use YayMail\Page\Source\CustomPostType; |
| 5 |
|
| 6 |
$sent_to_admin = ( isset( $sent_to_admin ) ? true : false ); |
| 7 |
$plain_text = ( isset( $plain_text ) ? $plain_text : '' ); |
| 8 |
$email = ( isset( $email ) ? $email : '' ); |
| 9 |
$postID = CustomPostType::postIDByTemplate( $this->template ); |
| 10 |
$text_link_color = get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) ? get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) : '#96588A'; |
| 11 |
$borderColor = isset( $atts['bordercolor'] ) && $atts['bordercolor'] ? 'border-color:' . html_entity_decode( $atts['bordercolor'], ENT_QUOTES, 'UTF-8' ) : 'border-color:inherit'; |
| 12 |
$textColor = isset( $atts['textcolor'] ) && $atts['textcolor'] ? 'color:' . html_entity_decode( $atts['textcolor'], ENT_QUOTES, 'UTF-8' ) : 'color:inherit'; |
| 13 |
$columns = apply_filters( |
| 14 |
'woocommerce_email_downloads_columns', |
| 15 |
array( |
| 16 |
'download-product' => __( 'Product', 'woocommerce' ), |
| 17 |
'download-expires' => __( 'Expires', 'woocommerce' ), |
| 18 |
'download-file' => __( 'Download', 'woocommerce' ), |
| 19 |
) |
| 20 |
); |
| 21 |
?> |
| 22 |
|
| 23 |
<!-- Table Items has Border --> |
| 24 |
<table class="yaymail_builder_table_items_border yaymail_builder_table_item_download" cellspacing="0" cellpadding="6" border="1" style="width: 100% !important;<?php echo esc_attr( $borderColor ); ?>;color: inherit;flex-direction:inherit;" width="100%"> |
| 25 |
<thead> |
| 26 |
<tr style="word-break: normal;<?php echo esc_attr( $textColor ); ?>"> |
| 27 |
<th class="td" scope="col" style="text-align:left;<?php echo esc_attr( $borderColor ); ?>;"> |
| 28 |
<?php esc_html_e( 'Product', 'woocommerce' ); ?> |
| 29 |
</th> |
| 30 |
<th class="td" scope="col" style="text-align:left;<?php echo esc_attr( $borderColor ); ?>;"> |
| 31 |
<?php esc_html_e( 'Expires', 'woocommerce' ); ?> |
| 32 |
</th> |
| 33 |
<th class="td" scope="col" style="text-align:left;<?php echo esc_attr( $borderColor ); ?>;"> |
| 34 |
<?php esc_html_e( 'Download', 'woocommerce' ); ?> |
| 35 |
</th> |
| 36 |
</tr> |
| 37 |
</thead> |
| 38 |
<tfoot> |
| 39 |
<tr style="<?php echo esc_attr( $textColor ); ?>"> |
| 40 |
<td class="td" style="<?php echo esc_attr( $borderColor ); ?>;"> |
| 41 |
<a href="" style="color:<?php echo esc_attr( $text_link_color ); ?>" > <?php esc_html_e( 'Downloadable Product', 'yaymail' ); ?></a> |
| 42 |
</td> |
| 43 |
<td class="td" style="<?php echo esc_attr( $borderColor ); ?>;"> |
| 44 |
<time datetime="2021-02-13" title="1613174400"> <?php echo wp_kses_post( wc_format_datetime( new WC_DateTime() ) ); ?></time> |
| 45 |
</td> |
| 46 |
<td class="td" style="<?php echo esc_attr( $borderColor ); ?>;"> |
| 47 |
<a href="" style="color:<?php echo esc_attr( $text_link_color ); ?>" ><?php esc_html_e( 'Download.doc', 'yaymail' ); ?></a> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
</tfoot> |
| 51 |
</table> |
| 52 |
|