$linkparse = parse_url($link->linkurl);
$linkdomain = preg_replace('/^www\./i', '', $linkparse['host']);
$linktitleclass = null;
if (strlen($link->linktitle) > 100) $linktitleclass = "linktitle100";
else if (strlen($link->linktitle) > 80) $linktitleclass = "linktitle80";
?>
if ($link->userid != $this->base->user->id && !in_array($link->linkurl, $userurls))
{
?>
}
if ($GLOBALS['enableShareBtn']) {
?>
} ?>
if ($GLOBALS['enableEmbeds']) {
$embedhw = 500;
if ($GLOBALS['isMobile']) $embedhw = 300;
?>
if ($GLOBALS['enableCheckItOut']) {
if ($link->userid == $this->base->user->id || ($this->base->user->logged_in && $link->comments && in_array($link->userid, $followers)))
{
CheckItOut::show($link->linkid, $this->base->user->id, $link->userid);
}
}
if ($GLOBALS['enableComments']) {
if ($link->comments == 2 || ($this->base->user->logged_in && $link->comments))
{
if ($link->comments == 2 || (in_array($link->userid, $followers) || $link->userid == $this->base->user->id))
{
$q_comments = "SELECT SQL_CALC_FOUND_ROWS comments.commentid, comments.userid, comments.comment, comments.posted, users.displayname, users.username FROM comments INNER JOIN users ON comments.userid = users.userid AND comments.linkid = ".$link->linkid." ORDER BY comments.posted LIMIT 0, 3";
$r_comments = DB::cxn()->query($q_comments);
$commentcount = 0;
if ($r_comments->num_rows)
{
$q_commentcount = "SELECT FOUND_ROWS() AS count";
$r_commentcount = DB::cxn()->query($q_commentcount);
$commentcount = $r_commentcount->fetch_object()->count;
}
?>
if (isset($GLOBALS['showcommentdivide']) && !$GLOBALS['showcommentdivide']) { ?> } ?>
}
}
}
?>