Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/setting/
Upload File :
Current File : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/setting/affiliates.phtml

<div class="page-margin mt-0">
	<div class="wow_content popular_posts_hdr">
		<h2><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 14.7724C4 13.4167 4.96316 12.262 6.27213 12.0483L6.39004 12.0291C7.4382 11.858 8.50625 11.858 9.5544 12.0291L9.67231 12.0483C10.9813 12.262 11.9444 13.4167 11.9444 14.7724C11.9444 15.3583 11.48 15.8333 10.9071 15.8333H5.03739C4.46446 15.8333 4 15.3583 4 14.7724Z" stroke="currentColor"/><path d="M10.2894 7.36979C10.2894 8.67859 9.25194 9.73958 7.97222 9.73958C6.69251 9.73958 5.65509 8.67859 5.65509 7.36979C5.65509 6.06099 6.69251 5 7.97222 5C9.25194 5 10.2894 6.06099 10.2894 7.36979Z" stroke="currentColor"/><path d="M11.9443 9.73958C13.5731 9.73958 14.8934 8.67859 14.8934 7.36979C14.8934 6.06099 13.5731 5 11.9443 5M13.958 15.8333H15.6796C16.4088 15.8333 16.9999 15.3583 16.9999 14.7724C16.9999 13.4167 15.774 12.262 14.1081 12.0483L13.958 12.0291C13.5538 12.0291 13.5296 12.0291 12.9901 12.0291" class="icon_main" stroke-linecap="round"/></svg>&nbsp;<?php echo $wo['lang']['my_affiliates']; ?></h2>
	</div>
</div>

<div class="wo_settings_page wow_content">

	<!-- <a href="<?php echo Wo_SeoLink('index.php?link1=setting&page=payments');?>" data-ajax="?link1=setting&page=payments"><?php echo Wo_GetCurrency($wo['config']['ads_currency']) . $wo['setting']['balance'];?></a> -->
	<div class="setting-panel">
		<div class="wow_aff_main">
			<h4>
				<?php
					if( $wo['config']['amount_percent_ref'] > 0 ){
						$earn_users = str_replace('{amount}', $wo['config']['amount_percent_ref'], $wo['lang']['earn_users']);
						$earn_users = str_replace('$', '%', $earn_users);
						$earn_users_pro = str_replace('{amount}', $wo['config']['amount_percent_ref'], $wo['lang']['earn_users_pro']);
						$earn_users_pro = str_replace('$', '%', $earn_users_pro);
					}else if( $wo['config']['amount_ref'] > 0 ){
						$earn_users = str_replace('{amount}', $wo['config']['amount_ref'], $wo['lang']['earn_users']);
						$earn_users = str_replace('$', Wo_GetCurrency($wo['config']['ads_currency']), $earn_users);
						$earn_users_pro = str_replace('{amount}', $wo['config']['amount_ref'], $wo['lang']['earn_users_pro']);
						$earn_users_pro = str_replace('$', Wo_GetCurrency($wo['config']['ads_currency']), $earn_users_pro);
					}
				?>
				<?php if($wo['config']['affiliate_type'] == 0) { ?>
					<?php echo $earn_users; ?>
				<?php } else { ?>
					<?php echo $earn_users_pro; ?>
				<?php } ?>
			</h4>
			<img src="<?php echo $wo['config']['theme_url'];?>/img/affiliate.png" />
		</div>
		<div class="row">
			<div class="col-md-8">
				<div class="wo_affiliate_bottom">
					<?php $link = $wo['config']['site_url'] . '/register?ref=' . $wo['setting']['username'];?>
					<div class="wow_form_fields">
						<label for="link"><?php echo $wo['lang']['your_ref_link'];?></label>
					</div>
					<div class="wow_form_fields aff_link">
						<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.09091H15L9.16043 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15 9.90909L1 9.90909L6.83957 15" class="icon_main" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>
						<input id="link" class="width-dynamic" type="text" value="<?php echo $link;?>" autocomplete="off" onclick="this.select();" readonly>
					</div>
				</div>
			</div>
			<div class="col-md-4">
				<div class="wo_affiliate_bottom">
					<div class="wow_form_fields">
						<label for="share_to"><?php echo $wo['lang']['share_to'];?></label>
					</div>
					<div class="wow_form_fields social">
						<a rel="publisher" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $link;?>" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z"></path></svg>
						</a>
						<a href="https://twitter.com/intent/tweet?text=<?php echo $link;?>" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z"></path></svg>
						</a>
						<a href="https://api.whatsapp.com/send?text=<?php echo $link;?>" data-action="share/whatsapp/share" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12.04 2C6.58 2 2.13 6.45 2.13 11.91C2.13 13.66 2.59 15.36 3.45 16.86L2.05 22L7.3 20.62C8.75 21.41 10.38 21.83 12.04 21.83C17.5 21.83 21.95 17.38 21.95 11.92C21.95 9.27 20.92 6.78 19.05 4.91C17.18 3.03 14.69 2 12.04 2M12.05 3.67C14.25 3.67 16.31 4.53 17.87 6.09C19.42 7.65 20.28 9.72 20.28 11.92C20.28 16.46 16.58 20.15 12.04 20.15C10.56 20.15 9.11 19.76 7.85 19L7.55 18.83L4.43 19.65L5.26 16.61L5.06 16.29C4.24 15 3.8 13.47 3.8 11.91C3.81 7.37 7.5 3.67 12.05 3.67M8.53 7.33C8.37 7.33 8.1 7.39 7.87 7.64C7.65 7.89 7 8.5 7 9.71C7 10.93 7.89 12.1 8 12.27C8.14 12.44 9.76 14.94 12.25 16C12.84 16.27 13.3 16.42 13.66 16.53C14.25 16.72 14.79 16.69 15.22 16.63C15.7 16.56 16.68 16.03 16.89 15.45C17.1 14.87 17.1 14.38 17.04 14.27C16.97 14.17 16.81 14.11 16.56 14C16.31 13.86 15.09 13.26 14.87 13.18C14.64 13.1 14.5 13.06 14.31 13.3C14.15 13.55 13.67 14.11 13.53 14.27C13.38 14.44 13.24 14.46 13 14.34C12.74 14.21 11.94 13.95 11 13.11C10.26 12.45 9.77 11.64 9.62 11.39C9.5 11.15 9.61 11 9.73 10.89C9.84 10.78 10 10.6 10.1 10.45C10.23 10.31 10.27 10.2 10.35 10.04C10.43 9.87 10.39 9.73 10.33 9.61C10.27 9.5 9.77 8.26 9.56 7.77C9.36 7.29 9.16 7.35 9 7.34C8.86 7.34 8.7 7.33 8.53 7.33Z" /></svg>
						</a>
						<a href="https://pinterest.com/pin/create/button/?url=<?php echo $link;?>" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M9.04,21.54C10,21.83 10.97,22 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12C2,16.25 4.67,19.9 8.44,21.34C8.35,20.56 8.26,19.27 8.44,18.38L9.59,13.44C9.59,13.44 9.3,12.86 9.3,11.94C9.3,10.56 10.16,9.53 11.14,9.53C12,9.53 12.4,10.16 12.4,10.97C12.4,11.83 11.83,13.06 11.54,14.24C11.37,15.22 12.06,16.08 13.06,16.08C14.84,16.08 16.22,14.18 16.22,11.5C16.22,9.1 14.5,7.46 12.03,7.46C9.21,7.46 7.55,9.56 7.55,11.77C7.55,12.63 7.83,13.5 8.29,14.07C8.38,14.13 8.38,14.21 8.35,14.36L8.06,15.45C8.06,15.62 7.95,15.68 7.78,15.56C6.5,15 5.76,13.18 5.76,11.71C5.76,8.55 8,5.68 12.32,5.68C15.76,5.68 18.44,8.15 18.44,11.43C18.44,14.87 16.31,17.63 13.26,17.63C12.29,17.63 11.34,17.11 11,16.5L10.33,18.87C10.1,19.73 9.47,20.88 9.04,21.57V21.54Z" /></svg>
						</a>
						<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo $link;?>" target="_blank">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 3A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H5A2 2 0 0 1 3 19V5A2 2 0 0 1 5 3H19M18.5 18.5V13.2A3.26 3.26 0 0 0 15.24 9.94C14.39 9.94 13.4 10.46 12.92 11.24V10.13H10.13V18.5H12.92V13.57C12.92 12.8 13.54 12.17 14.31 12.17A1.4 1.4 0 0 1 15.71 13.57V18.5H18.5M6.88 8.56A1.68 1.68 0 0 0 8.56 6.88C8.56 5.95 7.81 5.19 6.88 5.19A1.69 1.69 0 0 0 5.19 6.88C5.19 7.81 5.95 8.56 6.88 8.56M8.27 18.5V10.13H5.5V18.5H8.27Z"></path></svg>
						</a>
					</div>
				</div>
			</div>
		</div>

		<div class="referres wo_referres">
			<?php if (!empty($wo['setting']['ref_level'])) {
				$ref_level = json_decode($wo['setting']['ref_level'],true);
				if (!empty($ref_level)) {
			?>
				<ul class="multi_ref_sys" id="refs_myUL">
					<?php foreach ($ref_level as $key => $value) {
						$wo['ref'] = Wo_UserData($key);
					?>
					<?php if (!empty($value)) { ?>
						<li><span class="refs_caret" users_data="<?php echo $wo['ref']['user_id']; ?>" onclick="GetNextUsers(this)"><?php echo Wo_LoadPage('setting/refs'); ?></span>
					    </li>
					<?php }else{ ?>
					    <li><span><?php echo Wo_LoadPage('setting/refs'); ?></span></li>
				  <?php } ?>
				  <?php } ?>
				</ul>
			<?php }}else{
				$refs = Wo_GetReferrers();
	      	 	if (count($refs) > 0) {
	      	 	 	foreach ($refs as $key => $wo['ref']) {
	      	 	 		echo Wo_LoadPage('setting/refs');
	      	 	 	}
	      	 	}
	      	 }
			?>

		</div>
	</div>
</div>
<script>
	$.fn.textWidth = function(text, font) {
		if (!$.fn.textWidth.fakeEl) $.fn.textWidth.fakeEl = $('<span>').hide().appendTo(document.body);
		$.fn.textWidth.fakeEl.text(text || this.val() || this.text() || this.attr('placeholder')).css('font', font || this.css('font'));
		return $.fn.textWidth.fakeEl.width();
	};

	$('.width-dynamic').on('input', function() {
		var inputWidth = $(this).textWidth();
		$(this).css({
			width: inputWidth
		})
	}).trigger('input');
	
	function GetNextUsers(self){
		next_users = $(self).attr('users_data');
		$.post( Wo_Ajax_Requests_File() + '?f=next_users', {user_id:"<?php echo $wo['setting']['user_id']; ?>",next_users:next_users}, function(data, textStatus, xhr) {
			if (data.status == 200) {
				$(self).after(data.html);
				self.parentElement.querySelector(".refs_nested").classList.toggle("refs_active");
			    self.classList.toggle("refs_caret_down");
			}
		});
	}
</script>