zZzzZ.
home2
/
zrzvbdry
/
couponetive.com
/
wp-content
/
themes
/
retail-pro-main
/
loop
New Folder
Editing: coupon-modal.php
Save
Cancel
<!-- Coupon Modal --> <div data-modal-id="<?php echo wpcoupon_coupon()->ID; ?>" class="ui modal coupon-modal coupon-code-modal"> <div class="scrolling content"> <div class="coupon-header clearfix"> <div class="coupon-title" title="<?php echo esc_attr( get_the_title( wpcoupon_coupon()->ID ) ) ?>"><?php echo get_the_title( wpcoupon_coupon()->ID ); ?></div> <span class="close icon"></span> </div> <div class="coupon-content"> <p class="coupon-type-text"> <?php switch ( wpcoupon_coupon()->get_type() ) { case 'sale': esc_html_e( 'Deal Activated, no coupon code required!', 'retail-pro' ); break; case 'print': esc_html_e( 'Print this coupon and redeem it in-store', 'retail-pro' ); break; default: esc_html_e( 'Copy this code and use at checkout', 'retail-pro' ); } ?> </p> <div class="modal-code"> <?php switch ( wpcoupon_coupon()->get_type() ) { case 'sale': ?> <a class="ui button btn btn_secondary deal-actived" target="_blank" rel="nofollow" href="<?php echo esc_attr( wpcoupon_coupon()->get_go_out_url() ); ?>"><?php esc_html_e( 'Go To Store', 'retail-pro' ); ?><i class="angle right icon"></i></a> <?php break; case 'print': $image_url = esc_url( wpcoupon_coupon()->get_print_image() ); ?> <a class="btn-print-coupon" target="_blank" href="<?php echo esc_attr( $image_url ); ?>"><img alt="" src="<?php echo esc_attr( $image_url ); ?>"/></a> <?php break; default: ?> <div class="coupon-code"> <div class="ui fluid action input massive"> <input type="text" class="code-text" autocomplete="off" readonly value="<?php echo esc_attr( wpcoupon_coupon()->get_code() ); ?>"> <button class="ui right labeled icon button btn btn_secondary"> <i class="copy icon"></i> <span><?php esc_html_e( 'Copy', 'retail-pro' ); ?></span> </button> </div> </div> <?php } ?> </div> <div class="clearfix"></div> <div class="coupon-popup-detail"> <div class="coupon-detail-content"><?php echo str_replace( ']]>', ']]>', apply_filters( 'the_content', wpcoupon_coupon()->post_content ) ); ; ?></div> <p><strong><?php esc_html_e( 'Expires', 'retail-pro' ); ?></strong>: <?php echo wpcoupon_coupon()->get_expires( null, true ); ?></p> <p><strong><?php esc_html_e( 'Submitted', 'retail-pro' ); ?></strong>: <?php printf( esc_html__( '%s ago', 'retail-pro' ), human_time_diff( get_the_time('U'), current_time('timestamp') ) ); ?> </p> </div> </div> <?php $coupon_modal_footer = wpcoupon_get_option( 'coupon_modal_footer' ); ?> <?php if ($coupon_modal_footer==true) {?> <div class="coupon-footer"> <?php echo wpcoupon_get_option('coupon_modal_footer_txt', false, ''); ?> </div> <?php }?> </div> </div>