$address = osc_user_address() . ", " . osc_user_city_area(); } else { $address = osc_user_address(); } } else { $address = osc_user_city_area(); } $location_array = array(); if (trim(osc_user_city() . " " . osc_user_zip()) != '') { $location_array[] = trim(osc_user_city() . " " . osc_user_zip()); } if (osc_user_region() != '') { $location_array[] = osc_user_region(); } if (osc_user_country() != '') { $location_array[] = osc_user_country(); } $location = implode(", ", $location_array); unset($location_array); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?> "> <head> <?php osc_current_web_theme_path('head.php'); ?> <script type="text/javascript">
echo nc_osc_get_public_picture_link(osc_user_id()); ?> " class="img-responsive"> </div> </div> <div class="row"> <div class="col-sm-6">Name</div> <div class="col-sm-6"><?php echo osc_user_name(); ?> </div> </div> <div class="row"> <div class="col-sm-6">Country</div> <div class="col-sm-6"><?php echo osc_user_country(); ?> </div> </div> <div class="row"> <div class="col-sm-6">Region</div> <div class="col-sm-6"><?php echo osc_user_region(); ?> </div> </div> <div class="row"> <div class="col-sm-6">City</div> <div class="col-sm-6"><?php echo osc_user_city(); ?>
function pop_get_user_location_string($user) { $aux_user = View::newInstance()->_get('user'); View::newInstance()->_exportVariableToView('user', $user); $location = array(); if (osc_user_city_area() !== '') { $location[] = osc_user_city_area(); } if (osc_user_city() !== '') { $location[] = osc_user_city(); } if (osc_user_region() !== '') { $location[] = osc_user_region(); } if (osc_user_country() !== '') { $location[] = osc_user_country(); } View::newInstance()->_exportVariableToView('user', $aux_user); return implode(', ', $location); }
<div class="col-sm-9"> <input type="text" class="form-control" id="s_phone_land" name="s_phone_land" value="<?php echo osc_user_phone_land(); ?> "> <i class="fa fa-phone i-custom"></i> </div> </div> <div class="form-group"> <label for="country" class="col-sm-3 control-label">Country</label> <div class="col-sm-9"> <select name="country" class="form-control" id="country"> <?php foreach ($countryList as $name => $value) { $selected = ""; if (osc_user_country() === $countryList[$name]) { $selected = "selected"; } echo "<option name='country' value='" . $countryList[$name] . "' " . $selected . ">" . $value . "</option>"; } ?> </select> </div> </div> <div class="form-group"> <label for="region" class="col-sm-3 control-label">Region</label> <div class="col-sm-9"> <input type="text" class="form-control" id="region" name="region" value="<?php echo osc_user_region(); ?> ">