public static function userInfo($t) { $json = json_decode(file_get_contents(siteInfo::apiUrl() . '/user/token=' . User::token())); foreach ($json as $j) { return $j->{$t}; } }
<div class="changePhoto"> <?php if ($user->photoUrl != "") { ?> <img src="<?php echo $user->photoUrl; ?> " alt="" width="100" /> <?php } elseif ($user->gender == "male") { ?> <img src="<?php echo siteInfo::url(); ?> /_img/blankAvatar.jpg" alt="" width="100" /> <?php } else { ?> <img src="<?php echo siteInfo::url(); ?> /_img/blankAvatarFemale.jpg" alt="" width="100" /> <?php } ?> <?php /*<a href="javascript:;" id="changeProfilePhoto">Alterar foto</a>*/ ?> </div> <span class="clear"></span>
echo User::userInfo('firstName'); ?> !</p> <p class="logInfo">Entrou a <span id="loggedTime">00 min</span></p> <a href="#meuPerfil" class="myProfileLink">Meu perfil</a> <a href="<?php echo siteInfo::apiUrl(); ?> /<?php echo User::userInfo('id'); ?> /logout/token=<?php echo User::token(); ?> &api_key=<?php echo siteInfo::apiKey(); ?> " class="btnExit" title="Sair do Meu Troco">Logout</a> </div> </header> <!-- FeedBack --> <!-- <a id="giveFeedback" href="#feedback" title="Ideias? Sugestões? Problemas? Mande para agente">Feedback</a> --> <!-- navigation --> <nav id="navigation" role="navigation"> <ul> <li class="nav-resume active"><a href="#resumo" title="Visualizar resumo do mês">Resumo</a></li> <li class="nav-account"> <a href="#contas" title="">Contas</a> <ul>