/** * Display comments about an album * * @access private */ private function display_comments() { Html::header_albums($this->_album->_name . ' > Comments'); Html::album_details($this->_album->_id, $this->_album->_author_name, $this->_album->_date, nl2br($this->_album->_description), $this->_album->_name, WS_URL . '?ctl=' . $this->_pid . '&album=' . $this->_album->_id); echo '<br/><span id="go_back_album"><a href="' . PATH . '?ctl=' . $this->_pid . '&album=' . VGet::album() . '">Go Back</a></span>'; if (VSession::renderer() != 'mobile') { //create comment section if ($this->_album->_allow_comment == 'open') { $c = new Comments($this->_album->_id); $c->display_content(); } else { Html::comment_closed(); } } }