global $CONFIG;
require_once dirname(__FILE__) . '/blog_lib.php';
- add_menu(elgg_echo('blog:blogs'), elgg_get_site_url()."pg/blog/", array());
+ add_menu(elgg_echo('blog:blogs'), "pg/blog/", array());
// run the setup upon activations or to upgrade old installations.
run_function_once('blog_runonce', '1269370108');
global $CONFIG;
//add a tools menu option
- add_menu(elgg_echo('bookmarks'), elgg_get_site_url() . 'pg/bookmarks');
+ add_menu(elgg_echo('bookmarks'), 'pg/bookmarks');
// Register a page handler, so we can have nice URLs
register_page_handler('bookmarks', 'bookmarks_page_handler');
global $CONFIG;
// Set up menu (tools dropdown)
- add_menu(elgg_echo('files'), elgg_get_site_url() . "pg/file/");
+ add_menu(elgg_echo('files'), "pg/file/");
// Extend CSS
elgg_extend_view('css', 'file/css');
global $CONFIG;
// Set up the menu
- add_menu(elgg_echo('groups'), elgg_get_site_url() . "pg/groups/world/");
+ add_menu(elgg_echo('groups'), "pg/groups/world/");
// Register a page handler, so we can have nice URLs
register_page_handler('groups','groups_page_handler');
function pages_init() {
global $CONFIG;
- add_menu(elgg_echo('pages'), elgg_get_site_url() . "mod/pages/world.php");
+ add_menu(elgg_echo('pages'), "mod/pages/world.php");
// Register a page handler, so we can have nice URLs
register_page_handler('pages','pages_page_handler');
global $CONFIG;
// Register and optionally replace the dashboard
register_page_handler('dashboard', 'riverdashboard_page_handler');
- add_menu(elgg_echo('activity'), elgg_get_site_url() . "pg/activity/");
+ add_menu(elgg_echo('activity'), "pg/activity/");
// Page handler
register_page_handler('activity', 'riverdashboard_page_handler');
global $CONFIG;
// Set up menu for logged in users
- add_menu(elgg_echo('thewire:title'), elgg_get_site_url() . "pg/thewire");
+ add_menu(elgg_echo('thewire:title'), "pg/thewire");
// Extend system CSS with our own styles, which are defined in the thewire/css view
elgg_extend_view('css','thewire/css');