/**
  * Creates an HTML link to either the registration page (if a user is logged in) or the login page (if no user is logged in).
  *
  * This function only creates the link to the standard registration or login
  * page; it should not be used if the seminar has a separate details page.
  *
  * @param tx_oelib_templatehelper $plugin an object for a live page
  * @param tx_seminars_seminar $seminar a seminar for which we'll check if it is possible to register
  * @param string $label label for the link, will not be empty
  *
  * @return string HTML code with the link
  */
 private function getLinkToStandardRegistrationOrLoginPage(tx_oelib_templatehelper $plugin, tx_seminars_seminar $seminar, $label)
 {
     if (tx_oelib_FrontEndLoginManager::getInstance()->isLoggedIn()) {
         // provides the registration link
         $result = $plugin->cObj->getTypoLink($label, $plugin->getConfValueInteger('registerPID'), array('tx_seminars_pi1[seminar]' => $seminar->getUid(), 'tx_seminars_pi1[action]' => 'register'));
     } else {
         // provides the login link
         $result = $plugin->getLoginLink($label, $plugin->getConfValueInteger('registerPID'), $seminar->getUid());
     }
     return $result;
 }