zZzzZ.
home2
/
zrzvbdry
/
couponetive.com
/
wp-content
/
themes
/
retail-pro-main
/
loop
New Folder
Editing: loop-coupon-cat.php
Save
Cancel
<?php $has_thumb = wpcoupon_maybe_show_coupon_thumb(); $has_expired = wpcoupon_coupon()->has_expired(); ?> <div data-id="<?php echo wpcoupon_coupon()->ID; ?>" class="coupon-item <?php echo $has_thumb ? 'has-thumb' : 'no-thumb'; ?> store-listing-item c-type-<?php echo esc_attr( wpcoupon_coupon()->get_type() ); ?> coupon-listing-item shadow-box <?php echo ( $has_expired ) ? 'coupon-expired' : 'coupon-live'; ?>"> <?php if ( $has_thumb ) { ?> <div class="store-thumb-link"> <?php wpcoupon_thumb( $has_thumb === 'save_value' ? true : false ); ?> </div> <?php } ?> <div class="latest-coupon"> <div class="c-type"> <span class="c-code c-<?php echo esc_attr( wpcoupon_coupon()->get_type() ); ?>"><?php echo wpcoupon_coupon()->get_coupon_type_text(); ?></span> </div> <h3 class="coupon-title" > <a class="coupon-link" <?php if ( ! wpcoupon_is_single_enable() ) { ?> rel="nofollow" <?php } ?> title="<?php echo esc_attr( get_the_title( wpcoupon_coupon()->ID ) ); ?>" data-type="<?php echo wpcoupon_coupon()->get_type(); ?>" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-aff-url="<?php echo esc_attr( wpcoupon_coupon()->get_go_out_url() ); ?>" data-code="<?php echo esc_attr( wpcoupon_coupon()->get_code() ); ?>" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>"><?php echo get_the_title( wpcoupon_coupon()->ID ); ?></a> </h3> <p><?php printf( esc_html__( '%1$s Used - %2$s Today', 'retail-pro' ), wpcoupon_coupon()->get_total_used(), wpcoupon_coupon()->get_used_today() ); ?></p> </div> <?php $sm_get_btn_enable = wpcoupon_get_option('coupon_button_sec'); ?> <div class="coupon-detail coupon-button-type <?php if($sm_get_btn_enable){ echo 'get-btn-disable';} ?>"> <?php switch ( wpcoupon_coupon()->get_type() ) { case 'sale': ?> <a rel="nofollow" data-type="<?php echo wpcoupon_coupon()->get_type(); ?>" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-aff-url="<?php echo esc_attr( wpcoupon_coupon()->get_go_out_url() ); ?>" class="coupon-deal coupon-button single-coupon-btn" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>"><?php echo esc_attr( wpcoupon_get_option( 'get_deal_btn_txt' ), 'retail-pro' ); ?></a> <?php break; case 'print': ?> <a rel="nofollow" data-type="<?php echo wpcoupon_coupon()->get_type(); ?>" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-aff-url="<?php echo esc_attr( wpcoupon_coupon()->get_go_out_url() ); ?>" class="coupon-print coupon-button single-coupon-btn" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>"><?php echo esc_attr( wpcoupon_get_option( 'print_coupon_btn_txt' ), 'retail-pro' ); ?></a> <?php break; default: ?> <a rel="nofollow" data-type="<?php echo wpcoupon_coupon()->get_type(); ?>" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>" class="coupon-button coupon-code single-coupon-btn" data-tooltip="<?php echo esc_attr_e( 'Click to copy & open site', 'retail-pro' ); ?>" data-position="top center" data-inverted="" data-code="<?php echo esc_attr( wpcoupon_coupon()->get_code() ); ?>" data-aff-url="<?php echo esc_attr( wpcoupon_coupon()->get_go_out_url() ); ?>"> <span class="code-text" rel="nofollow"><?php echo esc_html( wpcoupon_coupon()->get_code( 8 ) ); ?></span> <span class="get-code"><?php echo esc_attr( wpcoupon_get_option( 'get_code_btn_txt' ), 'retail-pro' ); ?></span> </a> <?php } ?> <div class="clear"></div> </div> <div class="clear"></div> <div class="coupon-footer coupon-listing-footer"> <ul class="fleft"> <li> <a data-reveal="reveal-comments" href="#"> <?php esc_attr_e( 'See Details', 'retail-pro' ); ?> </a> </li> </ul> <ul class="fright user-ratting ui icon basic buttons"> <li class="ui button icon-popup coupon-vote" data-vote-type="up" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-position="top center" data-inverted="" data-tooltip="<?php esc_attr_e( 'This worked', 'retail-pro' ); ?>"> <i class="thumbs up outline icon"></i> </li> <li class="ui button icon-popup coupon-vote" data-vote-type="down" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-position="top center" data-inverted="" data-tooltip="<?php esc_attr_e( "It didn't work", 'retail-pro' ); ?>"> <i class="thumbs down outline icon"></i> </li> <li class="ui button add-coupon-favorite coupon-save icon-popup" data-vote-type="down" data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" data-position="top center" data-inverted="" data-tooltip="<?php esc_attr_e( 'Save this coupon', 'retail-pro' ); ?>"> <i class="outline star icon"></i> </li> </ul> <div data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" class="reveal-content reveal-email"> <span class="close"></span> <h4 class="send-mail-heading"><?php esc_html_e( 'Send this coupon to an email', 'retail-pro' ); ?></h4> <div class="ui fluid action left icon input"> <input class="email_send_to" placeholder="<?php esc_attr_e( 'Email address ...', 'retail-pro' ); ?>" type="text"> <i class="mail outline icon"></i> <div class="email_send_btn ui button btn btn_primary"><?php esc_html_e( 'Send', 'retail-pro' ); ?></div> </div><br> <p><?php esc_html_e( 'This is not a email subscription service. Your email (or your friend\'s email) will only be used to send this coupon.', 'retail-pro' ); ?></p> </div> <div data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" class="reveal-content reveal-share"> <span class="close"></span> <h4><?php esc_html_e( 'Share it with your friends', 'retail-pro' ); ?></h4> <div class="ui fluid left icon input"> <input value="<?php echo wpcoupon_coupon()->get_share_url() ?>" type="text"> <i class="linkify icon"></i> </div> <br> <div class="coupon-share"> <?php $args = array( 'title' => get_the_title( wpcoupon_coupon()->ID ), 'summary' => wpcoupon_coupon()->get_excerpt(140), 'url' => wpcoupon_coupon()->get_share_url() ); echo WPCoupon_Socials::facebook_share( $args ); echo WPCoupon_Socials::twitter_share( $args ); do_action('loop_coupon_more_share_buttons'); ?> </div> </div> <div data-coupon-id="<?php echo wpcoupon_coupon()->ID; ?>" class="reveal-content reveal-comments"> <span class="close"></span> <!-- Tab area--> <form class="tabset"> <!-- Tab 1 --> <input type="radio" name="tabset" id="<?php echo wpcoupon_coupon()->ID; ?>-tab1" aria-controls="<?php echo wpcoupon_coupon()->ID; ?>-tab1" checked="checked"> <label for="<?php echo wpcoupon_coupon()->ID; ?>-tab1">Details</label> <!-- Tab 2 --> <input type="radio" name="tabset" id="<?php echo wpcoupon_coupon()->ID; ?>-tab2" aria-controls="<?php echo wpcoupon_coupon()->ID; ?>-tab2"> <label for="<?php echo wpcoupon_coupon()->ID; ?>-tab2">Comment</label> <div class="tab-panels"> <section id="<?php echo wpcoupon_coupon()->ID; ?>-tab1" class="tab-panel"> <div class="c-type"> <?php if ( ! wpcoupon_coupon()->has_expired() ) { ?> <span class="exp"><?php echo wpcoupon_coupon()->get_expires(); ?></span> <?php } else { ?> <span class="exp has-expired"><?php echo wpcoupon_coupon()->get_expires(); ?></span> <?php } ?> </div> <div class="coupon-des"> <?php if ( wpcoupon_get_option( 'coupon_more_desc', true ) ) { ?> <div class="coupon-des-ellip"><?php echo wpcoupon_coupon()->get_excerpt( false, '<span class="c-actions-span">...<a class="more" href="#">'.esc_html__( 'More', 'wp-coupon' ).'</a></span>', $has_thumb ); ?></div> <?php if ( wpcoupon_coupon()->has_more_content ) { ?> <div class="coupon-des-full"><?php echo str_replace( ']]>', ']]>', apply_filters( 'the_content', wpcoupon_coupon()->post_content.' <a class="more less" href="#">'. esc_html__( 'Less', 'wp-coupon') .'</a>' ) ); ?></div> <?php } ?> <?php } else { ?> <?php echo apply_filters( 'the_content', wpcoupon_coupon()->post_content ); ?> <?php } ?> </div> </section> <section id="<?php echo wpcoupon_coupon()->ID; ?>-tab2" class="tab-panel"> <div class="coupon-comment-wrap"> <div class="coupon-comment"> <?php if ( get_comments_number( ) ) { ?> <h4 class="cm-heading"><?php esc_html_e( 'Showing most recent comments', 'retail-pro' ) ?></h4> <?php } ?> <div data-id="<?php echo wpcoupon_coupon()->ID; ?>" class="comments-coupon-<?php echo wpcoupon_coupon()->ID; ?> ui threaded comments"> <h4><?php esc_html_e( 'Loading comments....', 'retail-pro' ) ?></h4> </div> <?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <h4 class="cm-comment-closed"><?php esc_html_e( 'Comments are closed.', 'retail-pro' ); ?></h4> <?php else: ?> <h4><?php esc_html_e( 'Let others know how much you saved', 'retail-pro' ); ?></h4> <form class="coupon-comment-form" data-cf="<?php echo wpcoupon_coupon()->ID; ?>" action="<?php echo site_url('/'); ?>" method="post"> <div style="display: none;" class="ui success message"> <?php esc_html_e( 'Your comment submitted.', 'retail-pro' ); ?> </div> <div style="display: none;" class="ui negative message"> <?php esc_html_e( 'Something wrong! Please try again later.', 'retail-pro' ); ?> </div> <div class="ui form"> <div class="field comment_content"> <textarea class="comment_content" name="c_comment[comment_content]" placeholder="<?php esc_attr_e( 'Add a comment', 'retail-pro' ); ?>"></textarea> </div> <?php if ( ! is_user_logged_in() ) { ?> <div class="two fields"> <div class="field comment_author"> <input type="text" class="comment_author" name="c_comment[comment_author]" placeholder="<?php esc_attr_e( 'Your Name', 'retail-pro' ); ?>"> </div> <div class="field comment_author_email"> <input type="text" class="comment_author_email" name="c_comment[comment_author_email]" placeholder="<?php esc_attr_e( 'Your Email', 'retail-pro' ) ?>"> </div> </div> <?php } ?> <button type="submit" class="ui button btn btn_primary"><?php esc_html_e( 'Submit', 'retail-pro' ); ?></button> </div> <input type="hidden" name="action" value="wpcoupon_coupon_ajax"> <input type="hidden" name="st_doing" value="new_comment"> <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce(); ?>"> <input type="hidden" name="c_comment[comment_parent]" class="comment_parent"> <input type="hidden" name="c_comment[comment_post_ID]" value="<?php echo wpcoupon_coupon()->ID; ?>" class="comment_post_ID"> </form> <?php endif; ?> </div> </div> </section> </div> </form> <!-- Tab Area--> </div> </div> <div class="clear"></div> <?php get_template_part( 'loop/coupon-modal' ); ?> </div>