Skip to content

Commit

Permalink
Fixed not shown phone field in Admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahype committed May 22, 2019
1 parent f25992d commit 46ee16c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function __construct( $prefix, $services ) {
$this->setup_hooks();

Field_Manager::register_field_type( 'torrochoices', Choices_Field::class );
Field_Manager::register_field_type( 'tel', Tel_Field::class );

$this->default_element_types = array(
'textfield' => Base\Textfield::class,
Expand Down
23 changes: 23 additions & 0 deletions src/src/db-objects/elements/element-types/tel-field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Tel field class
*
* @package Leaves_And_Love\Plugin_Lib
* @since 1.0.0
*/

namespace awsmug\Torro_Forms\DB_Objects\Elements\Element_Types;

use Leaves_And_Love\Plugin_Lib\Fields\Text;

if ( ! class_exists( 'Leaves_And_Love\Plugin_Lib\Fieldsawsmug\Torro_Forms\DB_Objects\Elements\Element_Types\Tel_Field' ) ) :

/**
* Class for a text field.
*
* @since 1.0.0
*/
class Tel_Field extends Text {
}

endif;

0 comments on commit 46ee16c

Please sign in to comment.