From e778258e839965597e5ebb8da362806db83e0dfb Mon Sep 17 00:00:00 2001 From: Sem Date: Wed, 26 Oct 2011 12:39:05 +0200 Subject: Closes #3947. External pages are now viewable by visitors in walled-garden sites. Footer menu is also added into walled-garden logging page. --- mod/externalpages/start.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mod/externalpages/start.php') diff --git a/mod/externalpages/start.php b/mod/externalpages/start.php index 1de4d5ec8..ce911bf10 100644 --- a/mod/externalpages/start.php +++ b/mod/externalpages/start.php @@ -12,6 +12,9 @@ function expages_init() { elgg_register_page_handler('terms', 'expages_page_handler'); elgg_register_page_handler('privacy', 'expages_page_handler'); elgg_register_page_handler('expages', 'expages_page_handler'); + + // Register public external pages + elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'expages_public'); // add a menu item for the admin edit page elgg_register_admin_menu_item('configure', 'expages', 'appearance'); @@ -24,6 +27,15 @@ function expages_init() { elgg_register_action("expages/edit", "$actions_base/edit.php", 'admin'); } +/** + * Extend the public pages range + * + */ +function expages_public($hook, $handler, $return, $params){ + $pages = array('about', 'terms', 'privacy'); + return array_merge($pages, $return); +} + /** * Setup the links to site pages */ -- cgit v1.2.3