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);