コード例 #1
0
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     Helper\Helper::get_categories($this->_menu, 'album');
     $this->load_cat();
     $this->get_content();
     $this->build_title();
     $this->build_menu();
 }
コード例 #2
0
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     Helper\Helper::get_categories($this->_menu, 'video');
     $this->build_menu();
     //If try to select an inexistant category, redirect to 404
     if (VGet::cat() && !isset($this->_menu[VGet::cat()])) {
         header('Location: 404.php');
     }
     $this->get_content();
     $this->_title = 'Videos';
 }
コード例 #3
0
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (VGet::news()) {
         $this->_view_type = 'news';
     } else {
         $this->_view_type = 'listing';
     }
     Helper\Helper::get_categories($this->_menu);
     $this->build_menu();
     $this->get_content();
     $this->get_nb_pages();
     parent::build_title();
 }