MP_Addon_Calls_Settings::call_widget_settings()

Call widget settings.


Return Return

(array) Widget settings.

  • ''call_phone''
    (array) Enable call on phone widget
  • ''call_phone_number''
    (array) Phone number
  • ''call_browser''
    (array) Enable call in browser widget
  • ''incoming_call''
    (array) Receive an incoming call to the admin number
  • ''call_widget_tooltip''
    (array) Call tooltip


Top ↑

Source Source

File: calculator-calls-add-on/inc/MP_Addon_Calls_Settings.php

	public function call_widget_settings() {

		$this->widget_settings = array(
			array(
				'id'       => 'call_phone',
				'title'    => __( 'Enable call on phone widget', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'call_phone',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Enable call on phone widget', 'CalculatorsCallsAddon' ),
				),
			),
			array(
				'id'       => 'call_phone_number',
				'title'    => __( 'Phone number ', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'call_phone_number',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Phone number of the call on phone widget', 'CalculatorsCallsAddon' ),
				),
			),
			array(
				'id'       => 'call_browser',
				'title'    => __( 'Enable call in browser widget', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'call_browser',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Enable call in browser widget via Twilio', 'CalculatorsCallsAddon' ),
				),
			),
			array(
				'id'       => 'incoming_call',
				'title'    => __( 'Receive an incoming call to the admin number', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'incoming_call',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Disabled: Receive an incoming call to the browser. Enabled: Receive an incoming call to the administrator number.', 'CalculatorsCallsAddon' ),
				),
			),
			array(
				'id'       => 'call_widget_tooltip',
				'title'    => __( 'Call tooltip', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'call_widget_tooltip',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Call tooltip', 'CalculatorsCallsAddon' ),
				),
			),

		);

		return $this->widget_settings;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.