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/widgets/mortgage-calculator.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
extract( $args );

extract( $args );
extract( $instance );

echo trim($before_widget);

$title = apply_filters('widget_title', $instance['title']);

if ( $title ) {
    echo trim($before_title)  . trim( $title ) . $after_title;
}

$current_currency = WP_CarDealer_Price::get_current_currency();
$multi_currencies = WP_CarDealer_Price::get_currencies_settings();

if ( !empty($multi_currencies) && !empty($multi_currencies[$current_currency]) ) {
	$currency_args = $multi_currencies[$current_currency];
}

if ( !empty($currency_args) ) {
	$currency_symbol = !empty($currency_args['custom_symbol']) ? $currency_args['custom_symbol'] : '';
	if ( empty($currency_symbol) ) {
		$currency = !empty($currency_args['currency']) ? $currency_args['currency'] : 'USD';
		$currency_symbol = WP_CarDealer_Price::currency_symbol($currency);
	}
}

if ( empty($currency_symbol) ) {
	$currency_symbol = '$';
}

?>

<div class="apus-mortgage-calculator">
	<div class="form-group">
		<input class="form-control" id="apus_mortgage_listing_price" type="text" placeholder="<?php esc_attr_e('Price', 'voiture'); ?>">
		<span class="unit"><?php echo esc_attr($currency_symbol); ?></span>
	</div>
	
	<div class="form-group">
		<input class="form-control" id="apus_mortgage_interest_rate" type="text" placeholder="<?php esc_attr_e('Rate', 'voiture'); ?>">
		<span class="unit"><?php esc_html_e('%', 'voiture'); ?></span>
	</div>
	<div class="form-group">
		<input class="form-control" id="apus_mortgage_term_years" type="text" placeholder="<?php esc_attr_e('Loan Term', 'voiture'); ?>">
		<span class="unit"><?php esc_html_e('Year', 'voiture'); ?></span>
	</div>
	<div class="form-group">
		<input class="form-control" id="apus_mortgage_deposit" type="text" placeholder="<?php esc_attr_e('Down Payment', 'voiture'); ?>">
		<span class="unit"><?php echo esc_attr($currency_symbol); ?></span>
	</div>
	
	<button id="btn_mortgage_get_results" class="btn btn-theme-second btn-block"><?php esc_html_e('Calculate', 'voiture'); ?></button>
	<div class="apus_mortgage_results"></div>
</div>
<?php echo trim($after_widget);