MP_Calculator_Settings::set_fields()

Fields of Tab “General Settings”.


Return Return

(array) Calculator fields.

  • 'calc_title'
    (array) Calculator title
  • 'mortgage_amount'
    (array) Mortgage Amount Label
  • 'mortgage_amount_default'
    (array) Mortgage Amount Default Value
  • 'min_mortgage_amount'
    (array) Min Mortgage Amount Value
  • 'max_mortgage_amount'
    (array) Max Mortgage Amount Value
  • 'mortgage_amount_tooltip'
    (array) Mortgage Amount Tooltip
  • 'mortgage_amount_hint'
    (array) Mortgage Amount Hint
  • 'mortgage_amount_error'
    (array) Mortgage amount Error
  • 'interest_rate'
    (array) Interest Rate Label
  • 'interest_rate_default'
    (array) Interest Rate Default Value
  • 'min_interest_rate'
    (array) Min Interest Rate Value
  • 'max_interest_rate'
    (array) Max Interest Rate Value
  • 'interest_rate_tooltip'
    (array) Interest Rate Tooltip
  • 'interest_rate_hint'
    (array) Interest Rate Hint
  • 'interest_rate_error'
    (array) Interest Rate Error
  • 'down_payment'
    (array) Down Payment Label
  • 'down_payment_default'
    (array) Down Payment Default Value
  • 'min_down_payment'
    (array) Min Down Payment Value
  • 'max_down_payment'
    (array) Max Down Payment Value
  • 'down_payment_tooltip'
    (array) Down Payment Tooltip
  • 'down_payment_hint'
    (array) Down Payment Hint
  • 'down_payment_error'
    (array) Down Payment Error
  • 'term'
    (array) Term Label
  • 'term_default'
    (array) Term Default Value
  • 'min_term'
    (array) Min Term Value
  • 'max_term'
    (array) Max Term Value
  • 'term_tooltip'
    (array) Term Tooltip
  • 'term_hint'
    (array) Term Hint
  • 'term_error'
    (array) Term Error
  • 'term_years'
    (array) Caption Term Years Button
  • 'term_months'
    (array) Caption Term Months Button
  • 'button_text'
    (array) Button Calculate
  • 'button_tooltip'
    (array) Button Tooltip
  • 'button_reset_text'
    (array) Button Reset
  • 'button_reset_tooltip'
    (array) Button Reset Tooltip
  • 'button_close_text'
    (array) Button Close
  • 'button_close_tooltip'
    (array) Button Close Tooltip
  • 'down_payment_type'
    (array) Down Payment Type
  • 'insurance_cost_estimate'
    (array) Enable Insurance Cost Estimate
  • 'insurance_set_amount'
    (array) Is insurance a set amount or a percent of loan per month?
  • 'monthly_insurance'
    (array) Monthly Insurance Cost Estimate
  • 'pmi_cost_estimate'
    (array) Enable PMI Cost Estimate
  • 'monthly_pmi_insurance'
    (array) Monthly PMI Cost Estimate
  • 'tax_cost_estimate'
    (array) Enable Tax Cost Estimate
  • 'taxes_assessed'
    (array) Taxes Per 1000 Assessed
  • 'currency_symbol'
    (array) Currency Symbol
  • 'currency_symbol_position'
    (array) Position Currency Symbol
  • 'currency_format'
    (array) Currency Format
  • 'chart_principal_type'
    (array) Principal Chart Type
  • 'chart_principal_color'
    (array) Principal Chart Color
  • 'chart_interest_type'
    (array) Interest Chart Type
  • 'chart_interest_color'
    (array) Interest Chart Color
  • 'stacked_charts'
    (array) Stacked Principal and Interest Charts
  • 'chart_balance_type'
    (array) Balance Chart Type
  • 'chart_balance_color'
    (array) Balance Chart Color
  • 'payment'
    (array) Payment
  • 'payment_amount'
    (array) Payment Amt
  • 'interest'
    (array) Interest
  • 'total_interest'
    (array) Total Interest
  • 'principal'
    (array) Principal
  • 'balance'
    (array) Balance
  • 'loan_text'
    (array) Loan Details
  • 'schedule_text'
    (array) Amortization Schedule (P & I)
  • 'original'
    (array) Original Loan Amount
  • 'loan_after_down'
    (array) Loan After Down Payment
  • 'down_payment_amount'
    (array) Down Payment Amount
  • 'monthly_payment'
    (array) Monthly Payment (P & I)
  • 'total_payments'
    (array) Total Payments
  • 'notice'
    (array) Notice
  • 'calculator_url'
    (array) Page URL with mortgage calculator


Top ↑

Source Source

File: mortgage-platform/Inc/Calculators/MortgageCalculator/MP_Calculator_Settings.php

	public function set_fields() {
		$fields = array(
			array(
				'id'       => 'calc_title',
				'title'    => __( 'Calculator title', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'calc_title',
					'placeholder' => __( 'Mortgage calculator', 'mortgage_platform' ),
					'default'     => '',
					'description' => __( 'Set the title to display for the Calculator', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'mortgage_amount',
				'title'    => __( 'Mortgage Amount Label', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'mortgage_amount',
					'placeholder' => __( 'Mortgage Amount', 'mortgage_platform' ),
					'default'     => __( 'Mortgage Amount', 'mortgage_platform' ),
					'description' => __( 'Mortgage Amount Label', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'mortgage_amount_default',
				'title'    => __( 'Mortgage Amount Default Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'mortgage_amount_default',
					'placeholder' => __( '200000', 'mortgage_platform' ),
					'default'     => 200000,
					'description' => __( 'Mortgage Amount Default Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'min_mortgage_amount',
				'title'    => __( 'Min Mortgage Amount Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'min_mortgage_amount',
					'placeholder' => __( 'Mortgage Amount', 'mortgage_platform' ),
					'default'     => 0,
					'description' => __( 'Min Mortgage Amount Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'max_mortgage_amount',
				'title'    => __( 'Max Mortgage Amount Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'max_mortgage_amount',
					'placeholder' => __( 'Mortgage Amount', 'mortgage_platform' ),
					'default'     => 224000,
					'description' => __( 'Max Mortgage Amount Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'mortgage_amount_tooltip',
				'title'    => __( 'Mortgage Amount Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'mortgage_amount_tooltip',
					'placeholder' => __( 'Mortgage Amount', 'mortgage_platform' ),
					'default'     => __( 'Mortgage Amount', 'mortgage_platform' ),
					'description' => __( 'Mortgage Amount tooltip', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'mortgage_amount_hint',
				'title'    => __( 'Mortgage Amount Hint', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'mortgage_amount_hint',
					'placeholder' => __( 'Mortgage Amount Hint', 'mortgage_platform' ),
					'default'     => __( 'The total purchase price of the home you wish to buy.', 'mortgage_platform' ),
					'description' => __( 'Set the information bubble text for the Mortgage Amount Field.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'mortgage_amount_error',
				'title'    => __( 'Mortgage amount Error', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'mortgage_amount_error',
					'placeholder' => __( 'Mortgage amounts Error', 'mortgage_platform' ),
					'default'     => __( 'Please Enter a valid price.', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'interest_rate',
				'title'    => __( 'Interest Rate Label', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest_rate',
					'placeholder' => __( 'Interest Rate', 'mortgage_platform' ),
					'default'     => __( 'Interest Rate', 'mortgage_platform' ),
					'description' => __( 'Interest Rate Label', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'interest_rate_default',
				'title'    => __( 'Interest Rate Default Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest_rate_default',
					'placeholder' => __( '5', 'mortgage_platform' ),
					'default'     => 5,
					'description' => __( 'Interest Rate Default Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'min_interest_rate',
				'title'    => __( 'Min Interest Rate Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'min_interest_rate',
					'placeholder' => __( 'Interest Rate', 'mortgage_platform' ),
					'default'     => 0,
					'description' => __( 'Min Interest Rate Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'max_interest_rate',
				'title'    => __( 'Max Interest Rate Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'max_interest_rate',
					'placeholder' => __( 'Interest Rate', 'mortgage_platform' ),
					'default'     => 30,
					'description' => __( 'Max Interest Rate Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'interest_rate_tooltip',
				'title'    => __( 'Interest Rate Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest_rate_tooltip',
					'placeholder' => __( 'Interest Rate', 'mortgage_platform' ),
					'default'     => __( 'Interest Rate', 'mortgage_platform' ),
					'description' => __( 'Interest Rate tooltip', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'interest_rate_hint',
				'title'    => __( 'Interest Rate Hint ', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest_rate_hint',
					'placeholder' => __( 'Interest Rate Hint', 'mortgage_platform' ),
					'default'     => __( 'The expected percent interest rate you will get on your mortgage.', 'mortgage_platform' ),
					'description' => __( 'Set the information bubble text for the Interest Rate Field.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'interest_rate_error',
				'title'    => __( 'Interest Rate Error', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest_rate_error',
					'placeholder' => __( 'Interest Rate Error', 'mortgage_platform' ),
					'default'     => __( 'Please Enter a valid interest rate.', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'down_payment',
				'title'    => __( 'Down Payment Label', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment',
					'placeholder' => __( 'Down Payment', 'mortgage_platform' ),
					'default'     => __( 'Down Payment', 'mortgage_platform' ),
					'description' => __( 'Down Payment Label', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'down_payment_default',
				'title'    => __( 'Down Payment Default Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_default',
					'placeholder' => __( '20', 'mortgage_platform' ),
					'default'     => 20,
					'description' => __( 'Down Payment Default Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'min_down_payment',
				'title'    => __( 'Min Down Payment Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'min_down_payment',
					'placeholder' => __( 'Down Payment', 'mortgage_platform' ),
					'default'     => 0,
					'description' => __( 'Min Down Payment Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'max_down_payment',
				'title'    => __( 'Max Down Payment Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'max_down_payment',
					'placeholder' => __( 'Down Payment', 'mortgage_platform' ),
					'default'     => 99,
					'description' => __( 'Max Down Payment Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'down_payment_tooltip',
				'title'    => __( 'Down Payment Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_tooltip',
					'placeholder' => __( 'Down Payment', 'mortgage_platform' ),
					'default'     => __( 'Down Payment', 'mortgage_platform' ),
					'description' => __( 'Down Payment tooltip', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'down_payment_hint',
				'title'    => __( 'Down Payment Hint ', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_hint',
					'placeholder' => __( 'Down Payment Hint', 'mortgage_platform' ),
					'default'     => __( 'The percent down payment you wish to put towards the home.', 'mortgage_platform' ),
					'description' => __( 'Set the information bubble text for the Down Payment Field.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'down_payment_error',
				'title'    => __( 'Down Payment Error', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_error',
					'placeholder' => __( 'Down Payment Error', 'mortgage_platform' ),
					'default'     => __( 'Please Enter a valid down payment percent (can be 0).', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'term',
				'title'    => __( 'Term Label', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term',
					'placeholder' => __( 'Term', 'mortgage_platform' ),
					'default'     => __( 'Term', 'mortgage_platform' ),
					'description' => __( 'Term Label', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'term_default',
				'title'    => __( 'Term Default Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_default',
					'placeholder' => __( '30', 'mortgage_platform' ),
					'default'     => 30,
					'description' => __( 'Term Default Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'min_term',
				'title'    => __( 'Min Term Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'min_term',
					'placeholder' => __( 'Term', 'mortgage_platform' ),
					'default'     => 1,
					'description' => __( 'Min Term Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'max_term',
				'title'    => __( 'Max Term Value', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'max_term',
					'placeholder' => __( 'Term', 'mortgage_platform' ),
					'default'     => 90,
					'description' => __( 'Max Term Value', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'term_tooltip',
				'title'    => __( 'Term Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_tooltip',
					'placeholder' => __( 'Term', 'mortgage_platform' ),
					'default'     => __( 'Term', 'mortgage_platform' ),
					'description' => __( 'Term tooltip', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'term_hint',
				'title'    => __( 'Term Hint ', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_hint',
					'placeholder' => __( 'Term Hint', 'mortgage_platform' ),
					'default'     => __( 'The number of years it will take to repay the loan amount (30 years is normal).', 'mortgage_platform' ),
					'description' => __( 'Set the information bubble text for the Term Field.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'term_error',
				'title'    => __( 'Term Error', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_error',
					'placeholder' => __( 'Term Error', 'mortgage_platform' ),
					'default'     => __( 'Term cannot be 0.', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'term_years',
				'title'    => __( 'Caption Term Years Button', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_years',
					'placeholder' => __( 'Years', 'mortgage_platform' ),
					'default'     => __( 'Years', 'mortgage_platform' ),
					'description' => __( 'Caption Term Years Button', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'term_months',
				'title'    => __( 'Caption Term Months Button', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'term_months',
					'placeholder' => __( 'Months', 'mortgage_platform' ),
					'default'     => __( 'Months', 'mortgage_platform' ),
					'description' => __( 'Caption Term Months Button', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'button_text',
				'title'    => __( 'Button Calculate', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_text',
					'placeholder' => __( 'Button Calculate', 'mortgage_platform' ),
					'default'     => __( 'Calculate', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'button_tooltip',
				'title'    => __( 'Button Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_tooltip',
					'placeholder' => __( 'Button Tooltip', 'mortgage_platform' ),
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'button_reset_text',
				'title'    => __( 'Button Reset', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_reset_text',
					'placeholder' => __( 'Button Reset ', 'mortgage_platform' ),
					'default'     => __( 'Reset', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'button_reset_tooltip',
				'title'    => __( 'Button Reset Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_reset_tooltip',
					'placeholder' => __( 'Button Reset Tooltip', 'mortgage_platform' ),
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'button_close_text',
				'title'    => __( 'Button Close', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_close_text',
					'placeholder' => __( 'Button Close ', 'mortgage_platform' ),
					'default'     => __( 'Close', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'button_close_tooltip',
				'title'    => __( 'Button Close Tooltip', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'button_close_tooltip',
					'placeholder' => __( 'Button Close Tooltip', 'mortgage_platform' ),
					'default'     => __( 'Close', 'mortgage_platform' ),
					'description' => '',
				),
			),
			array(
				'id'       => 'down_payment_type',
				'title'    => __( 'Down Payment Type', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_type',
					'placeholder' => '',
					'default'     => __( 'percent', 'mortgage_platform' ),
					'description' => __( 'Choose whether to use percent or amount input for the down payment', 'mortgage_platform' ),
					'options'     => array(
						'percent' => __( 'Percent', 'mortgage_platform' ),
						'amount'  => __( 'Amount', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'insurance_cost_estimate',
				'title'    => __( 'Enable Insurance Cost Estimate', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'insurance_cost_estimate',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Choose whether to give a homeowners insurance estimate', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'insurance_set_amount',
				'title'    => __( 'Is insurance a set amount or a percent of loan per month?', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'insurance_set_amount',
					'placeholder' => '',
					'default'     => __( 'percent', 'mortgage_platform' ),
					'description' => __( 'This affects the value below as to whether it is a set amount or percent of the loan (divided by 12) per month', 'mortgage_platform' ),
					'options'     => array(
						'percent' => __( 'Percent', 'mortgage_platform' ),
						'amount'  => __( 'Amount', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'monthly_insurance',
				'title'    => __( 'Monthly Insurance Cost Estimate', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'monthly_insurance',
					'placeholder' => '',
					'default'     => __( '56', 'mortgage_platform' ),
					'description' => __( 'Set the monthly insurance cost or the percent (depending on what whas chosen above) for the calculator', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'pmi_cost_estimate',
				'title'    => __( 'Enable PMI Cost Estimate', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'pmi_cost_estimate',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Choose whether to give a PMI estimate', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'monthly_pmi_insurance',
				'title'    => __( 'Monthly PMI Cost Estimate', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'monthly_pmi_insurance',
					'placeholder' => '',
					'default'     => __( '56', 'mortgage_platform' ),
					'description' => __( 'Set the monthly PMI cost for the calculator. If you don\'t know, leave this as-is. This is just an average cost per 100,000 dollars borrowed.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'tax_cost_estimate',
				'title'    => __( 'Enable Tax Cost Estimate', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'tax_cost_estimate',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Choose whether to give a tax estimate or not', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'taxes_assessed',
				'title'    => __( 'Taxes Per 1000 Assessed', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'taxes_assessed',
					'placeholder' => '',
					'default'     => __( '10', 'mortgage_platform' ),
					'description' => __( 'Set the tax rate per 1000 dollars assessed. If you don\'t know, leave this as-is. This is just an average cost based on assessed value.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'currency_symbol',
				'title'    => __( 'Currency Symbol', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'currency_symbol',
					'placeholder' => __( '$', 'mortgage_platform' ),
					'default'     => __( '$', 'mortgage_platform' ),
					'description' => __( 'Set the currency symbol used in the Calculator (default $)', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'currency_symbol_position',
				'title'    => __( 'Position Currency Symbol', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'currency_symbol_position',
					'placeholder' => '',
					'default'     => __( 'before', 'mortgage_platform' ),
					'description' => __( 'Default: before', 'mortgage_platform' ),
					'options'     => array(
						'before' => __( 'Before', 'mortgage_platform' ),
						'after'  => __( 'After', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'currency_format',
				'title'    => __( 'Currency Format', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'currency_format',
					'placeholder' => '',
					'default'     => __( '1', 'mortgage_platform' ),
					'description' => __( 'Default: Standard', 'mortgage_platform' ),
					'options'     => array(
						'1' => __( 'Standard 100,000.00', 'mortgage_platform' ),
						'2' => __( 'Flipped 100.000,00', 'mortgage_platform' ),
						'3' => __( 'Spaced 100 000,00', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'chart_principal_type',
				'title'    => __( 'Principal Chart Type', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_principal_type',
					'placeholder' => '',
					'default'     => __( 'line', 'mortgage_platform' ),
					'description' => __( 'Principal Chart Type', 'mortgage_platform' ),
					'options'     => array(
						'line' => __( 'Line', 'mortgage_platform' ),
						'bar'  => __( 'Bar', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'chart_principal_color',
				'title'    => __( 'Principal Chart Color', 'mortgage_platform' ),
				'callback' => array( $this, 'color' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_principal_color',
					'placeholder' => '',
					'default'     => __( 'rgba(217,83,79,0.75)', 'mortgage_platform' ),
					'description' => __( 'Principal Chart Color', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'chart_interest_type',
				'title'    => __( 'Interest Chart Type', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_interest_type',
					'placeholder' => '',
					'default'     => __( 'line', 'mortgage_platform' ),
					'description' => __( 'Interest Chart Type', 'mortgage_platform' ),
					'options'     => array(
						'line' => __( 'Line', 'mortgage_platform' ),
						'bar'  => __( 'Bar', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'chart_interest_color',
				'title'    => __( 'Interest Chart Color', 'mortgage_platform' ),
				'callback' => array( $this, 'color' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_interest_color',
					'placeholder' => '',
					'default'     => __( 'rgba(92,184,92,0.75)', 'mortgage_platform' ),
					'description' => __( 'Interest Chart Color', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'stacked_charts',
				'title'    => __( 'Stacked Principal and Interest Charts', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'stacked_charts',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Stacked Principal and Interest Charts', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'chart_balance_type',
				'title'    => __( 'Balance Chart Type', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_balance_type',
					'placeholder' => '',
					'default'     => __( 'line', 'mortgage_platform' ),
					'description' => __( 'Balance Chart Type', 'mortgage_platform' ),
					'options'     => array(
						'line' => __( 'Line', 'mortgage_platform' ),
						'bar'  => __( 'Bar', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'chart_balance_color',
				'title'    => __( 'Balance Chart Color', 'mortgage_platform' ),
				'callback' => array( $this, 'color' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'chart_balance_color',
					'placeholder' => '',
					'default'     => __( 'rgba(138, 43, 226,0.75)', 'mortgage_platform' ),
					'description' => __( 'Balance Chart Color', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'payment',
				'title'    => __( 'Payment', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'payment',
					'placeholder' => '',
					'default'     => __( 'Payment', 'mortgage_platform' ),
					'description' => __( 'Payment', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'payment_amount',
				'title'    => __( 'Payment Amt', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'payment_amount',
					'placeholder' => '',
					'default'     => __( 'Payment Amt', 'mortgage_platform' ),
					'description' => __( 'Payment Amt', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'interest',
				'title'    => __( 'Interest', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'interest',
					'placeholder' => '',
					'default'     => __( 'Interest', 'mortgage_platform' ),
					'description' => __( 'Interest', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'total_interest',
				'title'    => __( 'Total Interest', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'total_interest',
					'placeholder' => '',
					'default'     => __( 'Total Interest', 'mortgage_platform' ),
					'description' => __( 'Total Interest', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'principal',
				'title'    => __( 'Principal', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'principal',
					'placeholder' => '',
					'default'     => __( 'Principal', 'mortgage_platform' ),
					'description' => __( 'Principal', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'balance',
				'title'    => __( 'Balance', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'balance',
					'placeholder' => '',
					'default'     => __( 'Balance', 'mortgage_platform' ),
					'description' => __( 'Balance', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'loan_text',
				'title'    => __( 'Loan Details', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'loan_text',
					'placeholder' => '',
					'default'     => __( 'Loan Details', 'mortgage_platform' ),
					'description' => __( 'Loan Details', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'schedule_text',
				'title'    => __( 'Amortization Schedule (P & I)', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'schedule_text',
					'placeholder' => '',
					'default'     => __( 'Amortization Schedule (P & I)', 'mortgage_platform' ),
					'description' => __( 'Amortization Schedule (P & I)', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'original',
				'title'    => __( 'Original Loan Amount', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'original',
					'placeholder' => '',
					'default'     => __( 'Original Loan Amount', 'mortgage_platform' ),
					'description' => __( 'Original Loan Amount', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'loan_after_down',
				'title'    => __( 'Loan After Down Payment', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'loan_after_down',
					'placeholder' => '',
					'default'     => __( 'Loan After Down Payment', 'mortgage_platform' ),
					'description' => __( 'Loan After Down Payment', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'down_payment_amount',
				'title'    => __( 'Down Payment Amount', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'down_payment_amount',
					'placeholder' => '',
					'default'     => __( 'Down Payment Amount', 'mortgage_platform' ),
					'description' => __( 'Down Payment Amount', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'monthly_payment',
				'title'    => __( 'Monthly Payment (P & I)', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'monthly_payment',
					'placeholder' => '',
					'default'     => __( 'Monthly Payment (P & I)', 'mortgage_platform' ),
					'description' => __( 'Monthly Payment (P & I)', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'total_payments',
				'title'    => __( 'Total Payments', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'total_payments',
					'placeholder' => '',
					'default'     => __( 'Total Payments', 'mortgage_platform' ),
					'description' => __( 'Total Payments', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'notice',
				'title'    => __( 'Notice', 'mortgage_platform' ),
				'callback' => array( $this, 'textarea' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'notice',
					'placeholder' => __( 'Notice', 'mortgage_platform' ),
					'default'     => __( 'Calculations by this calculator are estimates only. There is no warranty for the accuracy of the results or the relationship to your financial situation.', 'mortgage_platform' ),
					'description' => __( 'Notice text', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'allow_ads',
				'title'    => __( 'Enable Ads', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'allow_ads',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Ads', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'calculator_url',
				'title'    => __( 'Page URL with mortgage calculator', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'mortgage_calculator',
					'label_for'   => 'calculator_url',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Page URL with mortgage calculator.', 'mortgage_platform' ),
				),
			),

		);

		return $fields;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.