@@ 634-643 (lines=10) @@ | ||
631 | echo '<div> What that mean?</div>'; |
|
632 | } |
|
633 | ||
634 | if (elgg_is_logged_in() && elgg_get_config('allow_registration')) { |
|
635 | $params = array( |
|
636 | 'name' => 'invite', |
|
637 | 'text' => elgg_echo('friends:invite'), |
|
638 | 'href' => "invite/". $user->username, |
|
639 | 'contexts' => array('friends'), |
|
640 | 'priority' => 300, |
|
641 | ); |
|
642 | elgg_register_menu_item('page', $params); |
|
643 | } |
|
644 | ||
645 | ||
646 | //new folder button for files |
|
@@ 648-662 (lines=15) @@ | ||
645 | ||
646 | //new folder button for files |
|
647 | ||
648 | if (elgg_is_logged_in()) { |
|
649 | $user = elgg_get_logged_in_user_entity(); |
|
650 | if ($user->canEdit()) { |
|
651 | $params = array( |
|
652 | 'name' => 'new_folder', |
|
653 | 'text' => elgg_echo("file_tools:new:title"), |
|
654 | 'href' => "#", |
|
655 | "id" => "file_tools_list_new_folder_toggle", |
|
656 | 'item_class' => 'mrgn-lft-sm', |
|
657 | 'context' => 'file', |
|
658 | ); |
|
659 | elgg_register_menu_item('title2', $params); |
|
660 | } |
|
661 | } |
|
662 | } |
|
663 | ||
664 | ||
665 |