</H2>
	<p><?php 
    echo sprintf(__("Thank you for registering with %s. Please check your email as we've sent you your login url and credentials.", 'bum'), get_bloginfo('site'));
    ?>
</p>
	
	<?php 
    bum_show_view("bum-page-login");
    ?>
	
<?php 
} else {
    ?>
	
	<?php 
    $pages = get_registration_pages();
    ?>
	<?php 
    foreach ((array) $pages as $page) {
        ?>
		<a class="registration-link-candidate" href="<?php 
        echo bum_get_permalink_registration("user_type=" . $page['role']);
        ?>
">
		<?php 
        echo sprintf(__("Register as a %s", 'bum'), $page['name']);
        ?>
</a>
	<?php 
    }
    ?>
 /**
  * Display the user type links
  * 
  * @return boolean
  * @since 1.2
  */
 function display_user_type_links()
 {
     if (is_user_type()) {
         return false;
     }
     $pages = get_registration_pages();
     echo '<ul class="registration_types">';
     foreach ($pages as $page) {
         echo "<li><a href='?user_type={$page['role']}'><span>Register as a </span>{$page['name']}</a></li>";
     }
     echo '</ul>';
     return true;
 }
/**
 * Get the registration details
 * 
 * @return array
 * @since 1.2
 */
function get_registration_page()
{
    $pages = get_registration_pages();
    $role = getVar('user_type');
    $page = $pages[$role];
    return $page;
}
/**
 * Do registration form
 * 
 * @return boolean
 * @since 1.2
 */
function bum_do_registration_form()
{
    //initializing variables
    $user_type = bum_is_user_type();
    $pages = get_registration_pages();
    $status = true;
    //reasons to fail
    if (!$user_type) {
        $status = false;
    }
    if ($status && !isset($pages[$user_type])) {
        $status = false;
    }
    bum_display_custom_user_fields(null, get_registration_fields($user_type));
    return true;
}