Version Description
- Changed the wppb_curpageurl function to fix the missing www problem from links
- Added a new filter wppb_send_to_admin_email to Email Confirmation
Download this release
Release Info
| Developer | madalin.ungureanu |
| Plugin | |
| Version | 2.3.7 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3.6 to 2.3.7
- admin/manage-fields.php +331 -0
- assets/css/style-front-end.css +15 -0
- assets/js/jquery-manage-fields-live-change.js +45 -0
- features/email-confirmation/email-confirmation.php +4 -2
- features/functions.php +9 -5
- index.php +2 -2
- readme.txt +6 -2
admin/manage-fields.php
CHANGED
|
@@ -54,13 +54,17 @@ function wppb_manage_fields_submenu(){
|
|
| 54 |
$manage_field_types[] = 'Select (Country)';
|
| 55 |
$manage_field_types[] = 'Select (Timezone)';
|
| 56 |
$manage_field_types[] = 'Select (User Role)';
|
|
|
|
| 57 |
$manage_field_types[] = 'Checkbox';
|
| 58 |
$manage_field_types[] = 'Checkbox (Terms and Conditions)';
|
| 59 |
$manage_field_types[] = 'Radio';
|
| 60 |
$manage_field_types[] = 'Upload';
|
| 61 |
$manage_field_types[] = 'Avatar';
|
| 62 |
$manage_field_types[] = 'Datepicker';
|
|
|
|
|
|
|
| 63 |
$manage_field_types[] = 'reCAPTCHA';
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
|
|
@@ -87,6 +91,13 @@ function wppb_manage_fields_submenu(){
|
|
| 87 |
$default_country_options[] = $country_name;
|
| 88 |
}
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
// set up the fields array
|
| 92 |
$fields = apply_filters( 'wppb_manage_fields', array(
|
|
@@ -115,6 +126,11 @@ function wppb_manage_fields_submenu(){
|
|
| 115 |
array( 'type' => 'text', 'slug' => 'default-options', 'title' => __( 'Default Option(s)', 'profile-builder' ), 'description' => __( "Specify the option which should be checked by default<br/>If there are multiple values, separate them with a ',' (comma)", 'profile-builder' ) ),
|
| 116 |
array( 'type' => 'select', 'slug' => 'default-option-country', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_country_values ) ) ? $default_country_values : '', 'options' => ( isset( $default_country_options ) ) ? $default_country_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
|
| 117 |
array( 'type' => 'select', 'slug' => 'default-option-timezone', 'title' => __( 'Default Option', 'profile-builder' ), 'options' => wppb_timezone_select_options( 'back_end' ), 'description' => __( "Default option of the field", 'profile-builder' ) ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
array( 'type' => 'textarea', 'slug' => 'default-content', 'title' => __( 'Default Content', 'profile-builder' ), 'description' => __( "Default value of the textarea", 'profile-builder' ) ),
|
| 119 |
array( 'type' => 'select', 'slug' => 'required', 'title' => __( 'Required', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the field is required or not', 'profile-builder' ) ),
|
| 120 |
array( 'type' => 'select', 'slug' => 'overwrite-existing', 'title' => __( 'Overwrite Existing', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( "Selecting 'Yes' will add the field to the list, but will overwrite any other field in the database that has the same meta-name<br/>Use this at your own risk", 'profile-builder' ) ),
|
|
@@ -505,6 +521,321 @@ function wppb_timezone_select_options( $form_location ) {
|
|
| 505 |
}
|
| 506 |
|
| 507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
/**
|
| 509 |
* Function that returns a unique, incremented ID
|
| 510 |
*
|
| 54 |
$manage_field_types[] = 'Select (Country)';
|
| 55 |
$manage_field_types[] = 'Select (Timezone)';
|
| 56 |
$manage_field_types[] = 'Select (User Role)';
|
| 57 |
+
$manage_field_types[] = 'Select (Currency)';
|
| 58 |
$manage_field_types[] = 'Checkbox';
|
| 59 |
$manage_field_types[] = 'Checkbox (Terms and Conditions)';
|
| 60 |
$manage_field_types[] = 'Radio';
|
| 61 |
$manage_field_types[] = 'Upload';
|
| 62 |
$manage_field_types[] = 'Avatar';
|
| 63 |
$manage_field_types[] = 'Datepicker';
|
| 64 |
+
$manage_field_types[] = 'Timepicker';
|
| 65 |
+
$manage_field_types[] = 'Colorpicker';
|
| 66 |
$manage_field_types[] = 'reCAPTCHA';
|
| 67 |
+
$manage_field_types[] = 'Validation';
|
| 68 |
}
|
| 69 |
|
| 70 |
|
| 91 |
$default_country_options[] = $country_name;
|
| 92 |
}
|
| 93 |
|
| 94 |
+
// currency select
|
| 95 |
+
$default_currency_array = wppb_get_currencies( 'back_end' );
|
| 96 |
+
array_unshift( $default_currency_array, '' );
|
| 97 |
+
foreach( $default_currency_array as $iso_currency_code => $currency_name ) {
|
| 98 |
+
$default_currency_values[] = $iso_currency_code;
|
| 99 |
+
$default_currency_options[] = $currency_name;
|
| 100 |
+
}
|
| 101 |
|
| 102 |
// set up the fields array
|
| 103 |
$fields = apply_filters( 'wppb_manage_fields', array(
|
| 126 |
array( 'type' => 'text', 'slug' => 'default-options', 'title' => __( 'Default Option(s)', 'profile-builder' ), 'description' => __( "Specify the option which should be checked by default<br/>If there are multiple values, separate them with a ',' (comma)", 'profile-builder' ) ),
|
| 127 |
array( 'type' => 'select', 'slug' => 'default-option-country', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_country_values ) ) ? $default_country_values : '', 'options' => ( isset( $default_country_options ) ) ? $default_country_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
|
| 128 |
array( 'type' => 'select', 'slug' => 'default-option-timezone', 'title' => __( 'Default Option', 'profile-builder' ), 'options' => wppb_timezone_select_options( 'back_end' ), 'description' => __( "Default option of the field", 'profile-builder' ) ),
|
| 129 |
+
array( 'type' => 'select', 'slug' => 'default-option-currency', 'title' => __( 'Default Option', 'profile-builder' ), 'values' => ( isset( $default_currency_values ) ) ? $default_currency_values : '', 'options' => ( isset( $default_currency_options ) ) ? $default_currency_options : '', 'description' => __( "Default option of the field", 'profile-builder' ) ),
|
| 130 |
+
array( 'type' => 'select', 'slug' => 'show-currency-symbol', 'title' => __( 'Show Currency Symbol', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the currency symbol should be displayed after the currency name in the select option.', 'profile-builder' ) ),
|
| 131 |
+
array( 'type' => 'text', 'slug' => 'validation-possible-values', 'title' => __( 'Allowable Values', 'profile-builder' ), 'description' => __( "Enter a comma separated list of possible values. Upon registration if the value provided by the user does not match one of these values, the user will not be registered.", 'profile-builder' ) ),
|
| 132 |
+
array( 'type' => 'text', 'slug' => 'custom-error-message', 'title' => __( 'Error Message', 'profile-builder' ), 'description' => __( "Set a custom error message that will be displayed to the user.", 'profile-builder' ) ),
|
| 133 |
+
array( 'type' => 'select', 'slug' => 'time-format', 'title' => __( 'Time Format', 'profile-builder' ), 'options' => array( '%12 Hours%12', '%24 Hours%24' ), 'description' => __( 'Specify the time format.', 'profile-builder' ) ),
|
| 134 |
array( 'type' => 'textarea', 'slug' => 'default-content', 'title' => __( 'Default Content', 'profile-builder' ), 'description' => __( "Default value of the textarea", 'profile-builder' ) ),
|
| 135 |
array( 'type' => 'select', 'slug' => 'required', 'title' => __( 'Required', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( 'Whether the field is required or not', 'profile-builder' ) ),
|
| 136 |
array( 'type' => 'select', 'slug' => 'overwrite-existing', 'title' => __( 'Overwrite Existing', 'profile-builder' ), 'options' => array( 'No', 'Yes' ), 'default' => 'No', 'description' => __( "Selecting 'Yes' will add the field to the list, but will overwrite any other field in the database that has the same meta-name<br/>Use this at your own risk", 'profile-builder' ) ),
|
| 521 |
}
|
| 522 |
|
| 523 |
|
| 524 |
+
/*
|
| 525 |
+
* Array with the currency ISO code and associated currency name
|
| 526 |
+
*
|
| 527 |
+
* @param string $form_location
|
| 528 |
+
*
|
| 529 |
+
* @return array
|
| 530 |
+
*
|
| 531 |
+
*/
|
| 532 |
+
function wppb_get_currencies( $form_location = '' ) {
|
| 533 |
+
|
| 534 |
+
$currencies = array(
|
| 535 |
+
'ALL' => __( 'Albania Lek', 'profile-builder' ),
|
| 536 |
+
'AFN' => __( 'Afghanistan Afghani', 'profile-builder' ),
|
| 537 |
+
'ARS' => __( 'Argentina Peso', 'profile-builder' ),
|
| 538 |
+
'AWG' => __( 'Aruba Guilder', 'wkc' ),
|
| 539 |
+
'AUD' => __( 'Australia Dollar', 'profile-builder' ),
|
| 540 |
+
'AZN' => __( 'Azerbaijan New Manat', 'profile-builder' ),
|
| 541 |
+
'BSD' => __( 'Bahamas Dollar', 'profile-builder' ),
|
| 542 |
+
'BBD' => __( 'Barbados Dollar','profile-builder' ),
|
| 543 |
+
'BDT' => __( 'Bangladeshi taka','profile-builder' ),
|
| 544 |
+
'BYR' => __( 'Belarus Ruble','profile-builder' ),
|
| 545 |
+
'BZD' => __( 'Belize Dollar','profile-builder' ),
|
| 546 |
+
'BMD' => __( 'Bermuda Dollar','profile-builder' ),
|
| 547 |
+
'BOB' => __( 'Bolivia Boliviano','profile-builder' ),
|
| 548 |
+
'BAM' => __( 'Bosnia and Herzegovina Convertible Marka','profile-builder' ),
|
| 549 |
+
'BWP' => __( 'Botswana Pula','profile-builder' ),
|
| 550 |
+
'BGN' => __( 'Bulgaria Lev','profile-builder' ),
|
| 551 |
+
'BRL' => __( 'Brazil Real','profile-builder' ),
|
| 552 |
+
'BND' => __( 'Brunei Darussalam Dollar','profile-builder' ),
|
| 553 |
+
'KHR' => __( 'Cambodia Riel','profile-builder' ),
|
| 554 |
+
'CAD' => __( 'Canada Dollar','profile-builder' ),
|
| 555 |
+
'KYD' => __( 'Cayman Islands Dollar','profile-builder' ),
|
| 556 |
+
'CLP' => __( 'Chile Peso','profile-builder' ),
|
| 557 |
+
'CNY' => __( 'China Yuan Renminbi','profile-builder' ),
|
| 558 |
+
'COP' => __( 'Colombia Peso','profile-builder' ),
|
| 559 |
+
'CRC' => __( 'Costa Rica Colon','profile-builder' ),
|
| 560 |
+
'HRK' => __( 'Croatia Kuna','profile-builder' ),
|
| 561 |
+
'CUP' => __( 'Cuba Peso','profile-builder' ),
|
| 562 |
+
'CZK' => __( 'Czech Republic Koruna','profile-builder' ),
|
| 563 |
+
'DKK' => __( 'Denmark Krone','profile-builder' ),
|
| 564 |
+
'DOP' => __( 'Dominican Republic Peso','profile-builder' ),
|
| 565 |
+
'XCD' => __( 'East Caribbean Dollar','profile-builder' ),
|
| 566 |
+
'EGP' => __( 'Egypt Pound','profile-builder' ),
|
| 567 |
+
'SVC' => __( 'El Salvador Colon','profile-builder' ),
|
| 568 |
+
'EEK' => __( 'Estonia Kroon','profile-builder' ),
|
| 569 |
+
'EUR' => __( 'Euro','profile-builder' ),
|
| 570 |
+
'FKP' => __( 'Falkland Islands (Malvinas) Pound','profile-builder' ),
|
| 571 |
+
'FJD' => __( 'Fiji Dollar','profile-builder' ),
|
| 572 |
+
'GHC' => __( 'Ghana Cedis','profile-builder' ),
|
| 573 |
+
'GIP' => __( 'Gibraltar Pound','profile-builder' ),
|
| 574 |
+
'GTQ' => __( 'Guatemala Quetzal','profile-builder' ),
|
| 575 |
+
'GGP' => __( 'Guernsey Pound','profile-builder' ),
|
| 576 |
+
'GYD' => __( 'Guyana Dollar','profile-builder' ),
|
| 577 |
+
'HNL' => __( 'Honduras Lempira','profile-builder' ),
|
| 578 |
+
'HKD' => __( 'Hong Kong Dollar','profile-builder' ),
|
| 579 |
+
'HUF' => __( 'Hungary Forint','profile-builder' ),
|
| 580 |
+
'ISK' => __( 'Iceland Krona','profile-builder' ),
|
| 581 |
+
'INR' => __( 'India Rupee','profile-builder' ),
|
| 582 |
+
'IDR' => __( 'Indonesia Rupiah','profile-builder' ),
|
| 583 |
+
'IRR' => __( 'Iran Rial','profile-builder' ),
|
| 584 |
+
'IMP' => __( 'Isle of Man Pound','profile-builder' ),
|
| 585 |
+
'ILS' => __( 'Israel Shekel','profile-builder' ),
|
| 586 |
+
'JMD' => __( 'Jamaica Dollar','profile-builder' ),
|
| 587 |
+
'JPY' => __( 'Japan Yen','profile-builder' ),
|
| 588 |
+
'JEP' => __( 'Jersey Pound','profile-builder' ),
|
| 589 |
+
'KZT' => __( 'Kazakhstan Tenge','profile-builder' ),
|
| 590 |
+
'KPW' => __( 'Korea (North) Won','profile-builder' ),
|
| 591 |
+
'KRW' => __( 'Korea (South) Won','profile-builder' ),
|
| 592 |
+
'KGS' => __( 'Kyrgyzstan Som','profile-builder' ),
|
| 593 |
+
'LAK' => __( 'Laos Kip','profile-builder' ),
|
| 594 |
+
'LVL' => __( 'Latvia Lat','profile-builder' ),
|
| 595 |
+
'LBP' => __( 'Lebanon Pound','profile-builder' ),
|
| 596 |
+
'LRD' => __( 'Liberia Dollar','profile-builder' ),
|
| 597 |
+
'LTL' => __( 'Lithuania Litas','profile-builder' ),
|
| 598 |
+
'MKD' => __( 'Macedonia Denar','profile-builder' ),
|
| 599 |
+
'MYR' => __( 'Malaysia Ringgit','profile-builder' ),
|
| 600 |
+
'MUR' => __( 'Mauritius Rupee','profile-builder' ),
|
| 601 |
+
'MXN' => __( 'Mexico Peso','profile-builder' ),
|
| 602 |
+
'MNT' => __( 'Mongolia Tughrik','profile-builder' ),
|
| 603 |
+
'MZN' => __( 'Mozambique Metical','profile-builder' ),
|
| 604 |
+
'NAD' => __( 'Namibia Dollar','profile-builder' ),
|
| 605 |
+
'NPR' => __( 'Nepal Rupee','profile-builder' ),
|
| 606 |
+
'ANG' => __( 'Netherlands Antilles Guilder','profile-builder' ),
|
| 607 |
+
'NZD' => __( 'New Zealand Dollar','profile-builder' ),
|
| 608 |
+
'NIO' => __( 'Nicaragua Cordoba','profile-builder' ),
|
| 609 |
+
'NGN' => __( 'Nigeria Naira','profile-builder' ),
|
| 610 |
+
'NOK' => __( 'Norway Krone','profile-builder' ),
|
| 611 |
+
'OMR' => __( 'Oman Rial', 'profile-builder' ),
|
| 612 |
+
'PKR' => __( 'Pakistan Rupee', 'profile-builder' ),
|
| 613 |
+
'PAB' => __( 'Panama Balboa', 'profile-builder' ),
|
| 614 |
+
'PYG' => __( 'Paraguay Guarani', 'profile-builder' ),
|
| 615 |
+
'PEN' => __( 'Peru Nuevo Sol', 'profile-builder' ),
|
| 616 |
+
'PHP' => __( 'Philippines Peso', 'profile-builder' ),
|
| 617 |
+
'PLN' => __( 'Poland Zloty', 'profile-builder' ),
|
| 618 |
+
'QAR' => __( 'Qatar Riyal', 'profile-builder' ),
|
| 619 |
+
'RON' => __( 'Romania New Leu', 'profile-builder' ),
|
| 620 |
+
'RUB' => __( 'Russia Ruble', 'profile-builder' ),
|
| 621 |
+
'SHP' => __( 'Saint Helena Pound', 'profile-builder' ),
|
| 622 |
+
'SAR' => __( 'Saudi Arabia Riyal', 'profile-builder' ),
|
| 623 |
+
'RSD' => __( 'Serbia Dinar', 'profile-builder' ),
|
| 624 |
+
'SCR' => __( 'Seychelles Rupee', 'profile-builder' ),
|
| 625 |
+
'SGD' => __( 'Singapore Dollar', 'profile-builder' ),
|
| 626 |
+
'SBD' => __( 'Solomon Islands Dollar', 'profile-builder' ),
|
| 627 |
+
'SOS' => __( 'Somalia Shilling', 'profile-builder' ),
|
| 628 |
+
'ZAR' => __( 'South Africa Rand', 'profile-builder' ),
|
| 629 |
+
'LKR' => __( 'Sri Lanka Rupee', 'profile-builder' ),
|
| 630 |
+
'SEK' => __( 'Sweden Krona', 'profile-builder' ),
|
| 631 |
+
'CHF' => __( 'Switzerland Franc', 'profile-builder' ),
|
| 632 |
+
'SRD' => __( 'Suriname Dollar', 'profile-builder' ),
|
| 633 |
+
'SYP' => __( 'Syria Pound', 'profile-builder' ),
|
| 634 |
+
'TWD' => __( 'Taiwan New Dollar', 'profile-builder' ),
|
| 635 |
+
'THB' => __( 'Thailand Baht', 'profile-builder' ),
|
| 636 |
+
'TTD' => __( 'Trinidad and Tobago Dollar', 'profile-builder' ),
|
| 637 |
+
'TRY' => __( 'Turkey Lira', 'profile-builder' ),
|
| 638 |
+
'TRL' => __( 'Turkey Lira', 'profile-builder' ),
|
| 639 |
+
'TVD' => __( 'Tuvalu Dollar', 'profile-builder' ),
|
| 640 |
+
'UAH' => __( 'Ukraine Hryvna', 'profile-builder' ),
|
| 641 |
+
'GBP' => __( 'United Kingdom Pound', 'profile-builder' ),
|
| 642 |
+
'UGX' => __( 'Uganda Shilling', 'profile-builder' ),
|
| 643 |
+
'USD' => __( 'US Dollar', 'profile-builder' ),
|
| 644 |
+
'UYU' => __( 'Uruguay Peso', 'profile-builder' ),
|
| 645 |
+
'UZS' => __( 'Uzbekistan Som', 'profile-builder' ),
|
| 646 |
+
'VEF' => __( 'Venezuela Bolivar', 'profile-builder' ),
|
| 647 |
+
'VND' => __( 'Viet Nam Dong', 'profile-builder' ),
|
| 648 |
+
'YER' => __( 'Yemen Rial', 'profile-builder' ),
|
| 649 |
+
'ZWD' => __( 'Zimbabwe Dollar', 'profile-builder' )
|
| 650 |
+
);
|
| 651 |
+
|
| 652 |
+
$filter_name = ( empty( $form_location ) ? 'wppb_get_currencies' : 'wppb_get_currencies_' . $form_location );
|
| 653 |
+
|
| 654 |
+
return apply_filters( $filter_name, $currencies );
|
| 655 |
+
|
| 656 |
+
}
|
| 657 |
+
|
| 658 |
+
|
| 659 |
+
/*
|
| 660 |
+
* Returns the currency symbol for a given currency code
|
| 661 |
+
*
|
| 662 |
+
* @param string $currency_code
|
| 663 |
+
*
|
| 664 |
+
* @return string
|
| 665 |
+
*
|
| 666 |
+
*/
|
| 667 |
+
function wppb_get_currency_symbol( $currency_code ) {
|
| 668 |
+
|
| 669 |
+
$currency_symbols = array(
|
| 670 |
+
'AED' => 'د.إ', // ?
|
| 671 |
+
'AFN' => 'Af',
|
| 672 |
+
'ALL' => 'Lek',
|
| 673 |
+
'AMD' => '',
|
| 674 |
+
'ANG' => 'ƒ',
|
| 675 |
+
'AOA' => 'Kz', // ?
|
| 676 |
+
'ARS' => '$',
|
| 677 |
+
'AUD' => '$',
|
| 678 |
+
'AWG' => 'ƒ',
|
| 679 |
+
'AZN' => 'ман',
|
| 680 |
+
'BAM' => 'KM',
|
| 681 |
+
'BBD' => '$',
|
| 682 |
+
'BDT' => '৳', // ?
|
| 683 |
+
'BGN' => 'лв',
|
| 684 |
+
'BHD' => '.د.ب', // ?
|
| 685 |
+
'BIF' => 'FBu', // ?
|
| 686 |
+
'BMD' => '$',
|
| 687 |
+
'BND' => '$',
|
| 688 |
+
'BOB' => '$b',
|
| 689 |
+
'BRL' => 'R$',
|
| 690 |
+
'BSD' => '$',
|
| 691 |
+
'BTN' => 'Nu.', // ?
|
| 692 |
+
'BWP' => 'P',
|
| 693 |
+
'BYR' => 'p.',
|
| 694 |
+
'BZD' => 'BZ$',
|
| 695 |
+
'CAD' => '$',
|
| 696 |
+
'CDF' => 'FC',
|
| 697 |
+
'CHF' => 'CHF',
|
| 698 |
+
'CLF' => '', // ?
|
| 699 |
+
'CLP' => '$',
|
| 700 |
+
'CNY' => '¥',
|
| 701 |
+
'COP' => '$',
|
| 702 |
+
'CRC' => '₡',
|
| 703 |
+
'CUP' => '⃌',
|
| 704 |
+
'CVE' => '$', // ?
|
| 705 |
+
'CZK' => 'Kč',
|
| 706 |
+
'DJF' => 'Fdj', // ?
|
| 707 |
+
'DKK' => 'kr',
|
| 708 |
+
'DOP' => 'RD$',
|
| 709 |
+
'DZD' => 'دج', // ?
|
| 710 |
+
'EGP' => '£',
|
| 711 |
+
'ETB' => 'Br',
|
| 712 |
+
'EUR' => '€',
|
| 713 |
+
'FJD' => '$',
|
| 714 |
+
'FKP' => '£',
|
| 715 |
+
'GBP' => '£',
|
| 716 |
+
'GEL' => 'ლ', // ?
|
| 717 |
+
'GHS' => '¢',
|
| 718 |
+
'GIP' => '£',
|
| 719 |
+
'GMD' => 'D', // ?
|
| 720 |
+
'GNF' => 'FG', // ?
|
| 721 |
+
'GTQ' => 'Q',
|
| 722 |
+
'GYD' => '$',
|
| 723 |
+
'HKD' => '$',
|
| 724 |
+
'HNL' => 'L',
|
| 725 |
+
'HRK' => 'kn',
|
| 726 |
+
'HTG' => 'G', // ?
|
| 727 |
+
'HUF' => 'Ft',
|
| 728 |
+
'IDR' => 'Rp',
|
| 729 |
+
'ILS' => '₪',
|
| 730 |
+
'INR' => '₹',
|
| 731 |
+
'IQD' => 'ع.د', // ?
|
| 732 |
+
'IRR' => '﷼',
|
| 733 |
+
'ISK' => 'kr',
|
| 734 |
+
'JEP' => '£',
|
| 735 |
+
'JMD' => 'J$',
|
| 736 |
+
'JOD' => 'JD', // ?
|
| 737 |
+
'JPY' => '¥',
|
| 738 |
+
'KES' => 'KSh', // ?
|
| 739 |
+
'KGS' => 'лв',
|
| 740 |
+
'KHR' => '៛',
|
| 741 |
+
'KMF' => 'CF', // ?
|
| 742 |
+
'KPW' => '₩',
|
| 743 |
+
'KRW' => '₩',
|
| 744 |
+
'KWD' => 'د.ك', // ?
|
| 745 |
+
'KYD' => '$',
|
| 746 |
+
'KZT' => 'лв',
|
| 747 |
+
'LAK' => '₭',
|
| 748 |
+
'LBP' => '£',
|
| 749 |
+
'LKR' => '₨',
|
| 750 |
+
'LRD' => '$',
|
| 751 |
+
'LSL' => 'L', // ?
|
| 752 |
+
'LTL' => 'Lt',
|
| 753 |
+
'LVL' => 'Ls',
|
| 754 |
+
'LYD' => 'ل.د', // ?
|
| 755 |
+
'MAD' => 'د.م.', //?
|
| 756 |
+
'MDL' => 'L',
|
| 757 |
+
'MGA' => 'Ar', // ?
|
| 758 |
+
'MKD' => 'ден',
|
| 759 |
+
'MMK' => 'K',
|
| 760 |
+
'MNT' => '₮',
|
| 761 |
+
'MOP' => 'MOP$', // ?
|
| 762 |
+
'MRO' => 'UM', // ?
|
| 763 |
+
'MUR' => '₨', // ?
|
| 764 |
+
'MVR' => '.ރ', // ?
|
| 765 |
+
'MWK' => 'MK',
|
| 766 |
+
'MXN' => '$',
|
| 767 |
+
'MYR' => 'RM',
|
| 768 |
+
'MZN' => 'MT',
|
| 769 |
+
'NAD' => '$',
|
| 770 |
+
'NGN' => '₦',
|
| 771 |
+
'NIO' => 'C$',
|
| 772 |
+
'NOK' => 'kr',
|
| 773 |
+
'NPR' => '₨',
|
| 774 |
+
'NZD' => '$',
|
| 775 |
+
'OMR' => '﷼',
|
| 776 |
+
'PAB' => 'B/.',
|
| 777 |
+
'PEN' => 'S/.',
|
| 778 |
+
'PGK' => 'K', // ?
|
| 779 |
+
'PHP' => '₱',
|
| 780 |
+
'PKR' => '₨',
|
| 781 |
+
'PLN' => 'zł',
|
| 782 |
+
'PYG' => 'Gs',
|
| 783 |
+
'QAR' => '﷼',
|
| 784 |
+
'RON' => 'lei',
|
| 785 |
+
'RSD' => 'Дин.',
|
| 786 |
+
'RUB' => 'руб',
|
| 787 |
+
'RWF' => 'ر.س',
|
| 788 |
+
'SAR' => '﷼',
|
| 789 |
+
'SBD' => '$',
|
| 790 |
+
'SCR' => '₨',
|
| 791 |
+
'SDG' => '£', // ?
|
| 792 |
+
'SEK' => 'kr',
|
| 793 |
+
'SGD' => '$',
|
| 794 |
+
'SHP' => '£',
|
| 795 |
+
'SLL' => 'Le', // ?
|
| 796 |
+
'SOS' => 'S',
|
| 797 |
+
'SRD' => '$',
|
| 798 |
+
'STD' => 'Db', // ?
|
| 799 |
+
'SVC' => '$',
|
| 800 |
+
'SYP' => '£',
|
| 801 |
+
'SZL' => 'L', // ?
|
| 802 |
+
'THB' => '฿',
|
| 803 |
+
'TJS' => 'TJS', // ? TJS (guess)
|
| 804 |
+
'TMT' => 'm',
|
| 805 |
+
'TND' => 'د.ت',
|
| 806 |
+
'TOP' => 'T$',
|
| 807 |
+
'TRY' => '₤', // New Turkey Lira (old symbol used)
|
| 808 |
+
'TTD' => '$',
|
| 809 |
+
'TWD' => 'NT$',
|
| 810 |
+
'TZS' => '',
|
| 811 |
+
'UAH' => '₴',
|
| 812 |
+
'UGX' => 'USh',
|
| 813 |
+
'USD' => '$',
|
| 814 |
+
'UYU' => '$U',
|
| 815 |
+
'UZS' => 'лв',
|
| 816 |
+
'VEF' => 'Bs',
|
| 817 |
+
'VND' => '₫',
|
| 818 |
+
'VUV' => 'VT',
|
| 819 |
+
'WST' => 'WS$',
|
| 820 |
+
'XAF' => 'FCFA',
|
| 821 |
+
'XCD' => '$',
|
| 822 |
+
'XDR' => '',
|
| 823 |
+
'XOF' => '',
|
| 824 |
+
'XPF' => 'F',
|
| 825 |
+
'YER' => '﷼',
|
| 826 |
+
'ZAR' => 'R',
|
| 827 |
+
'ZMK' => 'ZK', // ?
|
| 828 |
+
'ZWL' => 'Z$',
|
| 829 |
+
);
|
| 830 |
+
|
| 831 |
+
if( !empty( $currency_symbols[$currency_code] ) )
|
| 832 |
+
return $currency_symbols[$currency_code];
|
| 833 |
+
else
|
| 834 |
+
return '';
|
| 835 |
+
|
| 836 |
+
}
|
| 837 |
+
|
| 838 |
+
|
| 839 |
/**
|
| 840 |
* Function that returns a unique, incremented ID
|
| 841 |
*
|
assets/css/style-front-end.css
CHANGED
|
@@ -167,6 +167,11 @@
|
|
| 167 |
float:left;
|
| 168 |
}
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
.wppb-user-forms .wppb-wysiwyg .wp-editor-wrap .wp-editor-tabs *{
|
| 171 |
box-sizing: content-box !important;
|
| 172 |
}
|
|
@@ -194,6 +199,16 @@ input#send_credentials_via_email{
|
|
| 194 |
font-style:italic;
|
| 195 |
}
|
| 196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
.wppb_upload_button{
|
| 198 |
display:inline-block;
|
| 199 |
}
|
| 167 |
float:left;
|
| 168 |
}
|
| 169 |
|
| 170 |
+
.wppb-form-field.wppb-timepicker select {
|
| 171 |
+
width: auto;
|
| 172 |
+
margin-right: 5px;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
.wppb-user-forms .wppb-wysiwyg .wp-editor-wrap .wp-editor-tabs *{
|
| 176 |
box-sizing: content-box !important;
|
| 177 |
}
|
| 199 |
font-style:italic;
|
| 200 |
}
|
| 201 |
|
| 202 |
+
.wppb-form-field.wppb-timepicker > span.wppb-timepicker-separator {
|
| 203 |
+
display: inline-block;
|
| 204 |
+
float: left;
|
| 205 |
+
clear: none;
|
| 206 |
+
margin-left: 0;
|
| 207 |
+
margin-right: 5px;
|
| 208 |
+
font-size: 100%;
|
| 209 |
+
font-style: normal;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
.wppb_upload_button{
|
| 213 |
display:inline-block;
|
| 214 |
}
|
assets/js/jquery-manage-fields-live-change.js
CHANGED
|
@@ -270,6 +270,17 @@ var fields = {
|
|
| 270 |
]
|
| 271 |
},
|
| 272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
'Select (Timezone)': { 'show_rows' : [
|
| 274 |
'.row-field-title',
|
| 275 |
'.row-meta-name',
|
|
@@ -348,6 +359,40 @@ var fields = {
|
|
| 348 |
]
|
| 349 |
},
|
| 350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 351 |
'reCAPTCHA': { 'show_rows' : [
|
| 352 |
'.row-field-title',
|
| 353 |
'.row-description',
|
| 270 |
]
|
| 271 |
},
|
| 272 |
|
| 273 |
+
'Select (Currency)': { 'show_rows' : [
|
| 274 |
+
'.row-field-title',
|
| 275 |
+
'.row-meta-name',
|
| 276 |
+
'.row-description',
|
| 277 |
+
'.row-show-currency-symbol',
|
| 278 |
+
'.row-default-option-currency',
|
| 279 |
+
'.row-required',
|
| 280 |
+
'.row-overwrite-existing'
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
|
| 284 |
'Select (Timezone)': { 'show_rows' : [
|
| 285 |
'.row-field-title',
|
| 286 |
'.row-meta-name',
|
| 359 |
]
|
| 360 |
},
|
| 361 |
|
| 362 |
+
|
| 363 |
+
'Timepicker': { 'show_rows' : [
|
| 364 |
+
'.row-field-title',
|
| 365 |
+
'.row-meta-name',
|
| 366 |
+
'.row-description',
|
| 367 |
+
'.row-required',
|
| 368 |
+
'.row-time-format',
|
| 369 |
+
'.row-overwrite-existing'
|
| 370 |
+
]
|
| 371 |
+
},
|
| 372 |
+
|
| 373 |
+
'Colorpicker': { 'show_rows' : [
|
| 374 |
+
'.row-field-title',
|
| 375 |
+
'.row-meta-name',
|
| 376 |
+
'.row-description',
|
| 377 |
+
'.row-required',
|
| 378 |
+
'.row-overwrite-existing'
|
| 379 |
+
]
|
| 380 |
+
},
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
'Validation': { 'show_rows' : [
|
| 384 |
+
'.row-field-title',
|
| 385 |
+
'.row-meta-name',
|
| 386 |
+
'.row-description',
|
| 387 |
+
'.row-validation-possible-values',
|
| 388 |
+
'.row-custom-error-message',
|
| 389 |
+
'.row-required'
|
| 390 |
+
],
|
| 391 |
+
'required' : [
|
| 392 |
+
true
|
| 393 |
+
]
|
| 394 |
+
},
|
| 395 |
+
|
| 396 |
'reCAPTCHA': { 'show_rows' : [
|
| 397 |
'.row-field-title',
|
| 398 |
'.row-description',
|
features/email-confirmation/email-confirmation.php
CHANGED
|
@@ -556,8 +556,10 @@ function wppb_notify_user_registration_email( $bloginfo, $user_name, $email, $se
|
|
| 556 |
$message_content = apply_filters( 'wppb_register_admin_email_message_without_admin_approval', $message_content, $email, $password, $message_from, 'wppb_admin_emailc_default_registration_email_content' );
|
| 557 |
}
|
| 558 |
|
| 559 |
-
if ( trim( $message_content ) != '' )
|
| 560 |
-
|
|
|
|
|
|
|
| 561 |
|
| 562 |
|
| 563 |
|
| 556 |
$message_content = apply_filters( 'wppb_register_admin_email_message_without_admin_approval', $message_content, $email, $password, $message_from, 'wppb_admin_emailc_default_registration_email_content' );
|
| 557 |
}
|
| 558 |
|
| 559 |
+
if ( trim( $message_content ) != '' ){
|
| 560 |
+
$admin_email = apply_filters('wppb_send_to_admin_email', get_option('admin_email'), get_user_by( 'email', $email ), $message_context);
|
| 561 |
+
wppb_mail( $admin_email, $message_subject, $message_content, $message_from, $message_context );
|
| 562 |
+
}
|
| 563 |
|
| 564 |
|
| 565 |
|
features/functions.php
CHANGED
|
@@ -79,11 +79,15 @@ if(!function_exists('wppb_curpageurl')){
|
|
| 79 |
|
| 80 |
$pageURL .= "://";
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
if ( function_exists('apply_filters') ) $pageURL = apply_filters('wppb_curpageurl', $pageURL);
|
| 89 |
|
| 79 |
|
| 80 |
$pageURL .= "://";
|
| 81 |
|
| 82 |
+
if( strpos( $_SERVER["HTTP_HOST"], $_SERVER["SERVER_NAME"] ) !== false ){
|
| 83 |
+
$pageURL .=$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
| 84 |
+
}
|
| 85 |
+
else {
|
| 86 |
+
if ($_SERVER["SERVER_PORT"] != "80")
|
| 87 |
+
$pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
|
| 88 |
+
else
|
| 89 |
+
$pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
|
| 90 |
+
}
|
| 91 |
|
| 92 |
if ( function_exists('apply_filters') ) $pageURL = apply_filters('wppb_curpageurl', $pageURL);
|
| 93 |
|
index.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
-
Version: 2.3.
|
| 7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
| 8 |
Author URI: http://www.cozmoslabs.com/
|
| 9 |
License: GPL2
|
|
@@ -73,7 +73,7 @@ function wppb_free_plugin_init() {
|
|
| 73 |
*
|
| 74 |
*
|
| 75 |
*/
|
| 76 |
-
define('PROFILE_BUILDER_VERSION', '2.3.
|
| 77 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 78 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 79 |
define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
+
Version: 2.3.7
|
| 7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
| 8 |
Author URI: http://www.cozmoslabs.com/
|
| 9 |
License: GPL2
|
| 73 |
*
|
| 74 |
*
|
| 75 |
*/
|
| 76 |
+
define('PROFILE_BUILDER_VERSION', '2.3.7' );
|
| 77 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 78 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 79 |
define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
|
readme.txt
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
=== Profile Builder - front-end user registration, login and edit profile ===
|
| 2 |
Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
|
| 3 |
Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
| 4 |
-
Tags:
|
| 5 |
|
| 6 |
Requires at least: 3.1
|
| 7 |
Tested up to: 4.5.2
|
| 8 |
-
Stable tag: 2.3.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -147,6 +147,10 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
| 147 |
10. Profile Builder Login Widget
|
| 148 |
|
| 149 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
= 2.3.6 =
|
| 151 |
* Fixed a security issue regarding shortcodes
|
| 152 |
* Fixed a deprecated function warning in the hidden input field
|
| 1 |
=== Profile Builder - front-end user registration, login and edit profile ===
|
| 2 |
Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
|
| 3 |
Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
| 4 |
+
Tags: user registration, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form
|
| 5 |
|
| 6 |
Requires at least: 3.1
|
| 7 |
Tested up to: 4.5.2
|
| 8 |
+
Stable tag: 2.3.7
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
| 147 |
10. Profile Builder Login Widget
|
| 148 |
|
| 149 |
== Changelog ==
|
| 150 |
+
= 2.3.7 =
|
| 151 |
+
* Changed the wppb_curpageurl function to fix the missing www problem from links
|
| 152 |
+
* Added a new filter wppb_send_to_admin_email to Email Confirmation
|
| 153 |
+
|
| 154 |
= 2.3.6 =
|
| 155 |
* Fixed a security issue regarding shortcodes
|
| 156 |
* Fixed a deprecated function warning in the hidden input field
|
