示例#1
0
 /**
  * Adds 'Addons' tab to profiles and adds CSS & JS files to their head.
  *
  * @since 2.0.0
  * @package Vanilla
  *
  * @param ProfileController $Sender
  */
 public function profileController_addProfileTabs_handler($Sender)
 {
     if (is_object($Sender->User) && $Sender->User->UserID > 0) {
         $Sender->addProfileTab(t('Addons'), 'profile/addons/' . $Sender->User->UserID . '/' . urlencode($Sender->User->Name));
         // Add the discussion tab's CSS and Javascript
         $Sender->addCssFile('profile.css', 'addons');
         $Sender->addJsFile('addons.js');
     }
 }