/** * If this question has any followers * then add block with * some followers' avatars * * @return object $this */ protected function setFollowersBlock() { $aFlwrs = $this->Question['a_flwrs']; $count = count($aFlwrs); if ($count > 0) { $s = \Lampcms\ShowFollowers::factory($this->Registry)->getQuestionFollowers($aFlwrs, $count); d('followers: ' . $s); $this->aPageVars['side'] .= '<div class="fr cb w90 lg rounded3 pl10 mb10">' . $s . '</div>'; } return $this; }
protected function addTagFollowers() { $s = \Lampcms\ShowFollowers::factory($this->Registry)->getTagFollowers($this->aTags[0]); d('tag followers: ' . $s); $this->aPageVars['side'] .= '<div class="fr cb w90 lg rounded3 pl10 mb10">' . $s . '</div>'; return $this; }