if ($this->base->userpageinfo->userid == $this->base->user->id)
{
?>
}
$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 ($this->base->user->logged_in)
{
if ($this->base->userpageinfo->userid != $this->base->user->id && !in_array($link->linkurl, $userurls))
{
?>
}
}
if ($GLOBALS['enableShareBtn']) {
?>
} ?>
if ($GLOBALS['enableEmbeds']) {
$embedhw = 500;
if ($GLOBALS['isMobile']) $embedhw = 300;
?>
}
?>
if ($this->base->user->logged_in)
{
$q2 = "SELECT userid FROM follow WHERE userid = ".$this->base->userpageinfo->userid." AND following = ".$this->base->user->id;
$r2 = DB::cxn()->query($q2);
if ($r2->num_rows) $followsYou = true;
}
if ($GLOBALS['enableCheckItOut']) {
if ($this->base->userpageinfo->userid == $this->base->user->id || ($this->base->user->logged_in && $link->comments && ($this->base->isFollowing && $followsYou)))
{
CheckItOut::show($link->linkid, $this->base->user->id, $this->base->userpageinfo->userid);
}
}
if ($GLOBALS['enableComments']) {
if ($link->comments == 2 || ((($this->base->isFollowing && $followsYou) || $this->base->userpageinfo->userid == $this->base->user->id) && $link->comments))
{
$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." 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']) { ?> } ?>
}
}
?>