HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/www/aritmodecarnaval/wp-content/plugins/wd-manager/templates/display_special_offers.php
<?php
/*
*$wdd_options
*$wd_plugins
*$user_hash
*$all_plugins
*$site_url
*/

/*Self update notice*/
if($self_update){
   WDD::message("message");
}

 ?>

<div id="wd_overview"  class="wd_clear wd_overview" data-origin="<?php echo $site_url; ?>" data-user="<?php echo $user_hash; ?>">
	<?php		
	 require_once ( WDD_DIR_TEMPLATES . '/display_login_form.php' );
	 if(is_array($wd_coupons) && count($wd_coupons)) :
      $wd_coupons = array_reverse($wd_coupons);	 ?>
			<div id="wd_coupons">
          <h2><?php _e("Available Coupons", WDD_LANG); ?></h2>
					<table>
					  <tr>
							<th><?php _e("Product", WDD_LANG); ?></th>
							<th><?php _e("Discount", WDD_LANG); ?></th>
							<th><?php _e("Valid through", WDD_LANG); ?></th>
							<th><?php _e("Coupon code", WDD_LANG); ?></th>
						</tr>
						<?php $i = 0;
						foreach($wd_coupons as $wd_coupon) : ?>
							<tr>
								<td>
									<?php 
										foreach( $wd_coupon["subscribtions"] as $subscribtion ) {
											echo '<p><a href="' . WDD_SITE_LINK . $subscribtion["url"] .'" target="_blank">' .  $subscribtion["name"] . '</a></p>';	
										} 
									?>
								</td>
								<td><?php echo $wd_coupon["discount"]; ?></td>
								<td><?php echo date("d.m. Y", strtotime($wd_coupon["end_date"])); ?></td>
								<td><span id="coupon_code_<?php echo $i; ?>"><?php echo $wd_coupon["coupon_code"]; ?></span><span class="copy_code"><?php _e("Copy", WDD_LANG); ?></span></td>
							</tr>
						<?php
            $i++;
						endforeach; ?>
					</table>
			</div>
		<?php endif; ?>
	  <div id="wd_baner" class="special_offers">
			<div id="special_offers_iframe" data-prod_id="180"> </div>
			<iframe src="<?php echo WDD_SPECIAL_OFFERS; ?>" scrolling="no"></iframe>
    </div>
</div>
<div id="wd_iframe" class="wd_popup">
  <div id="wd_iframe_container">
    <div class="wd_close"></div>
    <div id="wd_iframe_content">
      <span class="spinner"></span>
    </div>
  </div>
</div>