HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/public_html/wp-content/themes/rehub-theme/inc/ce_common/data_button.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php foreach ($items as $item): ?>
	<?php $domain = $merchant = '';?>
	<?php $offer_post_url = $item['url'] ;?>
	<?php $afflink = apply_filters('rh_post_offer_url_filter', $offer_post_url );?> 
	<?php $merchant = (!empty($item['merchant'])) ? $item['merchant'] : ''; ?>
	<?php if (!empty($item['domain'])):?>
	    <?php $domain = $item['domain'];?>
	<?php elseif (!empty($item['extra']['domain'])):?>
	    <?php $domain = $item['extra']['domain'];?>
	<?php endif;?>  
	<?php if(rehub_option('rehub_btn_text') !='') :?><?php $btn_txt = rehub_option('rehub_btn_text') ; ?><?php else :?><?php $btn_txt = \ContentEgg\application\helpers\TemplateHelper::buyNowBtnText(false, $item);?><?php endif ;?>   	    
	<div class="text-center mt20 mb20">
	<a href="<?php echo esc_url($afflink) ?>" class="re_track_btn wpsm-button rehub_main_btn btn_offer_block" target="_blank" <?php echo ce_printRel();?>>
		<span><strong><?php echo esc_html($btn_txt) ?></strong></span>
		<?php if($merchant):?>
			<span class="aff_tag mtinside">@<?php echo esc_attr($merchant); ?></span>
		<?php else:?>
			<span class="aff_tag mtinside">@<?php echo esc_attr($domain); ?></span>
		<?php endif;?>
	</a>    
	</div>                                                                    
<?php endforeach; ?>