/** * Set defaults, etc. */ public function __construct() { parent::__construct(func_get_args()); $this->setBook(); if (substr($this->bookInfo['options'], 0, 5) == '<?xml') { $args['stringXML'] = $this->bookInfo['options']; $this->xml = new GrlxXMLPublic($args); $this->xmlVersion = $this->xml->version; $this->routeVersion(); } if (!$this->display) { $this->display = array('title', 'number'); } }
/** * Set defaults, etc. */ public function __construct() { parent::__construct(func_get_args()); $this->template = $this->templateFileList['static']; $this->getStaticPage(); if (!$this->pageInfo) { die('<h1>Oops.</h1><p>Could not get static page content for "' . $this->path . '".</p>'); } if (substr($this->pageInfo['options'], 0, 5) == '<?xml') { $args['stringXML'] = $this->pageInfo['options']; $this->xml = new GrlxXMLPublic($args); $this->xmlVersion = $this->xml->version; $this->routeVersion(); } else { $this->pageInfo['page_content'] = $this->pageInfo['options']; } if ($this->load404 == 'pattern_test') { $this->outputPatternTests(); } }
/** * Set defaults, etc. */ public function __construct() { parent::__construct(func_get_args()); $this->markerType['id'] = 1; // Hard-coded to chapter markers for now $this->template = $this->templateFileList['archive']; if ($this->path[1] != $this->bookInfo['url']) { $this->getBookInfo('url'); } $this->theme['tone_id'] = $this->bookInfo['tone_id']; $this->pageInfo['permalink'] = $this->path[1] . $this->path[2]; $this->getChapterNum(); if ($this->chapterNum) { $this->pageInfo['permalink'] .= '/' . $this->chapterNum; } if (substr($this->bookInfo['options'], 0, 5) == '<?xml') { $args['stringXML'] = $this->bookInfo['options']; $this->xml = new GrlxXMLPublic($args); $this->xmlVersion = $this->xml->version; $this->routeVersion(); $this->routeBehaviorOptions(); } }
/** * Set defaults, etc. */ public function __construct() { parent::__construct(func_get_args()); $this->template = $this->templateFileList['comic']; }