tp = new $plugin(); $this->player = $this->tp->loadType("TestPlayer"); } parent::__construct($page); if (is_file(dirname(dirname(__FILE__)).'/views/test/test_view.html')) { $this->setTemplate("test_view"); } if (isset($this->player)) { $this->player->actionCentral($page); $asset = $this->player->getAsset(); $chapter = $this->player->getChapter(); if ($asset) { if (is_file(dirname(dirname(__FILE__)).'/views/library/library_'.$asset->getType().'.html')) { $this->setTemplate("library_".$asset->getType()); } } else if ($chapter) { $this->setTemplate("test_start"); } } } public function setNavigation() { } function genNavTree($tree_items) { } } ?>