HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/woocommerce/emails/plain/price-tracker.php
<?php
/**
 * Price tracker email template.
 *
 * @package XTS
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

echo esc_html( wp_strip_all_tags( $email_heading ) ) . "\n\n";

echo esc_html(
	sprintf(
		// translators: %s User name.
		__(
			'Hi, %s!',
			'xts-theme'
		),
		$email->user_name
	)
) . "\n";

echo esc_html__( 'Good news!', 'xts-theme' );
echo esc_html__( 'The price of some of the products you were watching has dropped.', 'xts-theme' );
echo esc_html__( 'Check them out below:', 'xts-theme' );
echo "\n\n";

if ( ! empty( $email->object ) ) {
	echo "------------------------------------------\n\n";

	foreach ( $email->object as $subscription ) {
		if ( ! apply_filters( 'woocommerce_is_email_preview', false ) ) {
			$product = $subscription->variation_id ? wc_get_product( $subscription->variation_id ) : wc_get_product( $subscription->product_id );
		} elseif ( isset( $email->dummy_product ) ) {
			$product = $email->dummy_product;
		}

		echo esc_html(
			wp_strip_all_tags(
				sprintf(
					'%1$s (%2$s -> %3$s) [%4$s]',
					$product->get_name(),
					wc_price( $subscription->product_price ),
					wc_price( $subscription->product_new_price ),
					esc_url( add_query_arg( 'add-to-cart', $product->get_id(), wc_get_cart_url() ) )
				)
			)
		) . "\n";
	}

	echo "\n------------------------------------------\n\n";
}


echo esc_html__( "Best regards,\n", 'xts-theme' );
echo esc_html( $email->get_blogname() );

echo "\n----------------------------------------\n\n";

echo esc_html( __( 'If you don\'t want to receive any further notification, please follow this link', 'xts-theme' ) . ' ' . $unsubscribe_link );

echo "\n----------------------------------------\n\n";

echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );