public function __construct() { parent::__construct(); $this->name = _x('Website (HTML5 field)', 'xprofile field type', 'bxcft'); $this->set_format('_^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?$_iuS', 'replace'); do_action('bp_xprofile_field_type_web', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Image', 'xprofile field type', 'bxcft'); $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_image', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Datepicker (HTML5 field)', 'xprofile field type', 'bxcft'); $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2}$/', 'replace'); // "Y-m-d 00:00:00" do_action('bp_xprofile_field_type_datepicker', $this); }
public function __construct() { parent::__construct(); #$this->name = _x( 'Address (HTML5 field)', 'xprofile field type', 'bxcft' ); $this->name = 'Address (korea)'; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_address', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Custom Taxonomy Selector', 'xprofile field type', 'bxcft'); $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_select_custom_taxonomy', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Email (HTML5 field)', 'xprofile field type', 'bxcft'); $this->set_format('/^[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\\.[a-zA-Z]{2,4}$/', 'replace'); // "*****@*****.**" do_action('bp_xprofile_field_type_email', $this); }
public function __construct() { parent::__construct(); #$this->name = _x( 'District_Korea (HTML5 field)', 'xprofile field type', 'bxcft' ); $this->name = 'District_Korea'; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_district_korea', $this); }
public function __construct() { parent::__construct(); #$this->name = _x( 'Hierarchy (HTML5 field)', 'xprofile field type', 'bxcft' ); $this->name = 'Hierarchy'; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_hierarchy', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Birthdate Selector', 'xprofile field type', 'bxcft'); $this->supports_options = true; $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2} 00:00:00$/', 'replace'); // "Y-m-d 00:00:00" do_action('bp_xprofile_field_type_birthdate', $this); }
public function __construct() { parent::__construct(); $this->name = __('Decimal number (HTML5 field)', 'bxcft'); $this->accepts_null_value = true; $this->supports_options = true; $this->set_format('/^\\d+\\.?\\d*$/', 'replace'); do_action('bp_xprofile_field_type_decimal_number', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Checkbox Acceptance', 'xprofile field type', 'bxcft'); $this->accepts_null_value = true; $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_checkbox_acceptance', $this); }
public function __construct() { parent::__construct(); $this->name = _x('Custom Post Type Multiselector', 'xprofile field type', 'bxcft'); $this->supports_multiple_defaults = true; $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); do_action('bp_xprofile_field_type_multiselect_custom_post_type', $this); }
public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'bp-xprofile-member-type-field'); $this->name = _x('Single Member Type', 'xprofile field type', 'bp-xprofile-member-type-field'); $this->set_format('', 'replace'); $this->supports_multiple_defaults = false; $this->accepts_null_value = true; $this->supports_options = false; do_action('bd_xprofile_field_type_membertype', $this); }
/** * Constructor for the textarea field type * * @since BuddyPress (2.0.0) */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Multi-line Text Area', 'xprofile field type', 'buddypress'); $this->set_format('/^.*$/m', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Textarea class. * * @since BuddyPress (2.0.0) * * @param BP_XProfile_Field_Type_Textarea $this Current instance of * the field type textarea. */ do_action('bp_xprofile_field_type_textarea', $this); }
/** * Constructor for the textbox field type. * * @since 2.0.0 */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Text Box', 'xprofile field type', 'buddypress'); $this->set_format('/^.*$/', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Textbox class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_Textbox $this Current instance of * the field type text box. */ do_action('bp_xprofile_field_type_textbox', $this); }
/** * Constructor for the URL field type * * @since 2.1.0 */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('URL', 'xprofile field type', 'buddypress'); $this->set_format('_^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?$_iuS', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_URL class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_URL $this Current instance of * the field type URL. */ do_action('bp_xprofile_field_type_url', $this); }
/** * Constructor for the number field type * * @since BuddyPress (2.0.0) */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Number', 'xprofile field type', 'buddypress'); $this->set_format('/^\\d+|-\\d+$/', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Number class. * * @since BuddyPress (2.0.0) * * @param BP_XProfile_Field_Type_Number $this Current instance of * the field type number. */ do_action('bp_xprofile_field_type_number', $this); }
/** * Constructor for the datebox field type. * * @since 2.0.0 */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Date Selector', 'xprofile field type', 'buddypress'); $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2} 00:00:00$/', 'replace'); // "Y-m-d 00:00:00" /** * Fires inside __construct() method for BP_XProfile_Field_Type_Datebox class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_Datebox $this Current instance of * the field type datebox. */ do_action('bp_xprofile_field_type_datebox', $this); }
/** * Constructor for the radio button field type * * @since 2.0.0 */ public function __construct() { parent::__construct(); $this->category = _x('Multi Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Radio Buttons', 'xprofile field type', 'buddypress'); $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Radiobutton class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_Radiobutton $this Current instance of * the field type radio button. */ do_action('bp_xprofile_field_type_radiobutton', $this); }
/** * Constructor for the selectbox field type * * @since BuddyPress (2.0.0) */ public function __construct() { parent::__construct(); $this->category = _x('Multi Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Drop Down Select Box', 'xprofile field type', 'buddypress'); $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Selectbox class. * * @since BuddyPress (2.0.0) * * @param BP_XProfile_Field_Type_Selectbox $this Current instance of * the field type select box. */ do_action('bp_xprofile_field_type_selectbox', $this); }
/** * Constructor for the multi-selectbox field type. * * @since 2.0.0 */ public function __construct() { parent::__construct(); $this->category = _x('Multi Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Multi Select Box', 'xprofile field type', 'buddypress'); $this->supports_multiple_defaults = true; $this->accepts_null_value = true; $this->supports_options = true; $this->set_format('/^.+$/', 'replace'); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Multiselectbox class. * * @since 2.0.0 * * @param BP_XProfile_Field_Type_Multiselectbox $this Current instance of * the field type multiple select box. */ do_action('bp_xprofile_field_type_multiselectbox', $this); }
/** * Constructor for the number field type * * @since BuddyPress (2.0.0) */ public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress'); $this->name = _x('Number', 'xprofile field type', 'buddypress'); $this->set_format('/^\\d+|-\\d+$/', 'replace'); do_action('bp_xprofile_field_type_number', $this); }
/** * Constructor for the placeholder field type. * * @since 2.0.1 */ public function __construct() { parent::__construct(); $this->set_format('/.*/', 'replace'); }