| Server IP : 162.214.67.83 / Your IP : 216.73.217.9 Web Server : Apache System : Linux dedi-13542965.clustter.com.br 5.14.0-687.20.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 30 06:22:49 EDT 2026 x86_64 User : pjacortinas ( 1096) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/pjacortinas/www/wp-content/plugins/formlayer-pro/main/ |
Upload File : |
<?php
/*
* FormLayer Pro
* https://formlayer.net
* (c) FormLayer Team
*/
namespace FormLayerPro;
if(!defined('ABSPATH')){
exit;
}
class Fields{
static function add_categories($categories){
$categories[] = ['id' => 'pro', 'label' => __('Premium Fields', 'formlayer-pro'), 'open' => false];
return $categories;
}
static function add_field_types($field_types){
$pro_fields = [
['type' => 'address', 'label' => 'Address Fields', 'icon' => 'dashicons-location', 'category' => 'pro'],
['type' => 'date', 'label' => 'Date / Time Picker', 'icon' => 'dashicons-calendar-alt', 'category' => 'pro'],
['type' => 'url', 'label' => 'Website / URL', 'icon' => 'dashicons-admin-site', 'category' => 'pro'],
['type' => 'password', 'label' => 'Password', 'icon' => 'dashicons-lock', 'category' => 'pro'],
['type' => 'hidden', 'label' => 'Hidden Field', 'icon' => 'dashicons-visibility-faint', 'category' => 'pro'],
['type' => 'image', 'label' => 'Image Upload', 'icon' => 'dashicons-format-image', 'category' => 'pro'],
['type' => 'file', 'label' => 'File Upload', 'icon' => 'dashicons-upload', 'category' => 'pro'],
['type' => 'phone', 'label' => 'Phone Number', 'icon' => 'dashicons-phone', 'category' => 'pro'],
['type' => 'camera', 'label' => 'Camera Field', 'icon' => 'dashicons-camera', 'category' => 'pro'],
['type' => 'richtext', 'label' => 'Rich Text Editor', 'icon' => 'dashicons-editor-paragraph', 'category' => 'pro'],
];
return array_merge($field_types, $pro_fields);
}
}