plugin_includes . 'functions/wpaf-coupon-thumbnail-img.php'; } global $wpaf_coupon_id; $title = get_the_title(); $description = get_post_meta( $wpaf_coupon_id, 'coupon_details_description', true ); $coupon_thumbnail = wpaf_coupon_thumbnail_img( $wpaf_coupon_id ); $link_thumbnail = get_option('wpaf_coupon-link-featured-img'); $discount_text = get_post_meta( $wpaf_coupon_id, 'coupon_details_discount-text', true ); $coupon_type = get_post_meta( $wpaf_coupon_id, 'coupon_details_coupon-type', true ); $link = get_post_meta( $wpaf_coupon_id, 'coupon_details_link', true ); $coupon_code = get_post_meta( $wpaf_coupon_id, 'coupon_details_coupon-code-text', true ); $show_print_links = get_option( 'wpaf_coupon-print-link' ); $deal_text = get_post_meta( $wpaf_coupon_id, 'coupon_details_deal-button-text', true ); $coupon_hover_text = get_option( 'wpaf_coupon-hover-text' ); $deal_hover_text = get_option( 'wpaf_deal-hover-text' ); $button_class = 'wpaf-btn-' . $wpaf_coupon_id; $no_expiry = get_option( 'wpaf_no-expiry-message' ); $expire_text = get_option( 'wpaf_expire-text' ); $expired_text = get_option( 'wpaf_expired-text' ); $hide_coupon_text = get_option( 'wpaf_hidden-coupon-text' ); $hidden_coupon_hover_text = get_option( 'wpaf_hidden-coupon-hover-text' ); $copy_button_text = get_option( 'wpaf_copy-button-text' ); $coupon_title_tag = get_option( 'wpaf_coupon-title-tag', 'h1' ); $coupon_share = get_option( 'wpaf_coupon-social-share' ); $show_expiration = get_post_meta( $wpaf_coupon_id, 'coupon_details_show-expiration', true ); $today = gmdate( 'd-m-Y' ); $expire_date = get_post_meta( $wpaf_coupon_id, 'coupon_details_expire-date', true ); $expireDateFormat = get_option( 'wpaf_expiry-date-format' ); $hide_coupon = get_post_meta( $wpaf_coupon_id, 'coupon_details_hide-coupon', true ); $dt_coupon_type_name = get_option( 'wpaf_dt-coupon-type-text' ); $dt_deal_type_name = get_option( 'wpaf_dt-deal-type-text' ); $disable_coupon_title_link = get_option( 'wpaf_disable-coupon-title-link' ); $wpaf_text_to_show = get_option( 'wpaf_text-to-show' ); $wpaf_custom_text = get_option( 'wpaf_custom-text' ); $never_expire = get_post_meta( $wpaf_coupon_id, 'coupon_details_never-expire-check', true ); $expire_time = get_post_meta( $wpaf_coupon_id, 'coupon_details_expire-time', true ); $wpaf_template_seven_theme = get_post_meta( $wpaf_coupon_id, 'coupon_details_template-theme-color', true ); $post_id = get_the_ID(); $dt_coupon_type_name = ( !empty( $dt_coupon_type_name ) ) ? $dt_coupon_type_name : __( 'Coupon', 'affcoupon' ); $dt_deal_type_name = ( !empty( $dt_deal_type_name ) ) ? $dt_deal_type_name : __( 'Deal', 'affcoupon' ); $expire_text = ( !empty( $expire_text ) ) ? $expire_text : __( 'Expires On: ', 'affcoupon' ); $expired_text = ( !empty( $expired_text ) ) ? $expired_text : __( 'Expired On: ', 'affcoupon' ); $no_expiry = ( !empty( $no_expiry ) ) ? $no_expiry : __( "Doesn't expire", 'affcoupon' ); $coupon_code = ( ! empty( $coupon_code ) ? $coupon_code : __( 'COUPONCODE', 'affcoupon' ) ); $deal_text = ( ! empty( $deal_text ) ? $deal_text : __( 'Get Deal', 'affcoupon' ) ); $coupon_hover_text = ( ! empty( $coupon_hover_text ) ) ? $coupon_hover_text : __( 'Click To Copy Coupon', 'affcoupon' ); $deal_hover_text = ( !empty( $deal_hover_text ) ) ? $deal_hover_text : __( 'Click Here To Get This Deal', 'affcoupon' ); $linkTarget = get_option("wpaf_coupon-link-target"); $target = ($linkTarget == "on") ? "_self" : "_blank" ; if ( $wpaf_text_to_show == 'description' ) { $wpaf_custom_text = $description; } else { if ( empty( $wpaf_custom_text ) ) { $wpaf_custom_text = __( "Click on 'Copy' to Copy the Coupon Code.", 'affcoupon' ); } } if( ! $link && WPAF_Amp::wpaf_amp_is() ) $link = "#"; $expireDateFormatFun = wpaf_getExpireDateFormatFun( $expireDateFormat ); if ( ! empty( $expire_date ) && (string)(int)$expire_date == $expire_date ) { $expire_date = gmdate( $expireDateFormatFun, $expire_date ); } elseif ( ! empty( $expire_date ) ) { $expire_date = gmdate( $expireDateFormatFun, strtotime( $expire_date ) ); } $expire_date_format = gmdate( "m/d/Y", strtotime( $expire_date ) ); wp_enqueue_script( 'wpaf-clipboardjs' ); $template = new WPAF_Template_Loader(); $wpaf_uniq_attr = ''; $wpaf_uniq_attr_data = ''; if( function_exists( 'wpaf_uniq_attr' ) && ! WPAF_Amp::wpaf_amp_is() && ! empty( $show_print_links ) && $show_print_links == 'on' ) { $wpaf_uniq_attr = wpaf_uniq_attr( 10 ); $wpaf_uniq_attr_data = 'data-unic-attr="' . $wpaf_uniq_attr . '"'; } ?>
>

{$title} " ); else: echo wp_kses_post( "{$title}" ); endif; ?>
< class="wpaf-coupon-title"> > < class="wpaf-coupon-title"> >
get_template_part( 'hide-coupon' ); } else { ?>