echo '<div class="user"><p>' . functions::display_user($user, $arg) . '</p></div>';
Вот вообщем код php
if (file_exists('../files/users/photo/'.$user['id'].'.jpg')) {
$anhbia = '/files/users/photo/'.$user['id'].'.jpg';
}else{
if (file_exists(('../files/users/avatar/' . $user['id'] . '.png'))) {
$anhbia = '/files/users/avatar/'.$user['id'].'.png';
} else {
$anhbia = '/images/empty.png';
}
}
if (file_exists(('../files/users/avatar/' . $user['id'] . '.png'))) {
$ava = '/files/users/avatar/'.$user['id'].'.png';
} else {
$ava = '/images/empty.png';
}
$lgab = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".$user['id']."' LIMIT 1"));
echo '<style>#profile{background:url('.$anhbia.');background-position: center;background-size: cover;width: 100%;height: auto;margin-bottom: 5px;background-repeat: no-repeat;} .contect{ background-color:rgba(1, 46, 69,0.2); width:100%; height: auto; padding-top:100px;padding-bottom:8px;} #pagina{width:100%;margin:0 auto;padding:0} #page_body{padding-top:2px;clear:both;margin:0} #wrapper{z-index:2;position:relative;margin-top:7px;}</style>
<div id="profile"><DIV class="contect"><DIV id="pagina"><DIV id="page_body"><table cellpadding="0" cellspacing="0"><tr><td><div style="WIDTH: 70px; BACKGROUND: url('.$ava.') no-repeat; HEIGHT: 70px; background-size: 70px 70px; -webkit-border-radius: 50%; border-radius: 50%; -moz-border-radius: 50%;margin-left:7px;"></div></td><td style="font-size: 16px; color: #fff; padding: 0px 0px 0px 5px;"><div id="ava_abc">'.$lgab['name'].'</td></tr></table></div></div></div></div>';
Кому не сложно гляньте на ошибки и тд) Ниже на скринах)