PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / models / fields / FrmFieldPhone.php

FrmFieldPhone.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 3.06.06, at classes/models/fields/FrmFieldPhone.php

35 lines 591 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @since 3.0
5 */
6 class FrmFieldPhone extends FrmFieldType {
7
8 /**
9 * @var string
10 * @since 3.0
11 */
12 protected $type = 'phone';
13 protected $display_type = 'text';
14
15 /**
16 * @var bool
17 * @since 3.0
18 */
19 protected $holds_email_values = true;
20
21 protected function field_settings_for_type() {
22 return array(
23 'size' => true,
24 'clear_on_focus' => true,
25 'invalid' => true,
26 'format' => true,
27 );
28 }
29
30 protected function html5_input_type() {
31 $frm_settings = FrmAppHelper::get_settings();
32 return $frm_settings->use_html ? 'tel' : 'text';
33 }
34 }
35