function Display if Database GetCount id bookmarks array module array

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
function Display()
{
if(Database::GetCount('id', 'bookmarks', array('module' => array('=', 'content', 'AND'), 'item' => array('=', $this->Id, null))))
{
$Bookmark = "<img src=\"images/modules/star.png\" align=\"absmiddle\" border=\"0\"> ";
}
$Bookmark = BookmarkButton('content', $this->Id);
}
$Image = null;
if(is_file('images/articles/'.$this->Image))
{
$Image = "\n<img src=\"images/articles/".$this->Image."\">";
}
$Text = stripslashes($this->ShortText);
if(UTF8::strwidth($this->FullText) > 0)
{
$Text .= "\n".stripslashes($this->FullText);
}
$Tags = MakeTags('content', $this->Tags)
Template::Article($this->Id, $this->Title, $this->Date, UserInfo($this->Author), $Image, $Text, $Tags, TRUE, $Bookmark);
}