/** * Init */ public function init() { if (isOnPages()) { $this->article = $this->article->onlyPage(); } else { $this->article = $this->article->onlyPost(); } }