switch($coupon_type) {
case 'printable-coupon':
?>
<h3><?php _e('Code:', 'appthemes'); ?></h3>
<div class="couponAndTip">
<div class="link-holder">
<a href="<?php clpr_get_coupon_image('thumb-med', 'url'); ?>" id="coupon-link-<?php echo $post->ID; ?>" class="coupon-code-link" title="<?php _e('Click to Print', 'appthemes'); ?>" target="_blank" data-rel="<?php _e('Print Coupon', 'appthemes'); ?>"><span><?php _e('Print Coupon', 'appthemes'); ?></span></a>
</div> <!-- #link-holder -->
<p class="link-popup"><span><?php _e('Click to print coupon', 'appthemes'); ?></span></p>
</div><!-- /couponAndTip -->
<?php
break;
case 'coupon-code':
?>
<h3><?php _e('Code:', 'appthemes'); ?></h3>
<div class="couponAndTip">
<div class="link-holder">
<?php if( get_option('clpr_coupon_code_hide') == 'yes' ) $button_text = __('Show Coupon Code', 'appthemes'); else $button_text = wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>
<a href="<?php echo clpr_get_coupon_out_url( $post ); ?>" id="coupon-link-<?php echo $post->ID; ?>" class="coupon-code-link" title="<?php _e('Click to copy & open site', 'appthemes'); ?>" target="_blank" data-rel="<?php echo wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>"><span><?php echo $button_text; ?></span></a>
</div> <!-- #link-holder -->
<p class="link-popup"><span><?php _e('Click to copy & open site', 'appthemes'); ?></span></p>
</div><!-- /couponAndTip -->
switch($coupon_type) {
case 'printable-coupon':
?>
<h3><?php _e('Code:', 'appthemes'); ?></h3>
<div class="couponAndTip">
<div class="link-holder">
<a href="<?php clpr_get_coupon_image('thumb-med', 'url'); ?>" id="coupon-link-<?php echo $post->ID; ?>" class="coupon-code-link" title="<?php _e('Click to Print', 'appthemes'); ?>" target="_blank" data-rel="<?php _e('Print Coupon', 'appthemes'); ?>"><span><?php _e('Print Coupon', 'appthemes'); ?></span></a>
</div> <!-- #link-holder -->
<p class="link-popup"><span><?php _e('Click to print coupon', 'appthemes'); ?></span></p>
</div><!-- /couponAndTip -->
<?php
break;
case 'normal':
?>
<h3><?php _e('Code:', 'appthemes'); ?></h3>
<div class="couponAndTip">
<div class="link-holder">
<?php if( get_option('clpr_coupon_code_hide') == 'yes' ) $button_text = __('Show Coupon Code', 'appthemes'); else $button_text = wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>
<a href="<?php echo clpr_get_coupon_out_url( $post ); ?>" id="coupon-link-<?php echo $post->ID; ?>" class="coupon-code-link" title="<?php _e('Click to copy & open site', 'appthemes'); ?>" target="_blank" data-rel="<?php echo wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>"><span><?php echo $button_text; ?></span></a>
</div> <!-- #link-holder -->
<p class="link-popup"><span><?php _e('Click to copy & open site', 'appthemes'); ?></span></p>
</div><!-- /couponAndTip -->
<?php
break;
case 'coupon-code':
?>
<h3><?php _e('Code:', 'appthemes'); ?></h3>
<div class="couponAndTip">
<div class="link-holder">
<?php if( get_option('clpr_coupon_code_hide') == 'yes' ) $button_text = __('Show Coupon Code', 'appthemes'); else $button_text = wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>
<a href="<?php echo clpr_get_coupon_out_url( $post ); ?>" id="coupon-link-<?php echo $post->ID; ?>" class="coupon-code-link" title="<?php _e('Click to copy & open site', 'appthemes'); ?>" target="_blank" data-rel="<?php echo wptexturize( get_post_meta( $post->ID, 'clpr_coupon_code', true ) ); ?>"><span><?php echo $button_text; ?></span></a>
</div> <!-- #link-holder -->
<p class="link-popup"><span><?php _e('Click to copy & open site', 'appthemes'); ?></span></p>
</div><!-- /couponAndTip -->
There are currently 1 users browsing this thread. (0 members and 1 guests)