/** * 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(); }
/** * 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'; }
/** * 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(); }