diff --git a/school.d/cedarville.inc b/school.d/cedarville.inc --- a/school.d/cedarville.inc +++ b/school.d/cedarville.inc @@ -26,6 +26,7 @@ function cedarville_info() 'cedarville.edu', ), 'example_course_id' => 'MATH-2510', + 'registration_url' => 'http://cedarville.edu/cgi-bin/secure/register_student.pl', 'student_address' => 'Cedarville Student', ); } 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 . '