<div class="buttons_col"> <div class="priced_block clearfix"> <div> <a class="btn_offer_block" href="<?php echo esc_url($afflink); ?> "<?php echo $item['ga_event']; ?> target="_blank" rel="nofollow"> <?php echo $btn_txt; ?> <span class="aff_tag mtinside"><?php echo rehub_get_site_favicon($item['orig_url']); ?> </span> </a> <?php $offer_coupon_mask = 1; ?> <?php if (!empty($item['extra']['coupon']['code_date'])) { ?> <?php $timestamp1 = strtotime($item['extra']['coupon']['code_date']); $seconds = $timestamp1 - time(); $days = floor($seconds / 86400); $seconds %= 86400; if ($days > 0) {
?> <?php $btn_txt = rehub_option('rehub_btn_text'); ?> <?php } else { ?> <?php $btn_txt = __('Buy now', 'rehub_child'); ?> <?php } ?> <?php echo esc_html($btn_txt); ?> <span class="aff_tag mtinside"><?php echo rehub_get_site_favicon($aff_url_exist); ?> </span> </a> </div> </div> <div class="ameb_search"><?php echo $amazon_link; echo $ebay_link; ?> </div> </div>