first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/**
* Email z kuponem
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_header', $email_heading, $email ?? '' ); ?>
<h2><?php printf( esc_html__( 'Hi %s,', 'flexible-coupons-pro' ), isset( $meta['flexible_coupon_recipient_name'] ) ? $meta['flexible_coupon_recipient_name'] : '' ); ?></h2>
<p><b><?php printf( __( 'Thanks to %s you get a gift voucher for use in the <a href="%s">%s</a> store. The coupon is valid to %s.', 'flexible-coupons-pro'), $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(), get_site_url(), get_bloginfo('name'), $meta['coupon_expiry'], $date_order ) ; ?></b></p>
<p><a href="<?php echo $meta['coupon_url']; ?>"><?php esc_html_e( 'Download PDF with the coupon &raquo;', 'flexible-coupons-pro'); ?></a></p>
<h2><?php esc_html_e( 'Coupon information', 'flexible-coupons-pro'); ?></h2>
<?php if( isset( $meta['coupon_code'] ) ): ?><p><?php printf( esc_html__( 'Coupon code: %s', 'flexible-coupons-pro'), $meta['coupon_code'] ); ?></p><?php endif; ?>
<?php if( isset( $meta['coupon_value'] ) ): ?><p><?php printf( esc_html__( 'Coupon value: %s', 'flexible-coupons-pro'), $meta['coupon_value'] ); ?></p><?php endif; ?>
<?php if( ! empty( $meta['coupon_expiry'] ) ): ?>
<?php if( isset( $meta['coupon_expiry'] ) ): ?><p><?php printf( esc_html__( 'Expiry date: %s', 'flexible-coupons-pro'), $meta['coupon_expiry'] ); ?></p><?php endif; ?>
<?php endif; ?>
<?php if( isset( $meta['flexible_coupon_recipient_message'] ) && ! empty( $meta['flexible_coupon_recipient_message'] ) ): ?>
<p><?php esc_html_e( 'A message from the buyer:', 'flexible-coupons-pro'); ?></p>
<p><?php echo $meta['flexible_coupon_recipient_message']; ?></p>
<?php endif; ?>
<p><?php esc_html_e( 'Thanks for reading!', 'flexible-coupons-pro'); ?></p>
<?php do_action( 'woocommerce_email_footer' ); ?>