diff --git a/school.d/default.inc b/school.d/default.inc --- a/school.d/default.inc +++ b/school.d/default.inc @@ -63,10 +63,21 @@ EOF; */ function default_registration_html(Page $page, array $school, array $courses) { + if (!empty($school['registration_url'])) + { + $link_url = $school['registration_url']; + $link_text = $school['name'] . '\'s registration system'; + } + else + { + $link_url = $school['url']; + $link_text = $school['name'] . '\'s website'; + } + $html = '' . '
' . PHP_EOL - . ' Enter these codes into your school\'s online course registration' . PHP_EOL - . ' system (' . htmlentities($school['name']) . '\'s website)' . PHP_EOL + . ' Enter these codes into ' . htmlentities($school['name']) . '\'s online course registration' . PHP_EOL + . ' system (' . htmlentities($link_text) . ')' . PHP_EOL . ' to register for classes:' . PHP_EOL . '
' . PHP_EOL . '