Your IP : 216.73.217.77


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

<div class="page-margin products">
	<div class="row">
		<div class="col-md-2 leftcol"><?php echo Wo_LoadPage("sidebar/left-sidebar"); ?></div>
		<div class="col-md-7 profile-lists singlecol">
			<?php if ($wo['config']['user_ads'] == 1): ?>
				<div id="sidebar-sticky-funding">
					<?php 
					  $wo['sidebar-ad'] = Wo_GetAdsByType('funding');
					  if (!empty($wo['sidebar-ad'])) {
					  	echo Wo_LoadPage('ads/includes/funding-ad');
					  }
					?>
					<div class="clear"></div>
				</div>
		    <?php endif; ?>
			
			<div class="page-margin mt-0">
				<div class="wow_content popular_posts_hdr">
					<img src="<?php echo $wo['config']['theme_url'];?>/img/funding.png" class="bg_trail">
					<h2><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.40515 6.37396C1.96569 4.11653 3.75566 2.37111 6.02612 1.86802L6.40434 1.78421C8.11449 1.40526 9.88682 1.40526 11.597 1.78421L11.9752 1.86802C14.2456 2.37111 16.0356 4.11653 16.5962 6.37396C17.0244 8.09846 17.0244 9.90154 16.5962 11.626C16.0356 13.8835 14.2456 15.6289 11.9752 16.132L11.597 16.2158C9.88682 16.5947 8.11448 16.5947 6.40434 16.2158L6.02611 16.132C3.75566 15.6289 1.96569 13.8835 1.40514 11.626C0.976931 9.90155 0.976931 8.09846 1.40515 6.37396Z" stroke="currentColor" stroke-width="1.5"></path><path d="M6.40434 1.78421C8.11449 1.40526 9.88682 1.40526 11.597 1.78421L11.9752 1.86802C14.2456 2.37111 16.0356 4.11653 16.5962 6.37396C17.0244 8.09846 17.0244 9.90154 16.5962 11.626C16.0356 13.8835 14.2456 15.6289 11.9752 16.132L11.597 16.2158C9.88682 16.5947 8.11448 16.5947 6.40434 16.2158L6.02611 16.132C3.75566 15.6289 1.96569 13.8835 1.40514 11.626C1.19104 10.7638 1.08398 9.8819 1.08398 9" class="icon_main" stroke-width="1.5" stroke-linecap="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00021 4.83337C9.31883 4.83337 9.57713 5.0767 9.57713 5.37685V5.82149H9.64103C10.7139 5.82149 11.5 6.70017 11.5 7.68249C11.5 7.98264 11.2417 8.22596 10.9231 8.22596C10.6045 8.22596 10.3462 7.98264 10.3462 7.68249C10.3462 7.20951 9.98423 6.90844 9.64103 6.90844H9.57713V8.61941L10.3561 8.88624C11.0639 9.12872 11.5 9.78816 11.5 10.4866C11.5 11.3755 10.7876 12.1785 9.8055 12.1785H9.57713V12.6232C9.57713 12.9234 9.31883 13.1667 9.00021 13.1667C8.68158 13.1667 8.42328 12.9234 8.42328 12.6232V12.1785H8.35897C7.28606 12.1785 6.5 11.2999 6.5 10.3175C6.5 10.0174 6.7583 9.77405 7.07692 9.77405C7.39555 9.77405 7.65385 10.0174 7.65385 10.3175C7.65385 10.7905 8.01577 11.0916 8.35897 11.0916H8.42328V9.38075L7.64393 9.11377C6.93608 8.8713 6.5 8.21186 6.5 7.51346C6.5 6.62449 7.21243 5.82149 8.1945 5.82149H8.42328V5.37685C8.42328 5.0767 8.68158 4.83337 9.00021 4.83337ZM8.42328 6.90844H8.1945C7.94213 6.90844 7.65385 7.13384 7.65385 7.51346C7.65385 7.80376 7.83339 8.02208 8.03825 8.09226L8.42328 8.22416V6.90844ZM9.57713 9.776V11.0916H9.8055C10.0579 11.0916 10.3462 10.8662 10.3462 10.4866C10.3462 10.1963 10.1666 9.97793 9.96175 9.90776L9.57713 9.776Z" fill="currentColor"></path></svg>&nbsp;<?php echo $wo['lang']['funding']; ?></h2>
				</div>
			</div>
			
			<div class="page-margin wow_content wow_big_head_link">
				<ul class="list-unstyled">
					<li><a href="<?php echo Wo_SeoLink('index.php?link1=funding'); ?>" data-ajax="?link1=funding"><?php echo $wo['lang']['browse_funding'] ?></a></li>
					<li class="active"><a href="<?php echo Wo_SeoLink('index.php?link1=my_funding'); ?>" data-ajax="?link1=my_funding"><?php echo $wo['lang']['my_funding'] ?></a></li>
				</ul>
			</div>
	
			<div class="wo_market">
				<div class="market_bottom">
					<div id="products" class="row">
						<?php if ($wo['config']['can_use_funding']) { ?>
							<div class="product col-proxs-12 col-xs-12 col-sm-12 col-md-4">
								<a class="btn btn-main btn-mat btn_create_big fund" href="<?php echo Wo_SeoLink('index.php?link1=create_funding');?>" data-ajax="?link1=create_funding">
									<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M30.4119 21.0827C29.326 25.7117 25.7117 29.3261 21.0826 30.4119C17.7396 31.1961 14.2604 31.1961 10.9174 30.4119C6.28835 29.3261 2.67395 25.7117 1.58813 21.0827C0.803958 17.7396 0.803958 14.2605 1.58813 10.9175C2.67395 6.28841 6.28834 2.67402 10.9174 1.58819C14.2604 0.804021 17.7396 0.804021 21.0826 1.58819C25.7116 2.67401 29.326 6.2884 30.4119 10.9174C31.196 14.2605 31.196 17.7396 30.4119 21.0827Z" stroke="currentColor" stroke-width="2"></path><path d="M30.4119 21.0827C31.196 17.7396 31.196 14.2605 30.4119 10.9174C29.326 6.2884 25.7116 2.67401 21.0826 1.58819C17.7396 0.804021 14.2604 0.804021 10.9174 1.58819C6.28834 2.67402 2.67395 6.28841 1.58812 10.9175C0.803957 14.2605 0.803957 17.7396 1.58813 21.0827C2.67395 25.7117 6.28834 29.3261 10.9174 30.4119" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M20.1673 16H11.834M16.0007 20.1666L16.0007 11.8333" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg> <?php echo $wo['lang']['create'] ?>
								</a>
							</div>
						<?php } ?>
						
						<?php  
							$funding = GetFundingByUserId($wo["user"]['id'],9); 
						?>
						<?php if ($funding && count($funding) > 0): ?>
							<?php foreach ($funding as $wo['fund']): ?>
								<?php echo Wo_LoadPage('my_funding/list'); ?>
							<?php endforeach ?>
						<?php else: ?> 
							<?php echo '<div class="product col-proxs-12 col-xs-12 col-sm-12 col-md-8"><div class="wow_content btn_create_big fund"><div class="empty_state"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.40515 6.37396C1.96569 4.11653 3.75566 2.37111 6.02612 1.86802L6.40434 1.78421C8.11449 1.40526 9.88682 1.40526 11.597 1.78421L11.9752 1.86802C14.2456 2.37111 16.0356 4.11653 16.5962 6.37396C17.0244 8.09846 17.0244 9.90154 16.5962 11.626C16.0356 13.8835 14.2456 15.6289 11.9752 16.132L11.597 16.2158C9.88682 16.5947 8.11448 16.5947 6.40434 16.2158L6.02611 16.132C3.75566 15.6289 1.96569 13.8835 1.40514 11.626C0.976931 9.90155 0.976931 8.09846 1.40515 6.37396Z" stroke="currentColor" stroke-width="1.5"></path><path d="M6.40434 1.78421C8.11449 1.40526 9.88682 1.40526 11.597 1.78421L11.9752 1.86802C14.2456 2.37111 16.0356 4.11653 16.5962 6.37396C17.0244 8.09846 17.0244 9.90154 16.5962 11.626C16.0356 13.8835 14.2456 15.6289 11.9752 16.132L11.597 16.2158C9.88682 16.5947 8.11448 16.5947 6.40434 16.2158L6.02611 16.132C3.75566 15.6289 1.96569 13.8835 1.40514 11.626C1.19104 10.7638 1.08398 9.8819 1.08398 9" class="icon_main" stroke-width="1.5" stroke-linecap="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00021 4.83337C9.31883 4.83337 9.57713 5.0767 9.57713 5.37685V5.82149H9.64103C10.7139 5.82149 11.5 6.70017 11.5 7.68249C11.5 7.98264 11.2417 8.22596 10.9231 8.22596C10.6045 8.22596 10.3462 7.98264 10.3462 7.68249C10.3462 7.20951 9.98423 6.90844 9.64103 6.90844H9.57713V8.61941L10.3561 8.88624C11.0639 9.12872 11.5 9.78816 11.5 10.4866C11.5 11.3755 10.7876 12.1785 9.8055 12.1785H9.57713V12.6232C9.57713 12.9234 9.31883 13.1667 9.00021 13.1667C8.68158 13.1667 8.42328 12.9234 8.42328 12.6232V12.1785H8.35897C7.28606 12.1785 6.5 11.2999 6.5 10.3175C6.5 10.0174 6.7583 9.77405 7.07692 9.77405C7.39555 9.77405 7.65385 10.0174 7.65385 10.3175C7.65385 10.7905 8.01577 11.0916 8.35897 11.0916H8.42328V9.38075L7.64393 9.11377C6.93608 8.8713 6.5 8.21186 6.5 7.51346C6.5 6.62449 7.21243 5.82149 8.1945 5.82149H8.42328V5.37685C8.42328 5.0767 8.68158 4.83337 9.00021 4.83337ZM8.42328 6.90844H8.1945C7.94213 6.90844 7.65385 7.13384 7.65385 7.51346C7.65385 7.80376 7.83339 8.02208 8.03825 8.09226L8.42328 8.22416V6.90844ZM9.57713 9.776V11.0916H9.8055C10.0579 11.0916 10.3462 10.8662 10.3462 10.4866C10.3462 10.1963 10.1666 9.97793 9.96175 9.90776L9.57713 9.776Z" fill="currentColor"></path></svg>' . $wo['lang']['no_funding_found'] . '</div></div></div>'; ?>
						<?php endif; ?> 
					</div>
				</div>
			</div>
				
			<div class="loading-alert"></div>
            
			<div class="posts_load">
				<?php if (count($funding) >= 8): ?>
					<div class="load-more">
                        <button class="btn btn-default text-center pointer load-more-my-fund">
                          <i class="fa fa-arrow-down progress-icon" data-icon="arrow-down"></i> 
                          <?php echo $wo['lang']['load_more'] ?>
                        </button>
					</div>
				<?php endif; ?>
			</div>
		</div>
	</div>
</div>
<?php echo Wo_LoadPage('my_funding/delete_fund');?>

<script>
$(document).ready(function() {
  $(".delete-fund").on("click", function() {
    $("#delete-fund").attr('data-fund-id', $(this).attr("id")).modal();      
  });

  $(".load-more-my-fund").click(function () {
      let offset = (($(".view-blog").length > 0) ? $(".view-blog:last").attr('id') : 0);

      $.ajax({
         url: Wo_Ajax_Requests_File(),
         type: 'GET',
         dataType: 'json',
         data: {f:"funding",s:"load_user_fund",offset:offset},
         success:function(data){
            if (data['status'] == 200 && data['html'] != '') {
              $("#products").append(data['html']);
            }

            else{
              $(".posts_load").remove();
            }
         }
      });
   });
});
</script>