/**
  * Add needed resources to the page.
  *
  * @param PostController $sender Sending controller instance.
  * @param array $args Event's arguments.
  */
 public function postController_render_before($sender, $args)
 {
     if (!$this->isWelcomePostActive($sender->Request, $categoryID)) {
         return;
     }
     $sender->addDefinition('WelcomePostPopupMessage', t('Please introduce yourself to the community!'));
     $sender->addJsFile('welcomepost.js', 'plugins/welcomepost');
     $sender->addCssFile('welcomepost.css', 'plugins/welcomepost');
 }