global $USER; $app = gcr::getApp(); if ($app->isMoodle()) { $institution = $app->getInstitution(); $current_user = $app->getCurrentUser()->getUserOnInstitution($institution); } else { $current_user = $app->getCurrentUser(); } $role_manager = $current_user->getRoleManager(); $fullname = ucfirst($current_user->getFullnameString()); $groups = $current_user->getUserGroups(); ?> <div id="sb-profile" class="sideblock"> <div class="sideblock-header"> <h3 style="height:<?php print GcrInstitutionTable::getSideblockProfileHeaderHeight($fullname, 15, 20, 20); ?> px"> <span id="gc-profile-header-fullname"> <a href="<?php print $app->getAppUrl(); ?> user/view.php?id=<?php print $current_user->getObject()->id; ?> "> <?php print wordwrap($fullname, 15, "<br />\n", true); ?> </a> </span>