Changeset 1755045
- Timestamp:
- 10/30/2017 09:12:08 AM (8 years ago)
- Location:
- wp2act/trunk
- Files:
-
- 3 edited
-
CRMAddon-Teaser.php (modified) (4 diffs)
-
frontend-form.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp2act/trunk/CRMAddon-Teaser.php
r1754990 r1755045 365 365 foreach ($contactInfo as $k=>$v){ 366 366 $key = sanitize_key($v['name']); 367 if($key == 'email Address'){367 if($key == 'emailaddress'){ 368 368 $sendField[$key] = sanitize_email($v['value']); 369 }elseif ($key == 'first Name' || $key == 'lastName'){369 }elseif ($key == 'firstname' || $key == 'lastname'){ 370 370 $sendField[$key] = sanitize_user($v['value'],true); 371 371 }else{ … … 380 380 $emailArrInfo = array(); 381 381 $bearer = $_SESSION['act_bearer']; 382 $email = $sendField['email Address'];382 $email = $sendField['emailaddress']; 383 383 $filter = "(emailAddress eq '{$email}' )"; 384 384 $filter = urlencode($filter); … … 415 415 $updateInfo = array( 416 416 "id"=>$id, 417 "firstName"=>$sendField['first Name'],418 "lastName"=>$sendField['last Name'],419 "emailAddress"=>$sendField['mobile Phone'],420 "mobilePhone"=>$sendField['email Address'],417 "firstName"=>$sendField['firstname'], 418 "lastName"=>$sendField['lastname'], 419 "emailAddress"=>$sendField['mobilephone'], 420 "mobilePhone"=>$sendField['emailaddress'], 421 421 "homeAddress" =>array( 422 422 "country"=>$sendField['country'], 423 423 "city"=>$sendField['city'], 424 "postalCode"=>$sendField['postal Code'],424 "postalCode"=>$sendField['postalcode'], 425 425 ) 426 426 ); … … 439 439 $postInfo = array( 440 440 "isUser"=>true, 441 "firstName"=>$sendField['first Name'],442 "lastName" =>$sendField['last Name'],443 "emailAddress"=>$sendField['email Address'],444 "mobilePhone" =>$sendField['mobile Phone'],441 "firstName"=>$sendField['firstname'], 442 "lastName" =>$sendField['lastname'], 443 "emailAddress"=>$sendField['emailaddress'], 444 "mobilePhone" =>$sendField['mobilephone'], 445 445 "homeAddress" =>array( 446 446 "country"=>$sendField['country'], 447 447 "city"=>$sendField['city'], 448 "postalCode"=>$sendField['postal Code'],448 "postalCode"=>$sendField['postalcode'], 449 449 ) 450 450 ); -
wp2act/trunk/frontend-form.php
r1754990 r1755045 16 16 <label for="input_first_name" class="col-sm-3 control-label"><?php _e('crmaddon_firstName','crmaddon_teaser');?></label> 17 17 <div class="col-sm-5"> 18 <input name="first Name" type="text" id="input_first_name" class="form-control" placeholder="<?php _e('crmaddon_firstName','crmaddon_teaser');?>"/>18 <input name="firstname" type="text" id="input_first_name" class="form-control" placeholder="<?php _e('crmaddon_firstName','crmaddon_teaser');?>"/> 19 19 </div> 20 20 </div> … … 22 22 <label for="input_last_name" class="col-sm-3 control-label"><?php _e('crmaddon_lastName','crmaddon_teaser');?></label> 23 23 <div class="col-sm-5"> 24 <input name="last Name" type="text" id="input_last_name" class="form-control" placeholder="<?php _e('crmaddon_lastName','crmaddon_teaser');?>"/>24 <input name="lastname" type="text" id="input_last_name" class="form-control" placeholder="<?php _e('crmaddon_lastName','crmaddon_teaser');?>"/> 25 25 </div> 26 26 </div> … … 28 28 <label for="input_mobilePhone" class="col-sm-3 control-label"><?php _e('crmaddon_mobileName','crmaddon_teaser');?></label> 29 29 <div class="col-sm-5"> 30 <input name="mobile Phone" type="text" id="input_mobilePhone" class="form-control" placeholder="<?php _e('crmaddon_mobileName','crmaddon_teaser');?>"/>30 <input name="mobilephone" type="text" id="input_mobilePhone" class="form-control" placeholder="<?php _e('crmaddon_mobileName','crmaddon_teaser');?>"/> 31 31 </div> 32 32 </div> … … 34 34 <label for="input_emailAddress" class="col-sm-3 control-label"><?php _e('crmaddon_email','crmaddon_teaser');?></label> 35 35 <div class="col-sm-5"> 36 <input name="email Address" type="email" id="input_emailAddress" class="form-control" placeholder="<?php _e('crmaddon_email','crmaddon_teaser');?>"/>36 <input name="emailaddress" type="email" id="input_emailAddress" class="form-control" placeholder="<?php _e('crmaddon_email','crmaddon_teaser');?>"/> 37 37 </div> 38 38 </div> … … 53 53 <label for="input_postalCode" class="col-sm-3 control-label">Zip</label> 54 54 <div class="col-sm-5"> 55 <input name="postal Code" type="text" id="input_postalCode" class="form-control" placeholder="Zip"/>55 <input name="postalcode" type="text" id="input_postalCode" class="form-control" placeholder="Zip"/> 56 56 </div> 57 57 </div> -
wp2act/trunk/readme.txt
r1755005 r1755045 1 1 === WP2Act === 2 2 Contributors: crmaddon 3 Keyword: act,wp2act,crmaddon-contact,contact-information4 Term: act,wp2act,crmaddon-contact,contact-information5 3 Tags: act,wp2act,crmaddon-contact,contact-information 6 4 Requires at least: 4.6
Note: See TracChangeset
for help on using the changeset viewer.