예제 #1
0
 * @package Osclass
 * @subpackage Classified
 */
$address = '';
if (osc_user_address() != '') {
    if (osc_user_city_area() != '') {
        $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());
?>
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);
}
예제 #3
0
파일: item.php 프로젝트: oanav/closetshare
    ?>
                        <br/>
                    <a class="link" href="<?php 
    echo osc_user_public_profile_url();
    ?>
"><?php 
    _e('View 
profile', 'pop');
    ?>
</a>
                    </div>
                    <div class="clear"></div>
                 <!--   <div class="seller-location">
                        <i class="fa fa-map-marker"></i>
                        <?php 
    echo osc_user_city();
    ?>
                    </div>-->

                     <button class="btn btn-gray" id="contact_btn">
                    <i class="md-icon">email</i>
                    <?php 
    _e('Send message', 'pop');
    ?>
                </button>
                </div>
                <?php 
    /* if (osc_user_phone() != '') { ?>
       <div class="user-phone">
           <i class="fa fa-phone"></i>
           <span><?php echo osc_user_phone() ?></span>
예제 #4
0
// meta tag robots
osc_add_hook('header', 'pop_follow_construct');
$address = '';
if (osc_user_address() != '') {
    if (osc_user_city_area() != '') {
        $address = osc_user_address() . ", " . osc_user_city_area();
    } else {
        $address = osc_user_address();
    }
} else {
    $address = osc_user_city_area();
}
$location_array = array();
if (osc_user_city()) {
    $location_array[] = osc_user_city();
}
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);
osc_enqueue_script('jquery-validate');
pop_add_body_class('user-public-profile');
//osc_add_hook('before-main', 'pop_user_map_header');
//function pop_user_map_header() {
//    osc_current_web_theme_path('inc.user_header_public_profile.php');
//}