Esempio n. 1
0
function get_user_meta($user, $meta)
{
    $userarr = get_the_user($user);
    if ($meta == "display_name") {
        if (trim($userarr["fname"]) != "" || trim($userarr["lname"]) != "") {
            return $userarr["fname"] . " " . $userarr["lname"];
        } else {
            return $userarr["username"];
        }
    }
    if ($meta == "email") {
        if (trim($userarr["email"]) != "") {
            return $userarr["email"];
        } else {
            return "";
        }
    }
    if ($meta == "occupation") {
        if (trim($userarr["occupation"]) != "") {
            return $userarr["occupation"];
        } else {
            return FALSE;
        }
    }
    if ($meta == "about") {
        if (!isset_user_option($user, "about")) {
            return "<code>No description avilable.</code>";
        } else {
            return get_the_user_option($user, "about");
        }
    }
    if ($meta == "website") {
        if (!isset_user_option($user, "link_url")) {
            return "<code>No description avilable.</code>";
        } else {
            return get_the_user_option($user, "about");
        }
    }
}
Esempio n. 2
0
" target="_blank" class="btn bg-blue-steel"><i class="fa fa-facebook"></i> Facebook </a>
                                                                                                    <?php 
}
?>
                                                                                                    <?php 
if (isset_user_option($_SESSION["userid"], "link_tw")) {
    ?>
                                                                                                        <a href="<?php 
    echo get_the_user_option($_SESSION["userid"], "link_tw");
    ?>
" target="_blank" class="btn blue"><i class="fa fa-twitter"></i> Twitter </a>
                                                                                                    <?php 
}
?>
                                                                                                    <?php 
if (isset_user_option($_SESSION["userid"], "link_in")) {
    ?>
                                                                                                        <a href="<?php 
    echo get_the_user_option($_SESSION["userid"], "link_in");
    ?>
" target="_blank" class="btn blue-hoki"><i class="fa fa-linkedin"></i> LinkedIn </a>
                                                                                                    <?php 
}
?>
                                                                                                </div>
											</div>
											<!--end col-md-8-->
											<div class="col-md-4">
												<div class="portlet sale-summary">
													<div class="portlet-title">
														<div class="caption">