/** * Show content. * * NoticeList extended classes do most heavy lifting. Plugins can override. * * @return void */ function showContent() { if (Event::handle('StartShowConversation', array($this, $this->conv, $this->scoped))) { $notices = $this->conv->getNotices($this->scoped); $nl = new FullThreadedNoticeList($notices, $this, $this->scoped); $cnt = $nl->show(); } Event::handle('EndShowConversation', array($this, $this->conv, $this->scoped)); }
/** * Show content. * * Display a hierarchical unordered list in the content area. * Uses ConversationTree to do most of the heavy lifting. * * @return void */ function showContent() { $ct = new FullThreadedNoticeList($this->notices, $this, $this->userProfile); $cnt = $ct->show(); }
function showContent() { if (empty($this->user)) { return; } $this->elementStart('a', array('href' => $this->photo->uri)); $this->element('img', array('src' => $this->photo->uri)); $this->elementEnd('a'); //Image "toolbar" $cur = common_current_user(); if ($this->photo->profile_id == $cur->profile_id) { $this->elementStart('div', array('id' => 'image_toolbar')); $this->element('a', array('href' => '/editphoto/' . $this->photo->id), 'Edit'); $this->elementEnd('div'); } $this->element('p', array('class' => 'photodescription'), $this->photo->photo_description); //This is a hack to hide the top-level comment $this->element('style', array(), "#notice-{$this->photo->notice_id} div { display: none } #notice-{$this->photo->notice_id} ol li div { display: inline }"); if (Event::handle('StartShowConversation', array($this, $this->conv, $this->scoped))) { $notices = $this->conv->getNotices($this->scoped); $nl = new FullThreadedNoticeList($notices, $this, $this->scoped); $cnt = $nl->show(); } Event::handle('EndShowConversation', array($this, $this->conv, $this->scoped)); }
/** * Show content. * * Display a hierarchical unordered list in the content area. * Uses ConversationTree to do most of the heavy lifting. * * @return void */ function showContent() { $user = common_current_user(); if (!empty($user) && $user->conversationTree()) { $nl = new ConversationTree($this->notices, $this); } else { $nl = new FullThreadedNoticeList($this->notices, $this, $this->userProfile); } $cnt = $nl->show(); }