<?php
  
$account = DB::GET_STRING("SELECT `ID`,`SEX` FROM `USERS` WHERE `ID` = '".$list['OBJECT_ID']."' LIMIT 1");
  
ECHO "<table style='width: 100%;'><tr>";

ECHO "<td class='notif-avatar'>";
ECHO "<a href='/id".$account['ID']."' style='position: relative;'>";
USER::AVATAR($account['ID'], 50);
ECHO "<span class='icons-notif' style='background-color: #F86055;'>".ICONS('heart', 12, 'fa-fw')."</span>";
ECHO "</a>";

IF ($list['TIME'] + 3600 > TIME()){
  
  ECHO "<br /><span class='count-notif'>".LG('новое')."</span>";
  
}

ECHO "</td>";

ECHO "<td class='notif-info'>";
ECHO USER::LOGIN($account['ID'], 0, 1);

IF ($account['SEX'] == 2){
  
  ECHO " ".LG('поставила Вам лайк')."";
  
}ELSE{
  
  ECHO " ".LG('поставил Вам лайк')."";
  
}

ECHO "<br /><span class='time'>".STIME($list['TIME'])."</span></br /></br />";

$fthem = DB::GET_STRING("SELECT `ID`,`NAME` FROM `FORUM_THEM` WHERE `ID` = '".$list['OBJECT_ID_LIST']."' LIMIT 1");

IF (!ISSET($fthem['ID'])){
  
  ECHO "<font color='red'>".LG('Объект был удален')."</font>";
  
}ELSE{
  
  ECHO "<a href='/modules/?path=forum&section=show&id=".$fthem['ID']."'>";
  
  ECHO '"'.CROP_TEXT(TEXT_ABSOLUTE($fthem['NAME']), 0, 40).'"';
  
  ECHO "</a>";
  
}

ECHO "</td>";

ECHO "</tr></table>";
  
?>