MP_StyleSettings::set_fields_style()

Fields of Tab “Style”.


Return Return

(array) Style settings fields

  • 'type_style'
    (array) Type Style
  • 'primary_color'
    (array) Primary Color
  • 'fonts'
    (array) Fonts
  • 'type_inputs'
    (array) Type inputs
  • 'rounded_elements'
    (array) Rounded Buttons
  • 'slider_for_input'
    (array) Enable Slider for Input
  • 'type_slyder'
    (array) Type Slider for input
  • 'first_input'
    (array) Enable Focus First Input
  • 'bitly'
    (array) Enable Bit.ly API
  • 'bitly_API'
    (array) Bit.ly API key
  • 'bitly_user'
    (array) Bit.ly user name
  • 'social_share'
    (array) Enable Social Share Icons
  • 'social_bitly'
    (array) Use Bit.ly to short URL with calculator
  • 'social_title'
    (array) Social Share Title
  • 'social_description'
    (array) Social Share Description
  • 'social_image'
    (array) Social Share Image
  • 'social_icon_facebook'
    (array) Enable Social Facebook Icon
  • 'social_icon_twitter'
    (array) Enable Social Twitter Icon
  • 'social_icon_pinterest'
    (array) Enable Social Pinterest Icon
  • 'social_icon_linkedin'
    (array) Enable Social Linkedin Icon
  • 'social_icon_reddit'
    (array) Enable Social Reddit Icon
  • 'social_icon_email'
    (array) Enable Share Email
  • 'social_icon_email_text'
    (array) Enable Share Email Text
  • 'custom_css'
    (array) Custom CSS Code
  • 'custom_js'
    (array) Custom JS Code


Top ↑

Source Source

File: mortgage-platform/Inc/Base/Settings/MP_StyleSettings.php

	public function set_fields_style() {
		$fields_style = array(
			array(
				'id'       => 'type_style',
				'title'    => __( 'Type Style', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'type_style',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Choose type style of calculator', 'mortgage_platform' ),
					'options'     => array(
						'lighttheme' => __( 'Light Theme', 'mortgage_platform' ),
						'darktheme'  => __( 'Dark Theme', 'mortgage_platform' ),
						'fullpage'   => __( 'Full Page Theme', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'primary_color',
				'title'    => __( 'Primary Color', 'mortgage_platform' ),
				'callback' => array( $this, 'color' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'primary_color',
					'placeholder' => __( 'Primary Color', 'mortgage_platform' ),
					'default'     => '',
					'description' => __( 'This sets the primary color for the Calculator', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'fonts',
				'title'    => __( 'Fonts', 'mortgage_platform' ),
				'callback' => array( $this, 'fonts' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'fonts',
					'placeholder' => '',
					'default'     => __( 'default', 'mortgage_platform' ),
					'description' => __( 'Choose the font to use.  Helvetica is going to be the smallest but does not support many RTL languages.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'type_inputs',
				'title'    => __( 'Type inputs', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'type_inputs',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Type inputs', 'mortgage_platform' ),
					'options'     => array(
						'bottom_line'   => __( 'Bottom line', 'mortgage_platform' ),
						'squared_input' => __( 'Squared', 'mortgage_platform' ),
						'rounded_input' => __( 'Rounded', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'rounded_elements',
				'title'    => __( 'Rounded Buttons', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'rounded_elements',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'slider_for_input',
				'title'    => __( 'Enable Slider for Input', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'slider_for_input',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'type_slyder',
				'title'    => __( 'Type Slider for input', 'mortgage_platform' ),
				'callback' => array( $this, 'select' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'type_slyder',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Choose type slider for input', 'mortgage_platform' ),
					'options'     => array(
						'round'    => __( 'Round', 'mortgage_platform' ),
						'oval'     => __( 'Oval', 'mortgage_platform' ),
						'triangle' => __( 'Triangle', 'mortgage_platform' ),
					),
				),
			),
			array(
				'id'       => 'first_input',
				'title'    => __( 'Enable Focus First Input', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'first_input',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'bitly',
				'title'    => __( 'Enable Bit.ly API', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'bitly',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Enable Bit.ly API to use short URL', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'bitly_API',
				'title'    => __( 'Bit.ly API key', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'bitly_API',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Bit.ly API key', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'bitly_user',
				'title'    => __( 'Bit.ly user name', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'bitly_user',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Bit.ly user name', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'social_share',
				'title'    => __( 'Enable Social Share Icons', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_share',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_bitly',
				'title'    => __( 'Use Bit.ly to short URL with calculator', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_bitly',
					'placeholder' => '',
					'default'     => '',
					'description' => __( ' To create short links you can use the service <a href="bit.ly">bit.ly</a>.', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'social_title',
				'title'    => __( 'Social Share Title', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_title',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Social Share Title', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'social_description',
				'title'    => __( 'Social Share Description', 'mortgage_platform' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_description',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Social Share Description', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'social_image',
				'title'    => __( ' Social Share Image', 'mortgage_platform' ),
				'callback' => array( $this, 'upload' ),
				'args'     => array(
					'option_name'   => MortgagePlatform::$prefix . 'style',
					'label_for'     => 'social_image',
					'attachment_id' => 'social_image_id',
					'placeholder'   => '',
					'default'       => '',
					'description'   => '',
				),
			),
			array(
				'id'       => 'social_icon_facebook',
				'title'    => __( 'Enable Social Facebook Icon', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_facebook',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_twitter',
				'title'    => __( 'Enable Social Twitter Icon', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_twitter',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_pinterest',
				'title'    => __( 'Enable Social Pinterest Icon', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_pinterest',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_linkedin',
				'title'    => __( 'Enable Social Linkedin Icon', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_linkedin',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_reddit',
				'title'    => __( 'Enable Social Reddit Icon', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_reddit',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_email',
				'title'    => __( 'Enable Share Email', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_email',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'social_icon_email_text',
				'title'    => __( 'Enable Share Email Text', 'mortgage_platform' ),
				'callback' => array( $this, 'textarea' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'social_icon_email_text',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'custom_css',
				'title'    => __( 'Custom CSS Code', 'mortgage_platform' ),
				'callback' => array( $this, 'textarea' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'custom_css',
					'placeholder' => __( 'Custom CSS', 'mortgage_platform' ),
					'default'     => '',
					'description' => __( 'Add your own custom css to further control styling of the calculator', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'custom_js',
				'title'    => __( 'Custom JS Code', 'mortgage_platform' ),
				'callback' => array( $this, 'textarea' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'style',
					'label_for'   => 'custom_js',
					'placeholder' => __( 'Custom JS', 'mortgage_platform' ),
					'default'     => '',
					'description' => __( 'Add your own custom JS here', 'mortgage_platform' ),
				),
			),
		);

		return $fields_style;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.