Advertisement
PhoTonFlinger

Untitled

Nov 22nd, 2018
1,910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.46 KB | None | 0 0
  1. <?php
  2. /*
  3. * Template Name: Login Template
  4. */
  5. ?>
  6. <?php
  7.  
  8. if(get_option( 'users_can_register' ) == '0'){wp_redirect( home_url('/'), $status = 302);}
  9. ?>
  10. <?php get_header(); ?>
  11.  
  12. <?php
  13.  
  14. global $arcane_noviuser, $arcane_error_msg, $wpdb;
  15. $arcane_noviuser = '';
  16. $arcane_error_msg = '';
  17. if(isset($_POST['wp-submit']))$submit = $_POST['wp-submit'];
  18. if(isset($_POST['user_login']))$user_id = $_POST['user_login'];
  19. if(isset($_POST['user_email']))$user_email = $_POST['user_email'];
  20. if(isset($_POST['user-password']))$userpassword = $_POST['user-password'];
  21. if(isset($_POST['confirm-password']))$confirmpassword = $_POST['confirm-password'];
  22. if(isset($_POST['usercountry_id']))$user_country = $_POST['usercountry_id'];
  23. if(isset($_POST['user_city']))$user_city = $_POST['user_city'];
  24. if(isset($_POST['agree']))$term_agree = $_POST['agree'];
  25. if(isset($_POST['premium']))$premium = $_POST['premium'];
  26. if(isset($_POST['custom_fields']))$_POST['custom_fields'][1] = $_POST['user_login'];
  27. if(isset($_POST['g-recaptcha-response']))$captcha = $_POST['g-recaptcha-response'];
  28.  
  29. $custom_profile_fields = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'bp_xprofile_fields');
  30.  
  31. if(isset($submit)) {
  32.  
  33.  
  34. $arcane_error_msg = "";
  35. if (function_exists( 'gglcptch_admin_init' )){
  36. if($captcha == ''){
  37. $arcane_error_msg .= '<p>'.esc_html__("Captcha value not valid. ",'arcane').'</p>';
  38. }
  39. }
  40. if($term_agree == '') {
  41. $arcane_error_msg .= '<p>'.esc_html__("You must agree with terms and conditions. ",'arcane').'</p>';
  42. }
  43. if($user_id == '') {
  44. $arcane_error_msg .= '<p>'.esc_html__("Please enter username. ",'arcane').'</p>';
  45.  
  46. }
  47. if($user_email == '') {
  48. $arcane_error_msg .= '<p>'.esc_html__("Please enter email. ",'arcane').'</p>';
  49.  
  50. }
  51. if( !is_email( $user_email ) ) {
  52. $arcane_error_msg .= '<p>'.esc_html__("Please enter valid email. ", 'arcane' ).'</p>';
  53. }
  54.  
  55. if(strlen($userpassword) < 8) {
  56. $arcane_error_msg .= '<p>'.esc_html__("Password should be at least 8 characters long. ",'arcane').'</p>';
  57. }
  58.  
  59. if($userpassword == '') {
  60. $arcane_error_msg .= '<p>'.esc_html__("Please enter password. ",'arcane').'</p>';
  61. }
  62.  
  63. if($userpassword != $confirmpassword) {
  64. $arcane_error_msg .= '<p>'.esc_html__("Passwords do not match. ",'arcane').'</p>';
  65. }
  66.  
  67.  
  68. $posted_customs = $_POST['custom_fields'];
  69. $additional_error =false;
  70. $counter = 0;
  71.  
  72. if (isset($posted_customs)) {
  73. foreach ($custom_profile_fields as $thefield) {
  74. if ($thefield->is_required == 1) {
  75. $therequiredfields[$counter] = $thefield->id;
  76. $counter ++;
  77. }
  78. }
  79. }
  80. if (is_array($therequiredfields)) {
  81.  
  82. foreach ($therequiredfields as $findfield) {
  83. if (!isset($posted_customs[$findfield])) {
  84. $additional_error = true;
  85. $arcane_error_msg .= '<p>'.esc_html__("Please fill out all required fields. ",'arcane').'</p>';
  86. } else {
  87. if ((!(is_array($posted_customs[$findfield]))) AND (!(is_string($posted_customs[$findfield])))) {
  88. $additional_error = true;
  89. $arcane_error_msg .= '<p>'.esc_html__("Please fill out all required fields. ",'arcane').'</p>';
  90. } elseif(is_array($posted_customs[$findfield])) {
  91. if (!(count($posted_customs[$findfield]) > 0)) {
  92. $additional_error = true;
  93. $arcane_error_msg .= '<p>'.esc_html__("Please fill out all required fields. ",'arcane').'</p>';
  94. }
  95. } elseif (is_string($posted_customs[$findfield])) {
  96. if (!(strlen($posted_customs[$findfield]) > 0)) {
  97. $additional_error = true;
  98. $arcane_error_msg .= '<p>'.esc_html__("Please fill out all required fields. ",'arcane').'</p>';
  99. }
  100. }
  101. }
  102. }
  103. }
  104.  
  105.  
  106.  
  107.  
  108.  
  109. if($user_id != '' & $user_email != '' & $term_agree != '' & (is_email( $user_email ) !== false ) & strlen($userpassword) >= 8 & $userpassword != '' & ($userpassword == $confirmpassword) & ($additional_error == false)) {
  110. $arcane_noviuser = 'sub';
  111. global $wpdp, $post;
  112. $getuser_login = get_user_by( 'login', $user_id );
  113. if(!empty($getuser_login)) {
  114. $arcane_error_msg .= '<p>'.esc_html__("Username ",'arcane'). $getuser_login->user_login . esc_html__(" is already in use. ",'arcane').'</p>';
  115. }
  116. $getuser_email = get_user_by( 'email', $user_email );
  117. if(!empty($getuser_email)) {
  118. $arcane_error_msg .= '<p>'.esc_html__("Email ",'arcane'). $user_email. esc_html__(" is already in use. ","arcane").'</p>';
  119. }
  120.  
  121. if (empty($getuser_login) & empty($getuser_email) ) {
  122. $userdata = array(
  123. 'user_login' => $user_id,
  124. 'user_pass' => $userpassword,
  125. 'user_email' => $user_email
  126. );
  127. $new_user_id = wp_insert_user( $userdata );
  128. wp_new_user_notification($new_user_id);
  129. $random_number = rand();
  130. $hash = md5($random_number);
  131. add_user_meta( $new_user_id, 'hash', $hash );
  132. add_user_meta( $new_user_id, 'active', 'false' );
  133. $subject = esc_html__('From ','arcane').get_bloginfo();
  134. $message = esc_html__("Username:",'arcane')." $user_id \n\n". esc_html__("Password: ",'arcane'). "$userpassword";
  135. $message .= "\n\n";
  136. $message .= esc_html__('Please click this link to activate your account: ','arcane');
  137. $message .= esc_url(get_permalink( get_page_by_path('user-activation'))).'?id='.$new_user_id.'&key='.$hash;
  138. $headers = 'From: '.get_bloginfo().' <'.get_option("admin_email").'>' . "\r\n" . 'Reply-To: ' . $user_email;
  139.  
  140. if (class_exists( 'Arcane_Types' )){
  141. $arcane_types = new Arcane_Types();
  142. $arcane_types::arcane_send_email( $user_email, $subject, $message, $headers );
  143. }
  144.  
  145. if(!empty($user_country))
  146. update_user_meta($new_user_id, 'usercountry_id', esc_attr($user_country));
  147. if (!empty($user_city))
  148. update_user_meta($new_user_id, 'city', esc_attr($user_city));
  149. if( is_wp_error($new_user_id) ) {
  150. $arcane_error_msg .= $user_id->get_error_message();
  151. }
  152.  
  153. //tusi2
  154. global $wpdb;
  155. $preppedvalue = '';
  156.  
  157. if (isset($posted_customs) AND (is_array($posted_customs))) {
  158. foreach ($posted_customs as $akey => $acustom) {
  159. //$custom_profile_fields = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'bp_xprofile_fields');
  160. $holdfield = '';
  161. foreach ($custom_profile_fields as $thefield) {
  162. if ($thefield->id == $akey) {
  163. $holdfield = $thefield;
  164. }
  165. }
  166.  
  167. if (($holdfield->type == "textbox") OR ($holdfield->type == "datebox") OR ($holdfield->type == "number") OR ($holdfield->type == "url") OR ($holdfield->type == "textarea")) {
  168. $preppedvalue = $acustom;
  169. } elseif(($holdfield->type == "checkbox")) {
  170. $counter = 0;
  171. unset($preppedvalue);
  172. foreach ($acustom as $tehkey1 => $holdthecustom1) {
  173. foreach ($custom_profile_fields as $thefield1) {
  174. if ($thefield1->id == $tehkey1) {
  175. $preppedvalue[$counter] = $thefield1->name;
  176. $counter ++;
  177. }
  178. }
  179. }
  180. }elseif(($holdfield->type == "multiselectbox")) {
  181. $counter = 0;
  182. unset($preppedvalue);
  183. foreach ($acustom as $tehkey => $holdthecustom) {
  184. foreach ($custom_profile_fields as $thefield) {
  185. if ($thefield->id == $tehkey) {
  186. $preppedvalue[$counter] = $thefield1->name;
  187. $counter ++;
  188. }
  189. }
  190. }
  191.  
  192. } elseif(($holdfield->type == "radio")) {
  193. //($holdfield->type == "selectbox") OR
  194. foreach ($custom_profile_fields as $thefield) {
  195. if ($thefield->id == $acustom) {
  196. $preppedvalue = $thefield->name;
  197. }
  198. }
  199.  
  200. }elseif(($holdfield->type == "selectbox")) {
  201. //($holdfield->type == "selectbox") OR
  202. foreach ($custom_profile_fields as $thefield) {
  203. if ($thefield->id == $acustom) {
  204. $preppedvalue = $thefield->name;
  205. }
  206. }
  207. }
  208.  
  209. if (isset($preppedvalue) && is_array($preppedvalue)) {
  210. $theholder = serialize($preppedvalue);
  211. } else {
  212. $theholder = $preppedvalue;
  213. }
  214.  
  215. $wpdb->insert(
  216. $wpdb->prefix."bp_xprofile_data",
  217. array(
  218. 'field_id' => $akey,
  219. 'user_id' => $new_user_id,
  220. 'value' => $theholder,
  221. 'last_updated' => $arcane_current_time
  222. ),
  223. array(
  224. '%d',
  225. '%d',
  226. '%s',
  227. '%s',
  228. )
  229. );
  230.  
  231.  
  232. }
  233. }
  234. }
  235. }
  236. }
  237.  
  238. ?>
  239.  
  240. <div class="registration-login">
  241. <div class="page normal-page">
  242. <div class="container ">
  243.  
  244.  
  245. <div class="col-lg-7 col-md-12 register-form-wrapper wcontainer">
  246. <?php if(isset($arcane_noviuser) && $arcane_noviuser == 'sub' && empty($arcane_error_msg)){ ?>
  247.  
  248. <i class="fas fa-info-circle"></i>
  249. <?php esc_html_e(" Registration successful. Activation email has been sent!", "arcane"); ?>
  250. <a data-email="<?php echo esc_attr($user_email); ?>" data-uid="<?php echo esc_attr($new_user_id); ?>" id="resend_activation"><i class="fas fa-retweet" aria-hidden="true"></i><?php esc_html_e(" Resend activation link!", "arcane"); ?> </a>
  251. <?php } else{ ?>
  252.  
  253. <div class="title-wrapper">
  254. <h3 class="widget-title">
  255. <?php
  256. $options['cpagetitle'] = '';
  257. $options['terms'] = '';
  258. $options = arcane_get_theme_options();
  259. if(!empty($options['cpagetitle'])){
  260. echo esc_attr($options['cpagetitle']);
  261. }else{
  262. esc_html_e("JOIN arcane TODAY FOR free!", 'arcane');
  263. } ?>
  264. </h3>
  265. <div class="clear"></div>
  266. </div>
  267.  
  268.  
  269. <?php if(!empty($arcane_error_msg)) { ?><div class="error_msg"><span><?php
  270. $allowed_tags = array(
  271. 'p' => array(),
  272. );
  273. echo wp_kses($arcane_error_msg, $allowed_tags ); ?></span></div><?php } ?>
  274. <form method="post">
  275. <p>
  276. <label><?php esc_html_e("Username:", 'arcane'); ?></label>
  277. <span class="cust_input">
  278. <input type="text" name="user_login" id="user_login" class="input" size="20" tabindex="10" value="<?php if(isset($_POST['user_login'])){echo esc_attr($_POST['user_login']); } ?>" />
  279. </span>
  280. </p>
  281. <p>
  282. <label><?php esc_html_e("Email:", 'arcane'); ?></label>
  283. <span class="cust_input">
  284. <input type="text" name="user_email" id="user_email" class="input" size="25" tabindex="20" value="<?php if(isset($_POST['user_email'])){echo esc_attr($_POST['user_email']); } ?>" />
  285. </span>
  286. </p>
  287. <p>
  288. <label><?php esc_html_e("Password:", 'arcane'); ?></label>
  289. <span class="cust_input">
  290. <input type="password" name="user-password" id="user-password" class="input" size="25" tabindex="30" />
  291. </span>
  292. </p>
  293. <p>
  294. <label><?php esc_html_e("Confirm Password:", 'arcane'); ?></label>
  295. <span class="cust_input">
  296. <input type="password" name="confirm-password" id="confirm-password" class="input" size="25" tabindex="30" />
  297. </span>
  298. </p>
  299. <p>
  300.  
  301. <label for="usercountry_id"><?php esc_html_e('Country', 'arcane'); ?></label>
  302. <?php
  303. $countries = arcane_registration_country_list()
  304. ?>
  305. <span class="cust_input">
  306. <select name="usercountry_id">
  307. <option value="0"><?php esc_html_e('- Select -','arcane') ?></option>
  308. <?php
  309. foreach ($countries as $country) {
  310. $selected="";
  311. if ($_POST['usercountry_id']==$country->id_country) { $selected="selected";}
  312.  
  313. if($country->name == 'Afghanistan'){
  314. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Afghanistan', 'arcane' ).'</option>';
  315. }elseif($country->name == 'Albania'){
  316. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Albania', 'arcane' ).'</option>';
  317. }elseif($country->name == 'Algeria'){
  318. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Algeria', 'arcane' ).'</option>';
  319. }elseif($country->name == 'American Samoa'){
  320. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'American Samoa', 'arcane' ).'</option>';
  321. }elseif($country->name == 'Andorra'){
  322. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Andorra', 'arcane' ).'</option>';
  323. }elseif($country->name == 'Angola'){
  324. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Angola', 'arcane' ).'</option>';
  325. }elseif($country->name == 'Anguilla'){
  326. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Anguilla', 'arcane' ).'</option>';
  327. }elseif($country->name == 'Antarctica'){
  328. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Antarctica', 'arcane' ).'</option>';
  329. }elseif($country->name == 'Antigua and Barbuda'){
  330. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Antigua and Barbuda', 'arcane' ).'</option>';
  331. }elseif($country->name == 'Argentina'){
  332. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Argentina', 'arcane' ).'</option>';
  333. }elseif($country->name == 'Armenia'){
  334. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Armenia', 'arcane' ).'</option>';
  335. }elseif($country->name == 'Aruba'){
  336. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Aruba', 'arcane' ).'</option>';
  337. }elseif($country->name == 'Australia'){
  338. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Australia', 'arcane' ).'</option>';
  339. }elseif($country->name == 'Austria'){
  340. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Austria', 'arcane' ).'</option>';
  341. }elseif($country->name == 'Azerbaijan'){
  342. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Azerbaijan', 'arcane' ).'</option>';
  343. }elseif($country->name == 'Bahamas'){
  344. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bahamas', 'arcane' ).'</option>';
  345. }elseif($country->name == 'Bahrain'){
  346. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bahrain', 'arcane' ).'</option>';
  347. }elseif($country->name == 'Bangladesh'){
  348. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bangladesh', 'arcane' ).'</option>';
  349. }elseif($country->name == 'Barbados'){
  350. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Barbados', 'arcane' ).'</option>';
  351. }elseif($country->name == 'Belarus'){
  352. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Belarus', 'arcane' ).'</option>';
  353. }elseif($country->name == 'Belgium'){
  354. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Belgium', 'arcane' ).'</option>';
  355. }elseif($country->name == 'Belize'){
  356. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Belize', 'arcane' ).'</option>';
  357. }elseif($country->name == 'Benin'){
  358. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Benin', 'arcane' ).'</option>';
  359. }elseif($country->name == 'Bermuda'){
  360. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bermuda', 'arcane' ).'</option>';
  361. }elseif($country->name == 'Bhutan'){
  362. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bhutan', 'arcane' ).'</option>';
  363. }elseif($country->name == 'Bolivia'){
  364. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bolivia', 'arcane' ).'</option>';
  365. }elseif($country->name == 'Bosnia and Herzegowina'){
  366. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bosnia and Herzegowina', 'arcane' ).'</option>';
  367. }elseif($country->name == 'Botswana'){
  368. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Botswana', 'arcane' ).'</option>';
  369. }elseif($country->name == 'Bouvet Island'){
  370. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bouvet Island', 'arcane' ).'</option>';
  371. }elseif($country->name == 'Brazil'){
  372. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Brazil', 'arcane' ).'</option>';
  373. }elseif($country->name == 'British Indian Ocean Territory'){
  374. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'British Indian Ocean Territory', 'arcane' ).'</option>';
  375. }elseif($country->name == 'Brunei Darussalam'){
  376. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Brunei Darussalam', 'arcane' ).'</option>';
  377. }elseif($country->name == 'Bulgaria'){
  378. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Bulgaria', 'arcane' ).'</option>';
  379. }elseif($country->name == 'Burkina Faso'){
  380. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Burkina Faso', 'arcane' ).'</option>';
  381. }elseif($country->name == 'Burundi'){
  382. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Burundi', 'arcane' ).'</option>';
  383. }elseif($country->name == 'Cambodia'){
  384. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cambodia', 'arcane' ).'</option>';
  385. }elseif($country->name == 'Cameroon'){
  386. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cameroon', 'arcane' ).'</option>';
  387. }elseif($country->name == 'Canada'){
  388. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Canada', 'arcane' ).'</option>';
  389. }elseif($country->name == 'Cape Verde'){
  390. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cape Verde', 'arcane' ).'</option>';
  391. }elseif($country->name == 'Cayman Islands'){
  392. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cayman Islands', 'arcane' ).'</option>';
  393. }elseif($country->name == 'Central African Republic'){
  394. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Central African Republic', 'arcane' ).'</option>';
  395. }elseif($country->name == 'Chad'){
  396. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Chad', 'arcane' ).'</option>';
  397. }elseif($country->name == 'Chile'){
  398. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Chile', 'arcane' ).'</option>';
  399. }elseif($country->name == 'China'){
  400. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'China', 'arcane' ).'</option>';
  401. }elseif($country->name == 'Christmas Island'){
  402. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Christmas Island', 'arcane' ).'</option>';
  403. }elseif($country->name == 'Cocos (Keeling) Islands'){
  404. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cocos (Keeling) Islands', 'arcane' ).'</option>';
  405. }elseif($country->name == 'Colombia'){
  406. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Colombia', 'arcane' ).'</option>';
  407. }elseif($country->name == 'Comoros'){
  408. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Comoros', 'arcane' ).'</option>';
  409. }elseif($country->name == 'Congo'){
  410. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Congo', 'arcane' ).'</option>';
  411. }elseif($country->name == 'Cook Islands'){
  412. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cook Islands', 'arcane' ).'</option>';
  413. }elseif($country->name == 'Costa Rica'){
  414. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Costa Rica', 'arcane' ).'</option>';
  415. }elseif($country->name == 'Cote D\'Ivoire'){
  416. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cote D\'Ivoire', 'arcane' ).'</option>';
  417. }elseif($country->name == 'Croatia'){
  418. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Croatia', 'arcane' ).'</option>';
  419. }elseif($country->name == 'Cuba'){
  420. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cuba', 'arcane' ).'</option>';
  421. }elseif($country->name == 'Cyprus'){
  422. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Cyprus', 'arcane' ).'</option>';
  423. }elseif($country->name == 'Czech Republic'){
  424. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Czech Republic', 'arcane' ).'</option>';
  425. }elseif($country->name == 'Denmark'){
  426. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Denmark', 'arcane' ).'</option>';
  427. }elseif($country->name == 'Djibouti'){
  428. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Djibouti', 'arcane' ).'</option>';
  429. }elseif($country->name == 'Dominica'){
  430. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Dominica', 'arcane' ).'</option>';
  431. }elseif($country->name == 'Dominican Republic'){
  432. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Dominican Republic', 'arcane' ).'</option>';
  433. }elseif($country->name == 'East Timor'){
  434. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'East Timor', 'arcane' ).'</option>';
  435. }elseif($country->name == 'Ecuador'){
  436. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Ecuador', 'arcane' ).'</option>';
  437. }elseif($country->name == 'Egypt'){
  438. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Egypt', 'arcane' ).'</option>';
  439. }elseif($country->name == 'El Salvador'){
  440. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'El Salvador', 'arcane' ).'</option>';
  441. }elseif($country->name == 'Equatorial Guinea'){
  442. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Equatorial Guinea', 'arcane' ).'</option>';
  443. }elseif($country->name == 'Eritrea'){
  444. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Eritrea', 'arcane' ).'</option>';
  445. }elseif($country->name == 'Estonia'){
  446. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Estonia', 'arcane' ).'</option>';
  447. }elseif($country->name == 'Ethiopia'){
  448. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Ethiopia', 'arcane' ).'</option>';
  449. }elseif($country->name == 'Falkland Islands (Malvinas)'){
  450. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Falkland Islands (Malvinas)', 'arcane' ).'</option>';
  451. }elseif($country->name == 'Faroe Islands'){
  452. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Faroe Islands', 'arcane' ).'</option>';
  453. }elseif($country->name == 'Fiji'){
  454. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Fiji', 'arcane' ).'</option>';
  455. }elseif($country->name == 'Finland'){
  456. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Finland', 'arcane' ).'</option>';
  457. }elseif($country->name == 'France'){
  458. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'France', 'arcane' ).'</option>';
  459. }elseif($country->name == 'France, Metropolitan'){
  460. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'France, Metropolitan', 'arcane' ).'</option>';
  461. }elseif($country->name == 'French Guiana'){
  462. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'French Guiana', 'arcane' ).'</option>';
  463. }elseif($country->name == 'French Polynesia'){
  464. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'French Polynesia', 'arcane' ).'</option>';
  465. }elseif($country->name == 'French Southern Territories'){
  466. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'French Southern Territories', 'arcane' ).'</option>';
  467. }elseif($country->name == 'Gabon'){
  468. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Gabon', 'arcane' ).'</option>';
  469. }elseif($country->name == 'Gambia'){
  470. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Gambia', 'arcane' ).'</option>';
  471. }elseif($country->name == 'Georgia'){
  472. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Georgia', 'arcane' ).'</option>';
  473. }elseif($country->name == 'Germany'){
  474. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Germany', 'arcane' ).'</option>';
  475. }elseif($country->name == 'Ghana'){
  476. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Ghana', 'arcane' ).'</option>';
  477. }elseif($country->name == 'Gibraltar'){
  478. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Gibraltar', 'arcane' ).'</option>';
  479. }elseif($country->name == 'Greece'){
  480. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Greece', 'arcane' ).'</option>';
  481. }elseif($country->name == 'Greenland'){
  482. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Greenland', 'arcane' ).'</option>';
  483. }elseif($country->name == 'Grenada'){
  484. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Grenada', 'arcane' ).'</option>';
  485. }elseif($country->name == 'Guadeloupe'){
  486. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guadeloupe', 'arcane' ).'</option>';
  487. }elseif($country->name == 'Guam'){
  488. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guam', 'arcane' ).'</option>';
  489. }elseif($country->name == 'Guatemala'){
  490. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guatemala', 'arcane' ).'</option>';
  491. }elseif($country->name == 'Guinea'){
  492. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guinea', 'arcane' ).'</option>';
  493. }elseif($country->name == 'Guinea-bissau'){
  494. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guinea-bissau', 'arcane' ).'</option>';
  495. }elseif($country->name == 'Guyana'){
  496. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Guyana', 'arcane' ).'</option>';
  497. }elseif($country->name == 'Haiti'){
  498. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Haiti', 'arcane' ).'</option>';
  499. }elseif($country->name == 'Heard and Mc Donald Islands'){
  500. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Heard and Mc Donald Islands', 'arcane' ).'</option>';
  501. }elseif($country->name == 'Honduras'){
  502. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Honduras', 'arcane' ).'</option>';
  503. }elseif($country->name == 'Hong Kong'){
  504. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Hong Kong', 'arcane' ).'</option>';
  505. }elseif($country->name == 'Hungary'){
  506. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Hungary', 'arcane' ).'</option>';
  507. }elseif($country->name == 'Iceland'){
  508. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Iceland', 'arcane' ).'</option>';
  509. }elseif($country->name == 'India'){
  510. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'India', 'arcane' ).'</option>';
  511. }elseif($country->name == 'Indonesia'){
  512. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Indonesia', 'arcane' ).'</option>';
  513. }elseif($country->name == 'Iran (Islamic Republic of)'){
  514. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Iran (Islamic Republic of)', 'arcane' ).'</option>';
  515. }elseif($country->name == 'Iraq'){
  516. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Iraq', 'arcane' ).'</option>';
  517. }elseif($country->name == 'Ireland'){
  518. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Ireland', 'arcane' ).'</option>';
  519. }elseif($country->name == 'Israel'){
  520. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Israel', 'arcane' ).'</option>';
  521. }elseif($country->name == 'Italy'){
  522. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Italy', 'arcane' ).'</option>';
  523. }elseif($country->name == 'Jamaica'){
  524. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Jamaica', 'arcane' ).'</option>';
  525. }elseif($country->name == 'Japan'){
  526. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Japan', 'arcane' ).'</option>';
  527. }elseif($country->name == 'Jordan'){
  528. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Jordan', 'arcane' ).'</option>';
  529. }elseif($country->name == 'Kazakhstan'){
  530. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Kazakhstan', 'arcane' ).'</option>';
  531. }elseif($country->name == 'Kenya'){
  532. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Kenya', 'arcane' ).'</option>';
  533. }elseif($country->name == 'Kiribati'){
  534. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Kiribati', 'arcane' ).'</option>';
  535. }elseif($country->name == 'Korea, Democratic People\'s Republic of'){
  536. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Korea, Democratic People\'s Republic of', 'arcane' ).'</option>';
  537. }elseif($country->name == 'Korea, Republic of'){
  538. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Korea, Republic of', 'arcane' ).'</option>';
  539. }elseif($country->name == 'Kuwait'){
  540. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Kuwait', 'arcane' ).'</option>';
  541. }elseif($country->name == 'Kyrgyzstan'){
  542. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Kyrgyzstan', 'arcane' ).'</option>';
  543. }elseif($country->name == 'Lao People\'s Democratic Republic'){
  544. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Lao People\'s Democratic Republic', 'arcane' ).'</option>';
  545. }elseif($country->name == 'Latvia'){
  546. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Latvia', 'arcane' ).'</option>';
  547. }elseif($country->name == 'Lebanon'){
  548. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Lebanon', 'arcane' ).'</option>';
  549. }elseif($country->name == 'Lesotho'){
  550. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Lesotho', 'arcane' ).'</option>';
  551. }elseif($country->name == 'Liberia'){
  552. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Liberia', 'arcane' ).'</option>';
  553. }elseif($country->name == 'Libyan Arab Jamahiriya'){
  554. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Libyan Arab Jamahiriya', 'arcane' ).'</option>';
  555. }elseif($country->name == 'Liechtenstein'){
  556. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Liechtenstein', 'arcane' ).'</option>';
  557. }elseif($country->name == 'Lithuania'){
  558. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Lithuania', 'arcane' ).'</option>';
  559. }elseif($country->name == 'Luxembourg'){
  560. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Luxembourg', 'arcane' ).'</option>';
  561. }elseif($country->name == 'Macau'){
  562. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Macau', 'arcane' ).'</option>';
  563. }elseif($country->name == 'Macedonia, The Former Yugoslav Republic of'){
  564. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Macedonia, The Former Yugoslav Republic of', 'arcane' ).'</option>';
  565. }elseif($country->name == 'Madagascar'){
  566. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Madagascar', 'arcane' ).'</option>';
  567. }elseif($country->name == 'Malawi'){
  568. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Malawi', 'arcane' ).'</option>';
  569. }elseif($country->name == 'Malaysia'){
  570. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Malaysia', 'arcane' ).'</option>';
  571. }elseif($country->name == 'Maldives'){
  572. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Maldives', 'arcane' ).'</option>';
  573. }elseif($country->name == 'Mali'){
  574. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mali', 'arcane' ).'</option>';
  575. }elseif($country->name == 'Malta'){
  576. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Malta', 'arcane' ).'</option>';
  577. }elseif($country->name == 'Marshall Islands'){
  578. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Marshall Islands', 'arcane' ).'</option>';
  579. }elseif($country->name == 'Martinique'){
  580. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Martinique', 'arcane' ).'</option>';
  581. }elseif($country->name == 'Mauritania'){
  582. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mauritania', 'arcane' ).'</option>';
  583. }elseif($country->name == 'Mauritius'){
  584. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mauritius', 'arcane' ).'</option>';
  585. }elseif($country->name == 'Mayotte'){
  586. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mayotte', 'arcane' ).'</option>';
  587. }elseif($country->name == 'Mexico'){
  588. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mexico', 'arcane' ).'</option>';
  589. }elseif($country->name == 'Micronesia, Federated States of'){
  590. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Micronesia, Federated States of', 'arcane' ).'</option>';
  591. }elseif($country->name == 'Moldova, Republic of'){
  592. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Moldova, Republic of', 'arcane' ).'</option>';
  593. }elseif($country->name == 'Monaco'){
  594. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Monaco', 'arcane' ).'</option>';
  595. }elseif($country->name == 'Mongolia'){
  596. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mongolia', 'arcane' ).'</option>';
  597. }elseif($country->name == 'Montserrat'){
  598. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Montserrat', 'arcane' ).'</option>';
  599. }elseif($country->name == 'Morocco'){
  600. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Morocco', 'arcane' ).'</option>';
  601. }elseif($country->name == 'Mozambique'){
  602. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Mozambique', 'arcane' ).'</option>';
  603. }elseif($country->name == 'Myanmar'){
  604. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Myanmar', 'arcane' ).'</option>';
  605. }elseif($country->name == 'Namibia'){
  606. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Namibia', 'arcane' ).'</option>';
  607. }elseif($country->name == 'Nauru'){
  608. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Nauru', 'arcane' ).'</option>';
  609. }elseif($country->name == 'Nepal'){
  610. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Nepal', 'arcane' ).'</option>';
  611. }elseif($country->name == 'Netherlands'){
  612. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Netherlands', 'arcane' ).'</option>';
  613. }elseif($country->name == 'Netherlands Antilles'){
  614. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Netherlands Antilles', 'arcane' ).'</option>';
  615. }elseif($country->name == 'New Caledonia'){
  616. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'New Caledonia', 'arcane' ).'</option>';
  617. }elseif($country->name == 'New Zealand'){
  618. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'New Zealand', 'arcane' ).'</option>';
  619. }elseif($country->name == 'Nicaragua'){
  620. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Nicaragua', 'arcane' ).'</option>';
  621. }elseif($country->name == 'Niger'){
  622. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Niger', 'arcane' ).'</option>';
  623. }elseif($country->name == 'Nigeria'){
  624. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Nigeria', 'arcane' ).'</option>';
  625. }elseif($country->name == 'Niue'){
  626. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Niue', 'arcane' ).'</option>';
  627. }elseif($country->name == 'Norfolk Island'){
  628. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Norfolk Island', 'arcane' ).'</option>';
  629. }elseif($country->name == 'Northern Mariana Islands'){
  630. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Northern Mariana Islands', 'arcane' ).'</option>';
  631. }elseif($country->name == 'Norway'){
  632. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Norway', 'arcane' ).'</option>';
  633. }elseif($country->name == 'Oman'){
  634. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Oman', 'arcane' ).'</option>';
  635. }elseif($country->name == 'Pakistan'){
  636. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Pakistan', 'arcane' ).'</option>';
  637. }elseif($country->name == 'Palau'){
  638. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Palau', 'arcane' ).'</option>';
  639. }elseif($country->name == 'Panama'){
  640. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Panama', 'arcane' ).'</option>';
  641. }elseif($country->name == 'Papua New Guinea'){
  642. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Papua New Guinea', 'arcane' ).'</option>';
  643. }elseif($country->name == 'Paraguay'){
  644. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Paraguay', 'arcane' ).'</option>';
  645. }elseif($country->name == 'Peru'){
  646. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Peru', 'arcane' ).'</option>';
  647. }elseif($country->name == 'Philippines'){
  648. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Philippines', 'arcane' ).'</option>';
  649. }elseif($country->name == 'Pitcairn'){
  650. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Pitcairn', 'arcane' ).'</option>';
  651. }elseif($country->name == 'Poland'){
  652. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Poland', 'arcane' ).'</option>';
  653. }elseif($country->name == 'Portugal'){
  654. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Portugal', 'arcane' ).'</option>';
  655. }elseif($country->name == 'Puerto Rico'){
  656. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Puerto Rico', 'arcane' ).'</option>';
  657. }elseif($country->name == 'Qatar'){
  658. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Qatar', 'arcane' ).'</option>';
  659. }elseif($country->name == 'Reunion'){
  660. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Reunion', 'arcane' ).'</option>';
  661. }elseif($country->name == 'Romania'){
  662. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Romania', 'arcane' ).'</option>';
  663. }elseif($country->name == 'Russian Federation'){
  664. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Russian Federation', 'arcane' ).'</option>';
  665. }elseif($country->name == 'Rwanda'){
  666. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Rwanda', 'arcane' ).'</option>';
  667. }elseif($country->name == 'Saint Kitts and Nevis'){
  668. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Saint Kitts and Nevis', 'arcane' ).'</option>';
  669. }elseif($country->name == 'Saint Lucia'){
  670. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Saint Lucia', 'arcane' ).'</option>';
  671. }elseif($country->name == 'Saint Vincent and the Grenadines'){
  672. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Saint Vincent and the Grenadines', 'arcane' ).'</option>';
  673. }elseif($country->name == 'Samoa'){
  674. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Samoa', 'arcane' ).'</option>';
  675. }elseif($country->name == 'San Marino'){
  676. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'San Marino', 'arcane' ).'</option>';
  677. }elseif($country->name == 'Sao Tome and Principe'){
  678. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Sao Tome and Principe', 'arcane' ).'</option>';
  679. }elseif($country->name == 'Saudi Arabia'){
  680. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Saudi Arabia', 'arcane' ).'</option>';
  681. }elseif($country->name == 'Senegal'){
  682. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Senegal', 'arcane' ).'</option>';
  683. }elseif($country->name == 'Serbia'){
  684. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Serbia', 'arcane' ).'</option>';
  685. }elseif($country->name == 'Seychelles'){
  686. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Seychelles', 'arcane' ).'</option>';
  687. }elseif($country->name == 'Sierra Leone'){
  688. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Sierra Leone', 'arcane' ).'</option>';
  689. }elseif($country->name == 'Singapore'){
  690. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Singapore', 'arcane' ).'</option>';
  691. }elseif($country->name == 'Slovakia'){
  692. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Slovakia', 'arcane' ).'</option>';
  693. }elseif($country->name == 'Slovenia'){
  694. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Slovenia', 'arcane' ).'</option>';
  695. }elseif($country->name == 'Solomon Islands'){
  696. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Solomon Islands', 'arcane' ).'</option>';
  697. }elseif($country->name == 'Somalia'){
  698. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Somalia', 'arcane' ).'</option>';
  699. }elseif($country->name == 'South Africa'){
  700. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'South Africa', 'arcane' ).'</option>';
  701. }elseif($country->name == 'South Georgia and the South Sandwich Islands'){
  702. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'South Georgia and the South Sandwich Islands', 'arcane' ).'</option>';
  703. }elseif($country->name == 'Spain'){
  704. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Spain', 'arcane' ).'</option>';
  705. }elseif($country->name == 'Sri Lanka'){
  706. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Sri Lanka', 'arcane' ).'</option>';
  707. }elseif($country->name == 'St. Helena'){
  708. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'St. Helena', 'arcane' ).'</option>';
  709. }elseif($country->name == 'St. Pierre and Miquelon'){
  710. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'St. Pierre and Miquelon', 'arcane' ).'</option>';
  711. }elseif($country->name == 'Sudan'){
  712. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Sudan', 'arcane' ).'</option>';
  713. }elseif($country->name == 'Suriname'){
  714. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Suriname', 'arcane' ).'</option>';
  715. }elseif($country->name == 'Svalbard and Jan Mayen Islands'){
  716. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Svalbard and Jan Mayen Islands', 'arcane' ).'</option>';
  717. }elseif($country->name == 'Swaziland'){
  718. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Swaziland', 'arcane' ).'</option>';
  719. }elseif($country->name == 'Sweden'){
  720. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Sweden', 'arcane' ).'</option>';
  721. }elseif($country->name == 'Switzerland'){
  722. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Switzerland', 'arcane' ).'</option>';
  723. }elseif($country->name == 'Syrian Arab Republic'){
  724. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Syrian Arab Republic', 'arcane' ).'</option>';
  725. }elseif($country->name == 'Taiwan'){
  726. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Taiwan', 'arcane' ).'</option>';
  727. }elseif($country->name == 'Tajikistan'){
  728. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tajikistan', 'arcane' ).'</option>';
  729. }elseif($country->name == 'Tanzania, United Republic of'){
  730. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tanzania, United Republic of', 'arcane' ).'</option>';
  731. }elseif($country->name == 'Thailand'){
  732. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Thailand', 'arcane' ).'</option>';
  733. }elseif($country->name == 'Togo'){
  734. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Togo', 'arcane' ).'</option>';
  735. }elseif($country->name == 'Tokelau'){
  736. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tokelau', 'arcane' ).'</option>';
  737. }elseif($country->name == 'Tonga'){
  738. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tonga', 'arcane' ).'</option>';
  739. }elseif($country->name == 'Trinidad and Tobago'){
  740. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Trinidad and Tobago', 'arcane' ).'</option>';
  741. }elseif($country->name == 'Tunisia'){
  742. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tunisia', 'arcane' ).'</option>';
  743. }elseif($country->name == 'Turkey'){
  744. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Turkey', 'arcane' ).'</option>';
  745. }elseif($country->name == 'Turkmenistan'){
  746. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Turkmenistan', 'arcane' ).'</option>';
  747. }elseif($country->name == 'Turks and Caicos Islands'){
  748. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Turks and Caicos Islands', 'arcane' ).'</option>';
  749. }elseif($country->name == 'Tuvalu'){
  750. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Tuvalu', 'arcane' ).'</option>';
  751. }elseif($country->name == 'Uganda'){
  752. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Uganda', 'arcane' ).'</option>';
  753. }elseif($country->name == 'Ukraine'){
  754. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Ukraine', 'arcane' ).'</option>';
  755. }elseif($country->name == 'United Arab Emirates'){
  756. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'United Arab Emirates', 'arcane' ).'</option>';
  757. }elseif($country->name == 'United Kingdom'){
  758. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'United Kingdom', 'arcane' ).'</option>';
  759. }elseif($country->name == 'United States'){
  760. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'United States', 'arcane' ).'</option>';
  761. }elseif($country->name == 'United States Minor Outlying Islands'){
  762. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'United States Minor Outlying Islands', 'arcane' ).'</option>';
  763. }elseif($country->name == 'Uruguay'){
  764. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Uruguay', 'arcane' ).'</option>';
  765. }elseif($country->name == 'Uzbekistan'){
  766. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Uzbekistan', 'arcane' ).'</option>';
  767. }elseif($country->name == 'Vanuatu'){
  768. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Vanuatu', 'arcane' ).'</option>';
  769. }elseif($country->name == 'Vatican City State (Holy See)'){
  770. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Vatican City State (Holy See)', 'arcane' ).'</option>';
  771. }elseif($country->name == 'Venezuela'){
  772. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Venezuela', 'arcane' ).'</option>';
  773. }elseif($country->name == 'Viet Nam'){
  774. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Viet Nam', 'arcane' ).'</option>';
  775. }elseif($country->name == 'Virgin Islands (British)'){
  776. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Virgin Islands (British)', 'arcane' ).'</option>';
  777. }elseif($country->name == 'Virgin Islands (U.S.)'){
  778. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Virgin Islands (U.S.)', 'arcane' ).'</option>';
  779. }elseif($country->name == 'Wallis and Futuna Islands'){
  780. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Wallis and Futuna Islands', 'arcane' ).'</option>';
  781. }elseif($country->name == 'Western Sahara'){
  782. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Western Sahara', 'arcane' ).'</option>';
  783. }elseif($country->name == 'Yemen'){
  784. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Yemen', 'arcane' ).'</option>';
  785. }elseif($country->name == 'Zaire'){
  786. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Zaire', 'arcane' ).'</option>';
  787. }elseif($country->name == 'Zambia'){
  788. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Zambia', 'arcane' ).'</option>';
  789. }elseif($country->name == 'Zimbabwe'){
  790. echo '<option '.$selected.' value='.esc_attr($country->id_country).'>'. esc_html__( 'Zimbabwe', 'arcane' ).'</option>';
  791.  
  792. }
  793. }
  794. ?>
  795. </select>
  796. </span>
  797. </p>
  798. <p>
  799. <label><?php esc_html_e("City:", 'arcane'); ?></label>
  800. <span class="cust_input">
  801. <input type="text" name="user_city" id="user_city" class="input" size="25" value="<?php if(isset($_POST['user_city'])){echo esc_attr($_POST['user_city']); } ?>" />
  802. </span>
  803. </p>
  804.  
  805. <?php
  806. //tusi
  807. $required_marker= " *";
  808. if (is_array($custom_profile_fields)) {
  809. //print_r ($custom_profile_fields);
  810. foreach ($custom_profile_fields as $field) {
  811. if($field->id == '1') continue;
  812. if ($field->type == "textbox") {
  813. if ($field->is_required == 1) {
  814. $additional_text = $required_marker;
  815. } else {
  816. $additional_text ="";
  817. }
  818. ?>
  819. <p>
  820. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  821. <span class="cust_input">
  822. <input type="text" name="custom_fields[<?php echo esc_attr($field->id); ?>]" id="custom_fields[<?php echo esc_attr($field->id); ?>]" class="input" size="20" />
  823. </span>
  824. </p>
  825. <?php
  826. } elseif ($field->type == "checkbox") {
  827. if ($field->is_required == 1) {
  828. $additional_text = $required_marker;
  829. } else {
  830. $additional_text ="";
  831. }
  832. ?>
  833. <p>
  834. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  835. <span class="cust_input">
  836. <?php
  837. foreach ($custom_profile_fields as $tempfield) {
  838. if ($tempfield->parent_id == $field->id) {
  839. echo '<input type ="checkbox" name="custom_fields['.esc_attr($field->id).']['.esc_attr($tempfield->id).']"';
  840. if ($tempfield->is_default_option == 1) {
  841. echo ' checked="yes"';
  842. }
  843. echo '>'.esc_attr($tempfield->name)."<br />";
  844. }
  845. }
  846.  
  847. ?>
  848. </span>
  849. </p>
  850.  
  851. <?php
  852. }elseif ($field->type == "selectbox") {
  853. if ($field->is_required == 1) {
  854. $additional_text = $required_marker;
  855. } else {
  856. $additional_text ="";
  857. }
  858. ?>
  859. <p>
  860. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  861. <span class="cust_input">
  862. <select name="<?php echo 'custom_fields['.$field->id.']'; ?>">
  863. <?php
  864. foreach ($custom_profile_fields as $tempfield) {
  865. if ($tempfield->parent_id == $field->id) {
  866. //selected
  867. $selected="";
  868. if ($tempfield->is_default_option == 1) {
  869. $selected = 'selected';
  870. }
  871. echo '<option '.esc_attr($selected).' value='.esc_attr($tempfield->id).'>'.esc_attr($tempfield->name).'</option>';
  872.  
  873. }
  874. }
  875.  
  876. ?>
  877. </select>
  878. </span>
  879. </p>
  880.  
  881. <?php
  882. }elseif ($field->type == "radio") {
  883. if ($field->is_required == 1) {
  884. $additional_text = $required_marker;
  885. } else {
  886. $additional_text ="";
  887. }
  888. ?>
  889. <p>
  890. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  891. <span class="cust_input">
  892. <?php
  893. foreach ($custom_profile_fields as $tempfield) {
  894. if ($tempfield->parent_id == $field->id) {
  895. //selected
  896. $selected="";
  897. if ($tempfield->is_default_option == 1) {
  898. $selected = 'checked="yes"';
  899. }
  900. echo '<input type="radio" value='.esc_attr($tempfield->id).' name="custom_fields['.esc_attr($field->id).']" '.esc_attr($selected).'>'.esc_attr($tempfield->name).'<br />';
  901.  
  902. }
  903. }
  904.  
  905. ?>
  906. </span>
  907. </p>
  908.  
  909. <?php
  910. }elseif ($field->type == "number") {
  911. if ($field->is_required == 1) {
  912. $additional_text = $required_marker;
  913. } else {
  914. $additional_text ="";
  915. }
  916. ?>
  917. <p>
  918. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  919. <span class="cust_input">
  920. <input type="text" name="custom_fields[<?php echo esc_attr($field->id); ?>]" id="custom_fields[<?php echo esc_attr($field->id); ?>]" class="input limit_to_numbers" size="20" />
  921. </span>
  922. </p>
  923. <?php
  924. } elseif ($field->type == "url") {
  925. if ($field->is_required == 1) {
  926. $additional_text = $required_marker;
  927. } else {
  928. $additional_text ="";
  929. }
  930. ?>
  931. <p>
  932. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  933. <span class="cust_input">
  934. <input type="text" name="custom_fields[<?php echo esc_attr($field->id); ?>]" id="custom_fields[<?php echo esc_attr($field->id); ?>]" class="input limit_to_url" size="20" />
  935. </span>
  936. </p>
  937. <?php
  938. } elseif ($field->type == "textarea") {
  939. if ($field->is_required == 1) {
  940. $additional_text = $required_marker;
  941. } else {
  942. $additional_text ="";
  943. }
  944. ?>
  945. <p>
  946. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  947. <span class="cust_input">
  948. <textarea name="custom_fields[<?php echo esc_attr($field->id); ?>]" id="custom_fields[<?php echo esc_attr($field->id); ?>]" class="input textarea" size="20" /></textarea><br />
  949. </span>
  950. </p>
  951. <?php
  952. }elseif ($field->type == "multiselectbox") {
  953. if ($field->is_required == 1) {
  954. $additional_text = $required_marker;
  955. } else {
  956. $additional_text ="";
  957. }
  958. ?>
  959. <p>
  960. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  961. <span class="cust_input">
  962. <?php
  963. foreach ($custom_profile_fields as $tempfield) {
  964. if ($tempfield->parent_id == $field->id) {
  965. echo '<input type ="checkbox" name="custom_fields['.esc_attr($field->id).']['.esc_attr($tempfield->id).']"';
  966. if ($tempfield->is_default_option == 1) {
  967. echo ' checked="yes"';
  968. }
  969. echo '>'.esc_attr($tempfield->name)."<br />";
  970. }
  971. }
  972.  
  973. ?>
  974. </span>
  975. </p>
  976.  
  977. <?php
  978. }elseif ($field->type == "datebox") {
  979.  
  980.  
  981. if ($field->is_required == 1) {
  982. $additional_text = $required_marker;
  983. } else {
  984. $additional_text ="";
  985. }
  986. ?>
  987. <p>
  988. <label><?php echo esc_attr($field->name); ?><?php echo esc_attr($additional_text); ?></label>
  989. <span class="cust_input">
  990. <?php
  991. echo '<input type ="text" id="datepicker_'.esc_attr($field->id).'" name="custom_fields['.esc_attr($field->id).']">';
  992. ?>
  993. </span>
  994. </p>
  995.  
  996. <?php
  997. }
  998. }
  999. }
  1000. ?>
  1001.  
  1002. <?php wp_nonce_field('arcane_new_user','arcane_new_user_nonce', true, true ); ?>
  1003. <p class="checkbox-reg">
  1004.  
  1005. <label><input type="checkbox" name="agree" id="signupAgree" /> <span for="signupAgree"><?php echo esc_html($options['eighteen']); ?>
  1006. <a href="<?php if(!empty($options['terms'])){echo esc_url($options['terms']);}else{echo "#";} ?>" target="_blank"><?php esc_html_e("Terms & Conditions!", 'arcane') ?></a></span></label>
  1007.  
  1008. </p>
  1009.  
  1010. <p class="captcha-reg">
  1011. <?php do_action('register_form'); ?>
  1012. </p>
  1013.  
  1014. <p class="submit"><button name="wp-submit" type="submit" id="wp-submit" class="button-green button-small" > <i class="fas fa-sign-in-alt"></i> <?php esc_html_e('Sign up today!', 'arcane'); ?></button></p>
  1015.  
  1016. <input type="hidden" name="lwa" value="1" />
  1017. </form>
  1018. <?php } ?>
  1019.  
  1020. </div>
  1021. </div>
  1022. </div>
  1023.  
  1024. </div>
  1025.  
  1026.  
  1027. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement