File: /home/dh_hwg2wc/fnaluxury.com/wp-content/themes/houzez/framework/options/price-currency.php
<?php
global $houzez_opt_name, $allowed_html_array;
Redux::setSection( $houzez_opt_name, array(
'title' => esc_html__( 'Price & Currency', 'houzez' ),
'id' => 'price-format',
'desc' => '',
'icon' => 'el-icon-usd el-icon-small',
'fields' => array(
array(
'id' => 'multi_currency',
'type' => 'switch',
'title' => esc_html__( 'Multi-currency', 'houzez' ),
'subtitle' => esc_html__( 'Please note: the currency switcher will not work if this option is enabled', 'houzez' ),
'desc' => esc_html__('Enable or disable multi-currency', 'houzez'),
'default' => 0,
'on' => esc_html__( 'Enabled', 'houzez' ),
'off' => esc_html__( 'Disabled', 'houzez' ),
),
array(
'id' => 'default_multi_currency',
'type' => 'select',
'title' => esc_html__('Default Currency', 'houzez' ),
'desc' => esc_html__('Select the default currency', 'houzez'),
'required' => array('multi_currency', '=', '1'),
'default' => 'USD',
'options' => houzez_available_currencies()
),
array(
'id' => 'info_normal',
'type' => 'info',
'title' => esc_html__( 'Info', 'houzez' ),
'desc' => wp_kses(__( '<a target="_blank" href="admin.php?page=houzez_currencies">Add Currencies</a>', 'houzez' ), $allowed_html_array),
'required' => array('multi_currency', '=', '1'),
),
array(
'id' => 'short_prices',
'type' => 'switch',
'title' => esc_html__( 'Short Price', 'houzez' ),
'subtitle' => esc_html__( 'Please note: the currency switcher will not work if the short price option is enabled', 'houzez' ),
'desc' => esc_html__( 'Enable or disable the short price numbers like 12K, 10M, 10B.', 'houzez' ),
'default' => 0,
'on' => esc_html__( 'Enabled', 'houzez' ),
'off' => esc_html__( 'Disabled', 'houzez' ),
),
array(
'id' => 'short_prices_indian_format',
'type' => 'switch',
'title' => esc_html__( 'Short Price Indian - Format', 'houzez' ),
'subtitle' => '',
'desc' => esc_html__( 'Enable or disable the short price numbers like 1 Hundred, 10 thousand, 10 crore.', 'houzez' ),
'default' => 0,
'required' => array('short_prices', '=', '1'),
'on' => esc_html__( 'Enabled', 'houzez' ),
'off' => esc_html__( 'Disabled', 'houzez' ),
),
array(
'id' => 'indian_format',
'type' => 'switch',
'title' => esc_html__( 'Indian Currency Format', 'houzez' ),
'desc' => esc_html__( 'Enable or disable the Indian Currency format', 'houzez' ),
'default' => 0,
'on' => esc_html__( 'Enabled', 'houzez' ),
'off' => esc_html__( 'Disabled', 'houzez' ),
),
array(
'id' => 'currency_symbol',
'type' => 'text',
'title' => esc_html__( 'Currency Symbol', 'houzez' ),
'read-only' => false,
'default' => '$',
'required' => array('multi_currency', '=', '0'),
'desc' => esc_html__( 'Enter the currency sign. (For Example: $)', 'houzez' ),
),
array(
'id' => 'currency_position',
'type' => 'select',
'title' => esc_html__( 'Currency Symbol Position', 'houzez' ),
'read-only' => false,
'required' => array('multi_currency', '=', '0'),
'options' => array(
'before' => esc_html__( 'Before the price', 'houzez' ),
'after' => esc_html__( 'After the price', 'houzez' )
),
'default' => 'before',
'subtitle' => '',
'desc' => esc_html__( 'Select the currency symbol position', 'houzez' ),
),
array(
'id' => 'decimals',
'type' => 'select',
'title' => esc_html__( 'Number of decimal points', 'houzez' ),
'read-only' => false,
'desc' => esc_html__( 'Select the decimal points', 'houzez' ),
//'required' => array('multi_currency', '=', '0'),
'required' => array(
array('multi_currency','=','0'),
array('indian_format','=','0')
),
'options' => array(
'0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10',
),
'default' => '0',
'subtitle' => '',
),
array(
'id' => 'decimal_point_separator',
'type' => 'text',
'title' => esc_html__( 'Decimal Points Separator', 'houzez' ),
'read-only' => false,
//'required' => array('multi_currency', '=', '0'),
'required' => array(
array('multi_currency','=','0'),
array('indian_format','=','0')
),
'default' => '.',
'desc' => esc_html__( 'Enter the decimal points separator (For Example: .)', 'houzez' ),
),
array(
'id' => 'thousands_separator',
'type' => 'text',
'title' => esc_html__( 'Thousands Separator', 'houzez' ),
'read-only' => false,
//'required' => array('multi_currency', '=', '0'),
'required' => array(
array('multi_currency','=','0'),
array('indian_format','=','0')
),
'default' => ',',
'desc' => esc_html__( 'Enter the thousands separator (For Example: ,)', 'houzez' ),
),
array(
'id' => 'currency_separator',
'type' => 'text',
'title' => esc_html__( 'Price Separator', 'houzez' ),
'read-only' => false,
'default' => '/',
'subtitle' => '',
'desc' => esc_html__( 'Provide what you want to show between price and price label. Example: / or empty space', 'houzez' )
),
),
));