示例#1
0
文件: page.php 项目: armpit/e107
 public function renderCache()
 {
     $comments = '';
     if ($this->cacheData['COMMENT_FLAG']) {
         $vars = new e_vars(array('comments' => $this->pageComment(true)));
         $comments = e107::getScBatch('page', null, 'cpage')->setVars($vars)->cpagecomments();
     }
     define('e_PAGETITLE', eHelper::formatMetaTitle($this->cacheData['TITLE']));
     define('META_DESCRIPTION', $this->cacheData['META_DSCR']);
     define('META_KEYWORDS', $this->cacheData['META_KEYS']);
     if ($this->debug) {
         echo "<b>Reading page from cache</b><br />";
     }
     return str_replace('[[PAGECOMMENTS]]', $comments, $this->cacheData['PAGE']);
 }