diff --git a/wa-apps/site/lib/actions/frontend/siteFrontend.action.php b/wa-apps/site/lib/actions/frontend/siteFrontend.action.php index 807e0b13e..88a6f24b7 100755 --- a/wa-apps/site/lib/actions/frontend/siteFrontend.action.php +++ b/wa-apps/site/lib/actions/frontend/siteFrontend.action.php @@ -13,6 +13,7 @@ public function execute() } } $this->view->getHelper()->globals($params); + $this->view->assign('frontend_page', wa('site')->event('frontend_page', $page, array('before_content', 'after_content'))); $this->view->assign('page', $page); $this->view->assign('wa_theme_url', $this->getThemeUrl()); $page['content'] = $this->renderPage($page); diff --git a/wa-system/page/actions/waPage.action.php b/wa-system/page/actions/waPage.action.php index 13f555efa..1327be28f 100644 --- a/wa-system/page/actions/waPage.action.php +++ b/wa-system/page/actions/waPage.action.php @@ -74,6 +74,9 @@ public function execute() $this->view->assign('page', $page); $this->view->assign('wa_theme_url', $this->getThemeUrl()); + + $this->view->assign('frontend_page', wa($this->getAppId())->event('frontend_page', $page, array('before_content', 'after_content'))); + $page['content'] = $this->renderPage($page); if ($this->layout) { @@ -123,4 +126,4 @@ protected function getPageModel() } return new $this->model(); } -} \ No newline at end of file +}