Current Path : /storage/v11800/andslite-new/public_html/wp-content/plugins/customer-reviews-woocommerce/templates/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/andslite-new/public_html/wp-content/plugins/customer-reviews-woocommerce/templates/email_coupon.php |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
//qTranslate integration
$ivole_language = get_option( 'ivole_language' );
if( function_exists( 'qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage' ) && $ivole_language === 'QQ' ) {
echo qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage( wpautop( wp_kses_post( get_option( 'ivole_email_body_coupon', $def_body ) ) ) );
} else {
//WPML integration
if ( has_filter( 'wpml_translate_single_string' ) && defined( 'ICL_LANGUAGE_CODE' ) && ICL_LANGUAGE_CODE && ! function_exists( 'pll_current_language' ) ) {
$wpml_current_language = strtolower( $lang );
echo wpautop( wp_kses_post( apply_filters( 'wpml_translate_single_string', get_option( 'ivole_email_body_coupon', $def_body ), 'ivole', 'ivole_email_body_coupon', $wpml_current_language ) ) );
} elseif ( function_exists( 'pll_current_language' ) && function_exists( 'pll_get_post_language' ) && function_exists( 'pll_translate_string' ) ) {
$polylang_current_language = strtolower( $lang );
echo wpautop( wp_kses_post( pll_translate_string( get_option( 'ivole_email_body_coupon', $def_body ), $polylang_current_language ) ) );
} else {
echo wpautop( wp_kses_post( get_option( 'ivole_email_body_coupon', $def_body ) ) );
}
}