HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
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: /var/www/html/wpprotonperinggit/wp-content/themes/voiture/template-paid-listings/user-packages.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}
if ( $user_packages ) : ?>
	<div class="widget-your-packages">
		<h2 class="title-profile"><?php esc_html_e( 'Your Packages', 'voiture' ); ?></h2>
		<div class="clearfix space-30">
			<div class="user-listing-packaged row">
				<?php
					$prefix = WP_CARDEALER_WC_PAID_LISTINGS_PREFIX;
					$checked = 1; foreach ( $user_packages as $key => $package ) :
					$package_count = get_post_meta($package->ID, $prefix.'package_count', true);
					$listing_limit = get_post_meta($package->ID, $prefix.'listing_limit', true);
					$listing_duration = get_post_meta($package->ID, $prefix.'listing_duration', true);
				?>
						<div class="col-xs-6 col-md-3">
							<div class="inner-user-listing-packaged">
								
								<input type="radio" <?php checked( $checked, 1 ); ?> name="wcdwpl_listing_package" value="user-<?php echo esc_attr($package->ID); ?>" id="user-package-<?php echo esc_attr($package->ID); ?>" />
								

								<label for="user-package-<?php echo esc_attr($package->ID); ?>">
									<span class="value">
										<?php echo trim($package->post_title); ?>
									</span>
									<span class="des-package">
										<?php
											if ( $listing_limit ) {
												printf( _n( '%s listing posted out of %d', '%s listings posted out of %d', $package_count, 'voiture' ), $package_count, $listing_limit );
											} else {
												printf( _n( '%s listing posted', '%s listings posted', $package_count, 'voiture' ), $package_count );
											}

											if ( $listing_duration ) {
												printf(  ', ' . _n( 'listed for %s day', 'listed for %s days', $listing_duration, 'voiture' ), $listing_duration );
											}

											$checked = 0;
										?>
									</span>
								</label>
							</div>
						</div>
				<?php endforeach; ?>
			</div>
			<div class="bottom-packages">
				<button class="btn btn-theme" type="submit">
					<?php esc_html_e('ADD LISTING', 'voiture') ?>
				</button>
			</div>
		</div>
	</div>
<?php endif; ?>