zZzzZ.
home2
/
zrzvbdry
/
airuzu.com
/
wp-content
/
themes
/
savings-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 store-listing-item coupon-list-cat <?php echo $has_thumb ? 'has-thumb' : 'no-thumb'; ?> c-cat c-type-<?php echo esc_attr( wpcoupon_coupon()->get_type() ); ?> shadow-box <?php echo ( $has_expired ) ? 'coupon-expired' : 'coupon-live'; ?> store-sig coupon-listing-item"> <div class="coupon-cat-wrap"> <?php if ( $has_thumb ) { $myimage = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');?> <?php $background_colors = array('#b1ebc6', '#b1bbeb', '#ebd9b1', '#ebb1df', '#ffffff'); $count = count($background_colors) - 1; $i = rand(0, $count); $rand_background = $background_colors[$i]; ?> <div class="store-thumb-link" style="background-color: <?php echo $rand_background; ?>;"> <?php wpcoupon_thumb( $has_thumb === 'save_value' ? true : false ); ?> </div> <?php } ?> <div class="latest-coupon"> <h3 class="coupon-title" > <?php edit_post_link('<i class="edit icon"></i>', '', '', wpcoupon_coupon()->ID ); ?> <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> <div class="coupon-des"> <?php if ( wpcoupon_get_option( 'enable_coupon_des_cat', true ) ) { ?> <?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">...</span>', $has_thumb ); ?> </div> <?php } else { ?> <?php echo apply_filters( 'the_content', wpcoupon_coupon()->post_content ); ?> <?php } ?> <?php } ?> <?php if ( wpcoupon_get_option( 'enable_coupon_btn_cat', true ) ) { ?> <div class="coupon-detail coupon-button-type coupon-button-position"> <?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" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>"><?php echo esc_attr( wpcoupon_get_option( 'get_deal_btn_txt' ), 'savings-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" href="<?php echo esc_attr( wpcoupon_coupon()->get_href() ); ?>"><?php echo esc_attr( wpcoupon_get_option( 'print_coupon_btn_txt' ), 'savings-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" data-tooltip="<?php echo esc_attr_e( 'Click to copy & open site', 'savings-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, true ) ); ?></span> <span class="get-code"><?php echo esc_attr( wpcoupon_get_option( 'get_code_btn_txt' ), 'savings-pro' ); ?></span> </a> <?php } ?> <div class="clear"></div> </div> <?php }?> </div> </div> <div class="clear"></div> </div> <?php if ( wpcoupon_get_option( 'coupon_cat_bttom_cat', true ) ) { ?> <div class="coupon-cat-bttom"> <?php //get_template_part('loop/coupon-meta'); ?> <?php get_template_part('loop/coupon-foo-meta'); ?> </div> <?php } ?> <?php get_template_part( 'loop/coupon-modal' ); ?> </div>