/**
  * Display pagination
  *
  * @access	private
  */
 private function display_pagination()
 {
     if ($this->_max > 1) {
         $link = null;
         if (VRequest::filter(false)) {
             $link = '&filter=true&date=' . VRequest::date() . '&category=' . VRequest::category() . '&post_status=' . $this->_status;
         } elseif (!empty($this->_search)) {
             $link = '&search=' . $this->_search;
         } elseif (VGet::author()) {
             $link = '&author=' . VGet::author;
         } elseif ($this->_status != 'all') {
             $link = '&post_status=' . $this->_status;
         }
         Html::pagination($this->_page, $this->_max, $link, 'Posts');
     }
 }
 /**
  * Display pagination
  *
  * @access	private
  */
 private function display_pagination()
 {
     if ($this->_max > 1) {
         $link = null;
         if (VRequest::filter(false)) {
             $link = '&filter=true&date=' . VRequest::date() . '&category=' . VRequest::category() . '&type=' . $this->_view_type;
         } elseif (!empty($this->_search)) {
             $link = '&search=' . $this->_search;
         } elseif (VGet::author()) {
             $link = '&author=' . VGet::author;
         } else {
             $link = '&type=' . $this->_view_type;
         }
         Html::pagination($this->_page, $this->_max, $link, 'Medias');
     }
 }
 /**
  * Display page content
  *
  * @access	public
  */
 public function display_content()
 {
     Html::header_authors(VGet::author());
     if (!empty($this->_content)) {
         if (!VSession::html5()) {
             echo '<ul id="authors">';
         }
         foreach ($this->_content as $user) {
             Html::author($user->_publicname, $user->_email, $user->_website, $user->_msn, $user->_twitter, $user->_facebook, $user->_google, $user->_avatar, $user->_bio);
         }
         if (!VSession::html5()) {
             echo '</ul>';
         }
     } else {
         Html::no_content('Wanted user doesn\'t exist');
     }
 }
 /**
  * Method to build page title
  *
  * @access	protected
  */
 protected function build_title()
 {
     switch ($this->_pid) {
         case 'posts':
             if (VGet::news()) {
                 $this->_title = $this->_content[0]->_title;
             } elseif ($this->_page != 1) {
                 $this->_title = 'Posts > Page ' . $this->_page;
             } else {
                 $this->_title = 'Posts';
             }
             break;
         case 'albums':
             if ($this->_page != 1) {
                 $this->_title = 'Albums > Page ' . $this->_page;
             } else {
                 $this->_title = 'Albums';
             }
             break;
         case 'video':
             if ($this->_page != 1) {
                 $this->_title = 'Videos > Page ' . $this->_page;
             } else {
                 $this->_title = 'Videos';
             }
             break;
         case 'author':
             if (VGet::author()) {
                 $this->_title = VGet::author();
             } else {
                 $this->_title = 'Authors';
             }
             break;
         case 'search':
             if ($this->_page != 1) {
                 $this->_title = 'Search > Page ' . $this->_page;
             } else {
                 $this->_title = 'Search';
             }
             break;
         case 'contact':
             $this->_title = 'Contact';
             break;
     }
 }