Changeset 3035447
- Timestamp:
- 02/14/2024 08:08:24 AM (2 years ago)
- Location:
- eber/trunk
- Files:
-
- 1 deleted
- 4 edited
-
init/frontend.php (modified) (2 diffs)
-
init/menu.php (modified) (4 diffs)
-
init/menu.php.crswap (deleted)
-
layout/index.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
eber/trunk/init/frontend.php
r3035189 r3035447 162 162 if(isset($custom_field['phone_code']) && !empty($user_meta[$custom_field['phone_code']])) 163 163 $post_data['phone_code'] = $user_meta[$custom_field['phone_code']][0]; 164 if(isset($custom_field['phone_code']) && $custom_field['phone_code'] == '' && !empty(get_option('eber_default_phone_code',''))) 165 $post_data['phone_code'] = get_option('eber_default_phone_code',''); 164 166 if(isset($custom_field['birthday']) && !empty($user_meta[$custom_field['birthday']])) 165 167 { … … 236 238 if(isset($custom_field['phone_code']) && !empty($user_meta[$custom_field['phone_code']])) 237 239 $post_data['phone_code'] = $user_meta[$custom_field['phone_code']][0]; 240 241 if(isset($custom_field['phone_code']) && $custom_field['phone_code'] == '' && !empty(get_option('eber_default_phone_code',''))) 242 $post_data['phone_code'] = get_option('eber_default_phone_code',''); 243 238 244 if(isset($custom_field['birthday']) && !empty($user_meta[$custom_field['birthday']])) 239 245 { -
eber/trunk/init/menu.php
r3035189 r3035447 17 17 } 18 18 public static function SettingsPage(){ 19 $phone_code = [0 => ['iso2' => 'AF', 'name' => 'Afghanistan', 'callcode' => 93, 'currency' => 'AFN',], 1 => ['iso2' => 'AL', 'name' => 'Albania', 'callcode' => 355, 'currency' => 'ALL',], 2 => ['iso2' => 'DZ', 'name' => 'Algeria', 'callcode' => 213, 'currency' => 'DZD',], 3 => ['iso2' => 'AS', 'name' => 'American Samoa', 'callcode' => 1, 'currency' => 'USD',], 4 => ['iso2' => 'AD', 'name' => 'Andorra', 'callcode' => 376, 'currency' => 'EUR',], 5 => ['iso2' => 'AO', 'name' => 'Angola', 'callcode' => 244, 'currency' => 'AOA',], 6 => ['iso2' => 'AI', 'name' => 'Anguilla', 'callcode' => 1, 'currency' => 'XCD',], 7 => ['iso2' => 'AQ', 'name' => 'Antarctica', 'callcode' => 0, 'currency' => 'XCD',], 8 => ['iso2' => 'AG', 'name' => 'Antigua and Barbuda', 'callcode' => 1, 'currency' => 'XCD',], 9 => ['iso2' => 'AR', 'name' => 'Argentina', 'callcode' => 54, 'currency' => 'ARS',], 10 => ['iso2' => 'AM', 'name' => 'Armenia', 'callcode' => 374, 'currency' => 'AMD',], 11 => ['iso2' => 'AW', 'name' => 'Aruba', 'callcode' => 297, 'currency' => 'AWG',], 12 => ['iso2' => 'AU', 'name' => 'Australia', 'callcode' => 61, 'currency' => 'AUD',], 13 => ['iso2' => 'AT', 'name' => 'Austria', 'callcode' => 43, 'currency' => 'EUR',], 14 => ['iso2' => 'AZ', 'name' => 'Azerbaijan', 'callcode' => 994, 'currency' => 'AZN',], 15 => ['iso2' => 'BS', 'name' => 'Bahamas', 'callcode' => 1, 'currency' => 'BSD',], 16 => ['iso2' => 'BH', 'name' => 'Bahrain', 'callcode' => 973, 'currency' => 'BHD',], 17 => ['iso2' => 'BD', 'name' => 'Bangladesh', 'callcode' => 880, 'currency' => 'BDT',], 18 => ['iso2' => 'BB', 'name' => 'Barbados', 'callcode' => 1, 'currency' => 'BBD',], 19 => ['iso2' => 'BY', 'name' => 'Belarus', 'callcode' => 375, 'currency' => 'BYR',], 20 => ['iso2' => 'BE', 'name' => 'Belgium', 'callcode' => 32, 'currency' => 'EUR',], 21 => ['iso2' => 'BZ', 'name' => 'Belize', 'callcode' => 501, 'currency' => 'BZD',], 22 => ['iso2' => 'BJ', 'name' => 'Benin', 'callcode' => 229, 'currency' => 'XOF',], 23 => ['iso2' => 'BM', 'name' => 'Bermuda', 'callcode' => 1, 'currency' => 'BMD',], 24 => ['iso2' => 'BT', 'name' => 'Bhutan', 'callcode' => 975, 'currency' => 'BTN',], 25 => ['iso2' => 'BO', 'name' => 'Bolivia', 'callcode' => 591, 'currency' => 'BOB',], 26 => ['iso2' => 'BA', 'name' => 'Bosnia and Herzegowina', 'callcode' => 387, 'currency' => 'BAM',], 27 => ['iso2' => 'BW', 'name' => 'Botswana', 'callcode' => 267, 'currency' => 'BWP',], 28 => ['iso2' => 'BV', 'name' => 'Bouvet Island', 'callcode' => 0, 'currency' => 'NOK',], 29 => ['iso2' => 'BR', 'name' => 'Brazil', 'callcode' => 55, 'currency' => 'BRL',], 30 => ['iso2' => 'IO', 'name' => 'British Indian Ocean Territory', 'callcode' => 246, 'currency' => 'USD',], 31 => ['iso2' => 'BN', 'name' => 'Brunei Darussalam', 'callcode' => 673, 'currency' => 'BND',], 32 => ['iso2' => 'BG', 'name' => 'Bulgaria', 'callcode' => 359, 'currency' => 'BGN',], 33 => ['iso2' => 'BF', 'name' => 'Burkina Faso', 'callcode' => 226, 'currency' => 'XOF',], 34 => ['iso2' => 'BI', 'name' => 'Burundi', 'callcode' => 257, 'currency' => 'BIF',], 35 => ['iso2' => 'KH', 'name' => 'Cambodia', 'callcode' => 855, 'currency' => 'KHR',], 36 => ['iso2' => 'CM', 'name' => 'Cameroon', 'callcode' => 237, 'currency' => 'XAF',], 37 => ['iso2' => 'CA', 'name' => 'Canada', 'callcode' => 1, 'currency' => 'CAD',], 38 => ['iso2' => 'CV', 'name' => 'Cape Verde', 'callcode' => 238, 'currency' => 'CVE',], 39 => ['iso2' => 'KY', 'name' => 'Cayman Islands', 'callcode' => 1, 'currency' => 'KYD',], 40 => ['iso2' => 'CF', 'name' => 'Central African Republic', 'callcode' => 236, 'currency' => 'XAF',], 41 => ['iso2' => 'TD', 'name' => 'Chad', 'callcode' => 235, 'currency' => 'XAF',], 42 => ['iso2' => 'CL', 'name' => 'Chile', 'callcode' => 56, 'currency' => 'CLP',], 43 => ['iso2' => 'CN', 'name' => 'China', 'callcode' => 86, 'currency' => 'CNY',], 44 => ['iso2' => 'CX', 'name' => 'Christmas Island', 'callcode' => 61, 'currency' => 'AUD',], 45 => ['iso2' => 'CC', 'name' => 'Cocos (Keeling) Islands', 'callcode' => 61, 'currency' => 'AUD',], 46 => ['iso2' => 'CO', 'name' => 'Colombia', 'callcode' => 57, 'currency' => 'COP',], 47 => ['iso2' => 'KM', 'name' => 'Comoros', 'callcode' => 269, 'currency' => 'KMF',], 48 => ['iso2' => 'CD', 'name' => 'Congo Democratic Republic', 'callcode' => 243, 'currency' => 'CDF',], 49 => ['iso2' => 'CG', 'name' => 'Congo Republic', 'callcode' => 242, 'currency' => 'XAF',], 50 => ['iso2' => 'CK', 'name' => 'Cook Islands', 'callcode' => 682, 'currency' => 'NZD',], 51 => ['iso2' => 'CR', 'name' => 'Costa Rica', 'callcode' => 506, 'currency' => 'CRC',], 52 => ['iso2' => 'CI', 'name' => 'Cote D\'Ivoire', 'callcode' => 225, 'currency' => 'XOF',], 53 => ['iso2' => 'HR', 'name' => 'Croatia', 'callcode' => 385, 'currency' => 'HRK',], 54 => ['iso2' => 'CU', 'name' => 'Cuba', 'callcode' => 53, 'currency' => 'CUP',], 55 => ['iso2' => 'CW', 'name' => 'Curacao', 'callcode' => 599, 'currency' => 'NAFL',], 56 => ['iso2' => 'CY', 'name' => 'Cyprus', 'callcode' => 357, 'currency' => 'EUR',], 57 => ['iso2' => 'CZ', 'name' => 'Czech Republic', 'callcode' => 420, 'currency' => 'CZK',], 58 => ['iso2' => 'DK', 'name' => 'Denmark', 'callcode' => 45, 'currency' => 'DKK',], 59 => ['iso2' => 'DJ', 'name' => 'Djibouti', 'callcode' => 253, 'currency' => 'DJF',], 60 => ['iso2' => 'DM', 'name' => 'Dominica', 'callcode' => 1, 'currency' => 'XCD',], 61 => ['iso2' => 'DO', 'name' => 'Dominican Republic', 'callcode' => 1, 'currency' => 'DOP',], 62 => ['iso2' => 'TP', 'name' => 'East Timor', 'callcode' => 0, 'currency' => 'USD',], 63 => ['iso2' => 'EC', 'name' => 'Ecuador', 'callcode' => 593, 'currency' => 'ECS',], 64 => ['iso2' => 'EG', 'name' => 'Egypt', 'callcode' => 20, 'currency' => 'EGP',], 65 => ['iso2' => 'SV', 'name' => 'El Salvador', 'callcode' => 503, 'currency' => 'SVC',], 66 => ['iso2' => 'GQ', 'name' => 'Equatorial Guinea', 'callcode' => 240, 'currency' => 'XAF',], 67 => ['iso2' => 'ER', 'name' => 'Eritrea', 'callcode' => 291, 'currency' => 'ERN',], 68 => ['iso2' => 'EE', 'name' => 'Estonia', 'callcode' => 372, 'currency' => 'EUR',], 69 => ['iso2' => 'ET', 'name' => 'Ethiopia', 'callcode' => 251, 'currency' => 'ETB',], 70 => ['iso2' => 'FK', 'name' => 'Falkland Islands (Malvinas)', 'callcode' => 500, 'currency' => 'EUR',], 71 => ['iso2' => 'FO', 'name' => 'Faroe Islands', 'callcode' => 298, 'currency' => 'DKK',], 72 => ['iso2' => 'FJ', 'name' => 'Fiji', 'callcode' => 679, 'currency' => 'FJD',], 73 => ['iso2' => 'FI', 'name' => 'Finland', 'callcode' => 358, 'currency' => 'EUR',], 74 => ['iso2' => 'FR', 'name' => 'France', 'callcode' => 33, 'currency' => 'EUR',], 75 => ['iso2' => 'GF', 'name' => 'French Guiana', 'callcode' => 594, 'currency' => 'EUR',], 76 => ['iso2' => 'PF', 'name' => 'French Polynesia', 'callcode' => 689, 'currency' => 'XPF',], 77 => ['iso2' => 'TF', 'name' => 'French Southern Territories', 'callcode' => 0, 'currency' => 'EUR',], 78 => ['iso2' => 'GA', 'name' => 'Gabon', 'callcode' => 241, 'currency' => 'XAF',], 79 => ['iso2' => 'GM', 'name' => 'Gambia', 'callcode' => 220, 'currency' => 'GMD',], 80 => ['iso2' => 'GE', 'name' => 'Georgia', 'callcode' => 995, 'currency' => 'GEL',], 81 => ['iso2' => 'DE', 'name' => 'Germany', 'callcode' => 49, 'currency' => 'EUR',], 82 => ['iso2' => 'GH', 'name' => 'Ghana', 'callcode' => 233, 'currency' => 'GHS',], 83 => ['iso2' => 'GI', 'name' => 'Gibraltar', 'callcode' => 350, 'currency' => 'GIP',], 84 => ['iso2' => 'GR', 'name' => 'Greece', 'callcode' => 30, 'currency' => 'EUR',], 85 => ['iso2' => 'GL', 'name' => 'Greenland', 'callcode' => 299, 'currency' => 'DKK',], 86 => ['iso2' => 'GD', 'name' => 'Grenada', 'callcode' => 1, 'currency' => 'XCD',], 87 => ['iso2' => 'GP', 'name' => 'Guadeloupe', 'callcode' => 590, 'currency' => 'EUR',], 88 => ['iso2' => 'GU', 'name' => 'Guam', 'callcode' => 1, 'currency' => 'USD',], 89 => ['iso2' => 'GT', 'name' => 'Guatemala', 'callcode' => 502, 'currency' => 'QTQ',], 90 => ['iso2' => 'GN', 'name' => 'Guinea', 'callcode' => 224, 'currency' => 'GNF',], 91 => ['iso2' => 'GW', 'name' => 'Guinea-bissau', 'callcode' => 245, 'currency' => 'GWP',], 92 => ['iso2' => 'GY', 'name' => 'Guyana', 'callcode' => 592, 'currency' => 'GYD',], 93 => ['iso2' => 'HT', 'name' => 'Haiti', 'callcode' => 509, 'currency' => 'HTG',], 94 => ['iso2' => 'HM', 'name' => 'Heard and Mc Donald Islands', 'callcode' => 0, 'currency' => 'AUD',], 95 => ['iso2' => 'HN', 'name' => 'Honduras', 'callcode' => 504, 'currency' => 'HNL',], 96 => ['iso2' => 'HK', 'name' => 'Hong Kong', 'callcode' => 852, 'currency' => 'HKD',], 97 => ['iso2' => 'HU', 'name' => 'Hungary', 'callcode' => 36, 'currency' => 'HUF',], 98 => ['iso2' => 'IS', 'name' => 'Iceland', 'callcode' => 354, 'currency' => 'ISK',], 99 => ['iso2' => 'IN', 'name' => 'India', 'callcode' => 91, 'currency' => 'INR',], 100 => ['iso2' => 'ID', 'name' => 'Indonesia', 'callcode' => 62, 'currency' => 'IDR',], 101 => ['iso2' => 'IR', 'name' => 'Iran (Islamic Republic of)', 'callcode' => 98, 'currency' => 'IRR',], 102 => ['iso2' => 'IQ', 'name' => 'Iraq', 'callcode' => 964, 'currency' => 'IQD',], 103 => ['iso2' => 'IE', 'name' => 'Ireland', 'callcode' => 353, 'currency' => 'EUR',], 104 => ['iso2' => 'IL', 'name' => 'Israel', 'callcode' => 972, 'currency' => 'ILS',], 105 => ['iso2' => 'IT', 'name' => 'Italy', 'callcode' => 39, 'currency' => 'EUR',], 106 => ['iso2' => 'JM', 'name' => 'Jamaica', 'callcode' => 1, 'currency' => 'JMD',], 107 => ['iso2' => 'JP', 'name' => 'Japan', 'callcode' => 81, 'currency' => 'JPY',], 108 => ['iso2' => 'JO', 'name' => 'Jordan', 'callcode' => 962, 'currency' => 'JOD',], 109 => ['iso2' => 'KZ', 'name' => 'Kazakhstan', 'callcode' => 7, 'currency' => 'KZT',], 110 => ['iso2' => 'KE', 'name' => 'Kenya', 'callcode' => 254, 'currency' => 'KES',], 111 => ['iso2' => 'KI', 'name' => 'Kiribati', 'callcode' => 686, 'currency' => 'AUD',], 112 => ['iso2' => 'KP', 'name' => 'Korea, Democratic People\'s Republic of', 'callcode' => 850, 'currency' => 'KPW',], 113 => ['iso2' => 'KR', 'name' => 'Korea, Republic of', 'callcode' => 82, 'currency' => 'KRW',], 114 => ['iso2' => 'KS', 'name' => 'Kosovo', 'callcode' => 383, 'currency' => 'EUR',], 115 => ['iso2' => 'KW', 'name' => 'Kuwait', 'callcode' => 965, 'currency' => 'KWD',], 116 => ['iso2' => 'KG', 'name' => 'Kyrgyzstan', 'callcode' => 996, 'currency' => 'KGS',], 117 => ['iso2' => 'LA', 'name' => 'Lao People\'s Democratic Republic', 'callcode' => 856, 'currency' => 'LAK',], 118 => ['iso2' => 'LV', 'name' => 'Latvia', 'callcode' => 371, 'currency' => 'LVL',], 119 => ['iso2' => 'LB', 'name' => 'Lebanon', 'callcode' => 961, 'currency' => 'LBP',], 120 => ['iso2' => 'LS', 'name' => 'Lesotho', 'callcode' => 266, 'currency' => 'LSL',], 121 => ['iso2' => 'LR', 'name' => 'Liberia', 'callcode' => 231, 'currency' => 'LRD',], 122 => ['iso2' => 'LY', 'name' => 'Libyan Arab Jamahiriya', 'callcode' => 218, 'currency' => 'LYD',], 123 => ['iso2' => 'LI', 'name' => 'Liechtenstein', 'callcode' => 423, 'currency' => 'CHF',], 124 => ['iso2' => 'LT', 'name' => 'Lithuania', 'callcode' => 370, 'currency' => 'LTL',], 125 => ['iso2' => 'LU', 'name' => 'Luxembourg', 'callcode' => 352, 'currency' => 'EUR',], 126 => ['iso2' => 'MO', 'name' => 'Macau', 'callcode' => 853, 'currency' => 'MOP',], 127 => ['iso2' => 'MK', 'name' => 'Macedonia, The Former Yugoslav Republic of', 'callcode' => 389, 'currency' => 'MKD',], 128 => ['iso2' => 'MG', 'name' => 'Madagascar', 'callcode' => 261, 'currency' => 'MGF',], 129 => ['iso2' => 'MW', 'name' => 'Malawi', 'callcode' => 265, 'currency' => 'MWK',], 130 => ['iso2' => 'MY', 'name' => 'Malaysia', 'callcode' => 60, 'currency' => 'MYR',], 131 => ['iso2' => 'MV', 'name' => 'Maldives', 'callcode' => 960, 'currency' => 'MVR',], 132 => ['iso2' => 'ML', 'name' => 'Mali', 'callcode' => 223, 'currency' => 'XOF',], 133 => ['iso2' => 'MT', 'name' => 'Malta', 'callcode' => 356, 'currency' => 'EUR',], 134 => ['iso2' => 'MH', 'name' => 'Marshall Islands', 'callcode' => 692, 'currency' => 'USD',], 135 => ['iso2' => 'MQ', 'name' => 'Martinique', 'callcode' => 596, 'currency' => 'EUR',], 136 => ['iso2' => 'MR', 'name' => 'Mauritania', 'callcode' => 222, 'currency' => 'MRO',], 137 => ['iso2' => 'MU', 'name' => 'Mauritius', 'callcode' => 230, 'currency' => 'MUR',], 138 => ['iso2' => 'YT', 'name' => 'Mayotte', 'callcode' => 269, 'currency' => 'EUR',], 139 => ['iso2' => 'MX', 'name' => 'Mexico', 'callcode' => 52, 'currency' => 'MXN',], 140 => ['iso2' => 'FM', 'name' => 'Micronesia, Federated States of', 'callcode' => 691, 'currency' => 'USD',], 141 => ['iso2' => 'MD', 'name' => 'Moldova, Republic of', 'callcode' => 373, 'currency' => 'MDL',], 142 => ['iso2' => 'MC', 'name' => 'Monaco', 'callcode' => 377, 'currency' => 'EUR',], 143 => ['iso2' => 'MN', 'name' => 'Mongolia', 'callcode' => 976, 'currency' => 'MNT',], 144 => ['iso2' => 'ME', 'name' => 'Montenegro', 'callcode' => 382, 'currency' => 'EUR',], 145 => ['iso2' => 'MS', 'name' => 'Montserrat', 'callcode' => 1, 'currency' => 'XCD',], 146 => ['iso2' => 'MA', 'name' => 'Morocco', 'callcode' => 212, 'currency' => 'MAD',], 147 => ['iso2' => 'MZ', 'name' => 'Mozambique', 'callcode' => 258, 'currency' => 'MZN',], 148 => ['iso2' => 'MM', 'name' => 'Myanmar', 'callcode' => 95, 'currency' => 'MMK',], 149 => ['iso2' => 'NA', 'name' => 'Namibia', 'callcode' => 264, 'currency' => 'NAD',], 150 => ['iso2' => 'NR', 'name' => 'Nauru', 'callcode' => 674, 'currency' => 'AUD',], 151 => ['iso2' => 'NP', 'name' => 'Nepal', 'callcode' => 977, 'currency' => 'NPR',], 152 => ['iso2' => 'NL', 'name' => 'Netherlands', 'callcode' => 31, 'currency' => 'EUR',], 153 => ['iso2' => 'AN', 'name' => 'Netherlands Antilles', 'callcode' => 599, 'currency' => 'ANG',], 154 => ['iso2' => 'NC', 'name' => 'New Caledonia', 'callcode' => 687, 'currency' => 'XPF',], 155 => ['iso2' => 'NZ', 'name' => 'New Zealand', 'callcode' => 64, 'currency' => 'NZD',], 156 => ['iso2' => 'NI', 'name' => 'Nicaragua', 'callcode' => 505, 'currency' => 'NIO',], 157 => ['iso2' => 'NE', 'name' => 'Niger', 'callcode' => 227, 'currency' => 'XOF',], 158 => ['iso2' => 'NG', 'name' => 'Nigeria', 'callcode' => 234, 'currency' => 'NGN',], 159 => ['iso2' => 'NU', 'name' => 'Niue', 'callcode' => 683, 'currency' => 'NZD',], 160 => ['iso2' => 'NF', 'name' => 'Norfolk Island', 'callcode' => 672, 'currency' => 'AUD',], 161 => ['iso2' => 'MP', 'name' => 'Northern Mariana Islands', 'callcode' => 1, 'currency' => 'USD',], 162 => ['iso2' => 'NO', 'name' => 'Norway', 'callcode' => 47, 'currency' => 'NOK',], 163 => ['iso2' => 'OM', 'name' => 'Oman', 'callcode' => 968, 'currency' => 'OMR',], 164 => ['iso2' => 'PK', 'name' => 'Pakistan', 'callcode' => 92, 'currency' => 'PKR',], 165 => ['iso2' => 'PW', 'name' => 'Palau', 'callcode' => 680, 'currency' => 'USD',], 166 => ['iso2' => 'PS', 'name' => 'Palestine', 'callcode' => 970, 'currency' => 'NIS',], 167 => ['iso2' => 'PA', 'name' => 'Panama', 'callcode' => 507, 'currency' => 'PAB',], 168 => ['iso2' => 'PG', 'name' => 'Papua New Guinea', 'callcode' => 675, 'currency' => 'PGK',], 169 => ['iso2' => 'PY', 'name' => 'Paraguay', 'callcode' => 595, 'currency' => 'PYG',], 170 => ['iso2' => 'PE', 'name' => 'Peru', 'callcode' => 51, 'currency' => 'PEN',], 171 => ['iso2' => 'PH', 'name' => 'Philippines', 'callcode' => 63, 'currency' => 'PHP',], 172 => ['iso2' => 'PN', 'name' => 'Pitcairn', 'callcode' => 870, 'currency' => 'NZD',], 173 => ['iso2' => 'PL', 'name' => 'Poland', 'callcode' => 48, 'currency' => 'PLN',], 174 => ['iso2' => 'PT', 'name' => 'Portugal', 'callcode' => 351, 'currency' => 'EUR',], 175 => ['iso2' => 'PR', 'name' => 'Puerto Rico', 'callcode' => 1, 'currency' => 'USD',], 176 => ['iso2' => 'QA', 'name' => 'Qatar', 'callcode' => 974, 'currency' => 'QAR',], 177 => ['iso2' => 'RE', 'name' => 'Reunion', 'callcode' => 262, 'currency' => 'EUR',], 178 => ['iso2' => 'RO', 'name' => 'Romania', 'callcode' => 40, 'currency' => 'RON',], 179 => ['iso2' => 'RU', 'name' => 'Russian Federation', 'callcode' => 7, 'currency' => 'RUB',], 180 => ['iso2' => 'RW', 'name' => 'Rwanda', 'callcode' => 250, 'currency' => 'RWF',], 181 => ['iso2' => 'KN', 'name' => 'Saint Kitts and Nevis', 'callcode' => 1, 'currency' => 'XCD',], 182 => ['iso2' => 'LC', 'name' => 'Saint Lucia', 'callcode' => 1, 'currency' => 'XCD',], 183 => ['iso2' => 'MF', 'name' => 'Saint Martin', 'callcode' => 1, 'currency' => 'EUR',], 184 => ['iso2' => 'VC', 'name' => 'Saint Vincent and the Grenadines', 'callcode' => 1, 'currency' => 'XCD',], 185 => ['iso2' => 'WS', 'name' => 'Samoa', 'callcode' => 685, 'currency' => 'WST',], 186 => ['iso2' => 'SM', 'name' => 'San Marino', 'callcode' => 378, 'currency' => 'EUR',], 187 => ['iso2' => 'ST', 'name' => 'Sao Tome and Principe', 'callcode' => 239, 'currency' => 'STD',], 188 => ['iso2' => 'SA', 'name' => 'Saudi Arabia', 'callcode' => 966, 'currency' => 'SAR',], 189 => ['iso2' => 'SN', 'name' => 'Senegal', 'callcode' => 221, 'currency' => 'XOF',], 190 => ['iso2' => 'RS', 'name' => 'Serbia', 'callcode' => 381, 'currency' => 'RSD',], 191 => ['iso2' => 'SC', 'name' => 'Seychelles', 'callcode' => 248, 'currency' => 'SCR',], 192 => ['iso2' => 'SL', 'name' => 'Sierra Leone', 'callcode' => 232, 'currency' => 'SLL',], 193 => ['iso2' => 'SG', 'name' => 'Singapore', 'callcode' => 65, 'currency' => 'SGD',], 194 => ['iso2' => 'SX', 'name' => 'Sint Maarten', 'callcode' => 1, 'currency' => 'ANG',], 195 => ['iso2' => 'SK', 'name' => 'Slovakia (Slovak Republic)', 'callcode' => 421, 'currency' => 'EUR',], 196 => ['iso2' => 'SI', 'name' => 'Slovenia', 'callcode' => 386, 'currency' => 'EUR',], 197 => ['iso2' => 'SB', 'name' => 'Solomon Islands', 'callcode' => 677, 'currency' => 'SBD',], 198 => ['iso2' => 'SO', 'name' => 'Somalia', 'callcode' => 252, 'currency' => 'SOS',], 199 => ['iso2' => 'ZA', 'name' => 'South Africa', 'callcode' => 27, 'currency' => 'ZAR',], 200 => ['iso2' => 'GS', 'name' => 'South Georgia and the South Sandwich Islands', 'callcode' => 500, 'currency' => 'GBP',], 201 => ['iso2' => 'ES', 'name' => 'Spain', 'callcode' => 34, 'currency' => 'EUR',], 202 => ['iso2' => 'LK', 'name' => 'Sri Lanka', 'callcode' => 94, 'currency' => 'LKR',], 203 => ['iso2' => 'SH', 'name' => 'St. Helena', 'callcode' => 290, 'currency' => 'SHP',], 204 => ['iso2' => 'PM', 'name' => 'St. Pierre and Miquelon', 'callcode' => 508, 'currency' => 'EUR',], 205 => ['iso2' => 'SD', 'name' => 'Sudan', 'callcode' => 249, 'currency' => 'SDG',], 206 => ['iso2' => 'SR', 'name' => 'Suriname', 'callcode' => 597, 'currency' => 'SRD',], 207 => ['iso2' => 'SJ', 'name' => 'Svalbard and Jan Mayen Islands', 'callcode' => 47, 'currency' => 'NOK',], 208 => ['iso2' => 'SZ', 'name' => 'Swaziland', 'callcode' => 268, 'currency' => 'SZL',], 209 => ['iso2' => 'SE', 'name' => 'Sweden', 'callcode' => 46, 'currency' => 'SEK',], 210 => ['iso2' => 'CH', 'name' => 'Switzerland', 'callcode' => 41, 'currency' => 'CHF',], 211 => ['iso2' => 'SY', 'name' => 'Syrian Arab Republic', 'callcode' => 963, 'currency' => 'SYP',], 212 => ['iso2' => 'TW', 'name' => 'Taiwan', 'callcode' => 886, 'currency' => 'TWD',], 213 => ['iso2' => 'TJ', 'name' => 'Tajikistan', 'callcode' => 992, 'currency' => 'TJS',], 214 => ['iso2' => 'TZ', 'name' => 'Tanzania, United Republic of', 'callcode' => 255, 'currency' => 'TZS',], 215 => ['iso2' => 'TH', 'name' => 'Thailand', 'callcode' => 66, 'currency' => 'THB',], 216 => ['iso2' => 'TL', 'name' => 'Timor-Leste', 'callcode' => 670, 'currency' => 'USD',], 217 => ['iso2' => 'TG', 'name' => 'Togo', 'callcode' => 228, 'currency' => 'XOF',], 218 => ['iso2' => 'TK', 'name' => 'Tokelau', 'callcode' => 690, 'currency' => 'NZD',], 219 => ['iso2' => 'TO', 'name' => 'Tonga', 'callcode' => 676, 'currency' => 'TOP',], 220 => ['iso2' => 'TT', 'name' => 'Trinidad and Tobago', 'callcode' => 1, 'currency' => 'TTD',], 221 => ['iso2' => 'TN', 'name' => 'Tunisia', 'callcode' => 216, 'currency' => 'TND',], 222 => ['iso2' => 'TR', 'name' => 'Turkey', 'callcode' => 90, 'currency' => 'TRY',], 223 => ['iso2' => 'TM', 'name' => 'Turkmenistan', 'callcode' => 993, 'currency' => 'TMT',], 224 => ['iso2' => 'TC', 'name' => 'Turks and Caicos Islands', 'callcode' => 1, 'currency' => 'USD',], 225 => ['iso2' => 'TV', 'name' => 'Tuvalu', 'callcode' => 688, 'currency' => 'AUD',], 226 => ['iso2' => 'UG', 'name' => 'Uganda', 'callcode' => 256, 'currency' => 'UGX',], 227 => ['iso2' => 'UA', 'name' => 'Ukraine', 'callcode' => 380, 'currency' => 'UAH',], 228 => ['iso2' => 'AE', 'name' => 'United Arab Emirates', 'callcode' => 971, 'currency' => 'AED',], 229 => ['iso2' => 'GB', 'name' => 'United Kingdom', 'callcode' => 44, 'currency' => 'GBP',], 230 => ['iso2' => 'US', 'name' => 'United States', 'callcode' => 1, 'currency' => 'USD',], 231 => ['iso2' => 'UM', 'name' => 'United States Minor Outlying Islands', 'callcode' => 0, 'currency' => 'USD',], 232 => ['iso2' => 'UY', 'name' => 'Uruguay', 'callcode' => 598, 'currency' => 'UYU',], 233 => ['iso2' => 'UZ', 'name' => 'Uzbekistan', 'callcode' => 998, 'currency' => 'UZS',], 234 => ['iso2' => 'VU', 'name' => 'Vanuatu', 'callcode' => 678, 'currency' => 'VUV',], 235 => ['iso2' => 'VA', 'name' => 'Vatican City State (Holy See)', 'callcode' => 379, 'currency' => 'EUR',], 236 => ['iso2' => 'VE', 'name' => 'Venezuela', 'callcode' => 58, 'currency' => 'VEF',], 237 => ['iso2' => 'VN', 'name' => 'Viet Nam', 'callcode' => 84, 'currency' => 'VND',], 238 => ['iso2' => 'VG', 'name' => 'Virgin Islands (British)', 'callcode' => 284, 'currency' => 'USD',], 239 => ['iso2' => 'VI', 'name' => 'Virgin Islands (U.S.)', 'callcode' => 1, 'currency' => 'USD',], 240 => ['iso2' => 'WF', 'name' => 'Wallis and Futuna Islands', 'callcode' => 681, 'currency' => 'XPF',], 241 => ['iso2' => 'EH', 'name' => 'Western Sahara', 'callcode' => 0, 'currency' => 'MAD',], 242 => ['iso2' => 'YE', 'name' => 'Yemen', 'callcode' => 967, 'currency' => 'YER',], 243 => ['iso2' => 'ZM', 'name' => 'Zambia', 'callcode' => 260, 'currency' => 'ZMW',], 244 => ['iso2' => 'ZW', 'name' => 'Zimbabwe', 'callcode' => 263, 'currency' => 'ZWD',],]; 19 20 $default_metadata = ['syntax_highlighting','dismissed_wp_pointers','wp_user_level','wp_capabilities','user_pass', 'user_login', 'user_nicename', 'user_url', 'user_email', 'display_name', 'nickname', 'first_name', 'last_name', 'description', 'rich_editing', 'comment_shortcuts', 'admin_color', 'use_ssl', 'user_registered', 'show_admin_bar_front', 'role', 'locale']; 20 21 $success = false; … … 56 57 $eber_api_enable = get_option('eber_api_enable',false); 57 58 $eber_custom_field = get_option('eber_custom_field',false); 59 $eber_default_phone_code = get_option('eber_default_phone_code',''); 58 60 $custom_field = get_option('eber_custom_field_data',['phone_number'=>0,'birthday'=>0,'phone_code'=>'']); 59 61 … … 77 79 $eber_custom_field = (isset($_POST['eber_custom_field'])); 78 80 $custom_field = $_POST['custom_field']; 81 $eber_default_phone_code = sanitize_text_field($_POST['eber_default_phone_code']); 79 82 80 83 if(isset($_POST['eber_custom_login_url'])) … … 235 238 } 236 239 237 240 update_option('eber_default_phone_code',sanitize_text_field($_POST['eber_default_phone_code'])); 238 241 $success = true; 239 242 } -
eber/trunk/layout/index.php
r3035189 r3035447 207 207 </td> 208 208 </tr> 209 <tr class="custom_field phone_code" <?php echo (!$eber_custom_field || $custom_field['phone_code'] != '')?'style="display:none;"':''; ?> > 210 <th scope="row"><label for="user_phone_number">Default Phone Code</label></th> 211 <td><select name="eber_default_phone_code" > 212 <option value="">No Select</option> 213 <?php 214 foreach($phone_code as $phone) 215 {?> 216 <option value="<?php echo $phone['iso2'];?>" <?php echo ($eber_default_phone_code == $phone['iso2'])?'selected':''; ?> ><?php echo $phone['iso2'].' ( '.$phone['name'].' )' ;?></option> 217 <?php } 218 ?> 219 </select> 220 </td> 221 </tr> 209 222 <tr class="custom_field" <?php echo (!$eber_custom_field)?'style="display:none;"':''; ?> > 210 223 <th scope="row"><label for="user_phone_number">Custom Field Phone Number</label></th> … … 278 291 jQuery(".custom_field").hide(); 279 292 } 293 280 294 }); 295 296 jQuery("input[name='custom_field[phone_code]']").change(function(){ 297 298 299 }); 300 jQuery("select[name='custom_field[phone_code]']").on('change',function(){ 301 if(jQuery("select[name='custom_field[phone_code]']").val() === '') 302 { 303 jQuery(".phone_code").show(); 304 } 305 else 306 { 307 jQuery(".phone_code").hide(); 308 } 309 }); 310 281 311 } 282 312 showHideCustomField(); -
eber/trunk/readme.txt
r3035189 r3035447 96 96 = 3.4 = 97 97 API enable settings 98 = 3.5 =99 Custom field for User Syncing100 98 101 99
Note: See TracChangeset
for help on using the changeset viewer.