' ); } include $file; if ( $wrap ) { echo esc_attr( '' ); } } else { echo esc_attr( '

' . __( 'Template not found.', 'affiliate-coupons' ) . '

' ); } } /** * Output template wrapper start html * * @depreacted * * Html wrapper was moved into the templates directly */ function affcoups_tpl_the_wrapper_start() { global $affcoups_template_args; ?>
the_image(); } /** * Output the coupon discount markup * * @param Affcoups_Coupon $coupon */ function affcoups_tpl_the_coupon_discount( $coupon ) { if ( $coupon->get_discount() ) { ?> get_discount() ); ?> get_title(); $coupon_title = affcoups_cleanup_html_attribute( $coupon_title ); $coupon_url = esc_url( $coupon->get_url() ); $options = affcoups_get_options(); $title_linked = ( isset( $options['title_linked'] ) && '1' === $options['title_linked'] ) ? true : false; if ( $title_linked && ! empty( $coupon_url ) ) { ?> get_types() ) { ?>
the_types(); ?>
get_description(); ?>
the_excerpt(); ?>
get_description(); ?>
post->ID); // if ($coupon_meta['affcoups_click_to_reveal_disable'][0] ) // return $button_html; if ( !affcoups_is_pro_version() | $show_code){?>
the_code(); ?>
show_code() || $coupon->is_click_to_reveal_disable()) { ?>
the_code(); ?>
data-user_logged_in="false" data-login_msg="" data-display_code_instu="" data-display_code_currentwindow_popup="" style="display:none">
show_valid_dates() ) { ?>
the_valid_dates(); ?>
id, AFFCOUPS_PREFIX . 'coupon_valid_until', true ); $valid_from = get_post_meta( $coupon->id, AFFCOUPS_PREFIX . 'coupon_valid_from', true ); if ($valid_until && (time()>$valid_from) && affcoups_is_pro_version()) if ( $coupon->show_expiry_countdown() ) { ?>

hgjhgjh

id, AFFCOUPS_PREFIX . 'coupon_original_price', true ); $discounted_price = get_post_meta( $coupon->id, AFFCOUPS_PREFIX . 'coupon_discounted_price', true ); ?>
the_button( $args ); } /** * Output the Social share button markup * * @param Affcoups_Coupon $coupon * @param array $args */ function affcoups_tpl_the_coupon_social_share_button( $coupon, $args = array() ) { if ( !affcoups_is_pro_version() ) return; $options = affcoups_get_options(); $disable_social_share = get_post_meta($coupon->id, AFFCOUPS_PREFIX.'social_share_disable' , true); if($disable_social_share){ return; } if(isset($options['social_share'])){ $share_url=get_permalink(); if(empty($share_url)) $share_url = $_SERVER['HTTP_REFERER']; $shared_url = urlencode($share_url."?affcoups-coupon=".$coupon->id); $msg = str_replace(' ', '%20', $options['social_share_msg']); ?>
title="Share by whatsapp"> title="Share by facebook"> title="Share by twitter"> title="Share by email">
options)) return; if(!($coupon->options['vendor_logo']=='show')) return; $vendor_id=$coupon->vendor_id; $Vendor = new Affcoups_Vendor( $vendor_id ); $image = $Vendor->get_image() ; if($image){ ?>