Changeset 499
- Timestamp:
- 08/13/06 19:14:05 (2 years ago)
- Files:
-
- devel/lib/templates.php (modified) (5 diffs)
- devel/mod/community/lib.php (modified) (3 diffs)
- devel/mod/file/lib.php (modified) (1 diff)
- devel/mod/friend/lib.php (modified) (1 diff)
- devel/mod/newsclient/lib.php (modified) (1 diff)
- devel/mod/template/lib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/templates.php
r468 r499 457 457 if (isadmin()) { 458 458 $PAGE->menu_top [] = array( 'name' => 'admin', 459 //'html' => a_href g("{$CFG->wwwroot}_admin/",459 //'html' => a_href("{$CFG->wwwroot}_admin/", 460 460 // "Administration")); 461 461 'html' => "<li><a href=\"" . $CFG->wwwroot . "_admin/\">" . gettext("Administration") . "</a></li>"); … … 464 464 $PAGE->menu_top[] = array( 465 465 'name' => 'userdetails', 466 //'html' => a_href g("{$CFG->wwwroot}_userdetails/",466 //'html' => a_href("{$CFG->wwwroot}_userdetails/", 467 467 // "Account settings")); 468 468 'html' => "<li><a href=\"" . $CFG->wwwroot . "_userdetails/\">" . gettext("Account settings") . "</a></li>"); … … 470 470 $PAGE->menu_top[] = array( 471 471 'name' => 'logoff', 472 //'html' => a_href g("{$CFG->wwwroot}login/logout.php",472 //'html' => a_href("{$CFG->wwwroot}login/logout.php", 473 473 // "Log off")); 474 474 'html' => "<li><a href=\"" . $CFG->wwwroot . "login/logout.php\">" . gettext("Log off") . "</a></li>"); … … 477 477 $PAGE->menu_sub[] = array( 478 478 'name' => 'user:edit', 479 'html' => a_href g("{$CFG->wwwroot}_userdetails/",480 "Edit user details"));479 'html' => a_href("{$CFG->wwwroot}_userdetails/", 480 gettext("Edit user details"))); 481 481 $PAGE->menu_sub[] = array( 482 482 'name' => 'user:icon', 483 'html' => a_href g("{$CFG->wwwroot}_icons/",484 "Your site picture"));483 'html' => a_href("{$CFG->wwwroot}_icons/", 484 gettext("Your site picture"))); 485 485 } 486 486 … … 488 488 $PAGE->menu_sub[] = array( 489 489 'name' => 'admin', 490 'html' => a_href g("{$CFG->wwwroot}_admin/",491 "Main"));490 'html' => a_href("{$CFG->wwwroot}_admin/", 491 gettext("Main"))); 492 492 493 493 $PAGE->menu_sub[] = array( 494 494 'name' => 'admin:useradd', 495 'html' => a_href g("{$CFG->wwwroot}_admin/users_add.php",496 "Add users"));495 'html' => a_href("{$CFG->wwwroot}_admin/users_add.php", 496 gettext("Add users"))); 497 497 498 498 $PAGE->menu_sub[] = array( 499 499 'name' => 'admin:users', 500 'html' => a_href g("{$CFG->wwwroot}_admin/users.php",501 "Manage users"));500 'html' => a_href("{$CFG->wwwroot}_admin/users.php", 501 gettext("Manage users"))); 502 502 503 503 $PAGE->menu_sub[] = array( 504 504 'name' => 'admin:flaggedcontent', 505 'html' => a_href g("{$CFG->wwwroot}_admin/flags.php",506 "Manage flagged content"));505 'html' => a_href("{$CFG->wwwroot}_admin/flags.php", 506 gettext("Manage flagged content"))); 507 507 508 508 $PAGE->menu_sub[] = array( 509 509 'name' => 'admin:spam', 510 'html' => a_href g("{$CFG->wwwroot}_admin/antispam.php",511 "Spam control"));510 'html' => a_href("{$CFG->wwwroot}_admin/antispam.php", 511 gettext("Spam control"))); 512 512 513 513 } devel/mod/community/lib.php
r490 r499 22 22 23 23 $PAGE->menu_sub[] = array( 'name' => 'community:pic', 24 'html' => a_href g("{$CFG->wwwroot}_icons/?context=profile&profile_id=$page_owner" ,24 'html' => a_href("{$CFG->wwwroot}_icons/?context=profile&profile_id=$page_owner" , 25 25 gettext("Community site picture"))); 26 26 27 27 $PAGE->menu_sub[] = array( 'name' => 'community:edit', 28 'html' => a_href g("{$CFG->wwwroot}_userdetails/?context=profile&profile_id=$page_owner" ,28 'html' => a_href("{$CFG->wwwroot}_userdetails/?context=profile&profile_id=$page_owner" , 29 29 gettext("Edit community details"))); 30 30 … … 34 34 if (defined("context") && (context == "profile" || context == "network")) { 35 35 $PAGE->menu_sub[] = array( 'name' => 'community:requests', 36 'html' => a_href g("{$CFG->wwwroot}_communities/requests.php?profile_id=$page_owner",36 'html' => a_href("{$CFG->wwwroot}_communities/requests.php?profile_id=$page_owner", 37 37 gettext("View membership requests"))); 38 38 } 39 39 40 40 /*$PAGE->menu_sub[] = array( 'name' => 'community:members', 41 'html' => a_href g("{$CFG->wwwroot}_communities/members.php?owner=$page_owner" ,41 'html' => a_href("{$CFG->wwwroot}_communities/members.php?owner=$page_owner" , 42 42 gettext("Community Members")));*/ 43 43 … … 48 48 49 49 $PAGE->menu_sub[] = array( 'name' => 'community', 50 'html' => a_href g("{$CFG->wwwroot}_communities/?owner=$page_owner" ,50 'html' => a_href("{$CFG->wwwroot}_communities/?owner=$page_owner" , 51 51 gettext("Communities"))); 52 52 53 53 $PAGE->menu_sub[] = array( 'name' => 'community:owned', 54 'html' => a_href g("{$CFG->wwwroot}_communities/owned.php?owner=$page_owner" ,54 'html' => a_href("{$CFG->wwwroot}_communities/owned.php?owner=$page_owner" , 55 55 gettext("Owned Communities"))); 56 56 devel/mod/file/lib.php
r490 r499 25 25 if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 26 26 $PAGE->menu_sub[] = array( 'name' => 'file:add', 27 'html' => a_href g( "#addFile",28 gettext("Add a file or a folder"))); 27 'html' => a_href( "#addFile", 28 gettext("Add a file or a folder"))); 29 29 } 30 30 if ($page_owner != -1) { 31 31 if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 32 32 $PAGE->menu_sub[] = array( 'name' => 'file:rss', 33 'html' => a_href g( $CFG->wwwroot.$_SESSION['username']."/files/rss/",33 'html' => a_href( $CFG->wwwroot.$_SESSION['username']."/files/rss/", 34 34 gettext("RSS feed for files"))); 35 35 } 36 36 if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 37 37 $PAGE->menu_sub[] = array( 'name' => 'file:help', 38 'html' => a_href g( $CFG->wwwroot."help/files_help.php",38 'html' => a_href( $CFG->wwwroot."help/files_help.php", 39 39 gettext("Page help"))); 40 40 } devel/mod/friend/lib.php
r490 r499 27 27 28 28 $PAGE->menu_sub[] = array( 'name' => 'friend', 29 'html' => a_href g("{$CFG->wwwroot}{$friends_username}/friends/" ,29 'html' => a_href("{$CFG->wwwroot}{$friends_username}/friends/" , 30 30 gettext("Friends"))); 31 31 32 32 $PAGE->menu_sub[] = array( 'name' => 'friend:of', 33 'html' => a_href g( "{$CFG->wwwroot}_friends/friendsof.php?owner=$page_owner",33 'html' => a_href( "{$CFG->wwwroot}_friends/friendsof.php?owner=$page_owner", 34 34 gettext("Friend of"))); 35 35 36 36 $PAGE->menu_sub[] = array( 'name' => 'friend:requests', 37 'html' => a_href g( "{$CFG->wwwroot}_friends/requests.php?owner=$page_owner",37 'html' => a_href( "{$CFG->wwwroot}_friends/requests.php?owner=$page_owner", 38 38 gettext("Friendship requests"))); 39 39 40 40 $PAGE->menu_sub[] = array( 'name' => 'friend:foaf', 41 'html' => a_href g( "{$CFG->wwwroot}{$friends_username}/foaf/",41 'html' => a_href( "{$CFG->wwwroot}{$friends_username}/foaf/", 42 42 gettext("FOAF"))); 43 43 44 44 if (isloggedin()) { 45 45 $PAGE->menu_sub[] = array( 'name' => 'friend:accesscontrols', 46 'html' => a_href g( "{$CFG->wwwroot}_groups/",46 'html' => a_href( "{$CFG->wwwroot}_groups/", 47 47 gettext("Access controls"))); 48 48 49 49 if ($CFG->publicinvite == true) { 50 50 $PAGE->menu_sub[] = array( 'name' => 'friend:invite', 51 'html' => a_href g( "{$CFG->wwwroot}_invite/",51 'html' => a_href( "{$CFG->wwwroot}_invite/", 52 52 gettext("Invite a friend"))); 53 53 } 54 54 55 55 $PAGE->menu_sub[] = array( 'name' => 'friend:help', 56 'html' => a_href g( "{$CFG->wwwroot}help/network_help.php",56 'html' => a_href( "{$CFG->wwwroot}help/network_help.php", 57 57 gettext("Page help"))); 58 58 devel/mod/newsclient/lib.php
r468 r499 26 26 if (run("permissions:check", "rss") && logged_on && $page_owner == $_SESSION['userid']) { 27 27 $PAGE->menu_sub[] = array( 'name' => 'newsfeed:subscription', 28 'html' => a_href g( $CFG->wwwroot.$_SESSION['username']."/feeds/",28 'html' => a_href( $CFG->wwwroot.$_SESSION['username']."/feeds/", 29 29 gettext("Feeds"))); 30 30 $PAGE->menu_sub[] = array( 'name' => 'newsfeed:subscription:publish:blog', 31 'html' => a_href g( $CFG->wwwroot."_rss/blog.php?page_owner=" . $_SESSION['userid'],31 'html' => a_href( $CFG->wwwroot."_rss/blog.php?page_owner=" . $_SESSION['userid'], 32 32 gettext("Publish to blog"))); 33 33 } 34 34 $PAGE->menu_sub[] = array( 'name' => 'newsclient', 35 'html' => a_href g( $CFG->wwwroot.$rss_username."/feeds/all/",35 'html' => a_href( $CFG->wwwroot.$rss_username."/feeds/all/", 36 36 gettext("View aggregator"))); 37 37 } 38 38 $PAGE->menu_sub[] = array( 'name' => 'feed', 39 'html' => a_href g( $CFG->wwwroot."_rss/popular.php",39 'html' => a_href( $CFG->wwwroot."_rss/popular.php", 40 40 gettext("Popular Feeds"))); 41 41 42 42 /* 43 43 $PAGE->menu_sub[] = array( 'name' => 'feed', 44 'html' => a_href g( $CFG->wwwroot."help/feeds_help.php",44 'html' => a_href( $CFG->wwwroot."help/feeds_help.php", 45 45 "Page help")); 46 46 */ devel/mod/template/lib.php
r490 r499 12 12 if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 13 13 $PAGE->menu_sub[] = array( 'name' => 'template:change', 14 'html' => a_href g( "{$CFG->wwwroot}_templates/",14 'html' => a_href( "{$CFG->wwwroot}_templates/", 15 15 gettext("Change theme"))); 16 16 }
