{##} {% import _self as homepage %}

{{ __('Welcome') }}

{{ indexText | raw }}

{% if admissionsEnabled %} {{ homepage.card( __(admissionsLinkName), __(admissionsLinkText), "/?q=/modules/Admissions/applicationFormSelect.php", organisationName, 'first' ) }} {% elseif publicStudentApplications %} {{ homepage.card( __('Student Applications'), __('Parents of students interested in study at %1$s may use our %2$s online form%3$s to initiate the application process.'), "/?q=/modules/Students/applicationForm.php", organisationName, 'first' ) }} {% endif %} {% if publicStaffApplications %} {{ homepage.card( __('Staff Applications'), __('Individuals interested in working at %1$s may use our %2$s online form%3$s to view job openings and begin the recruitment process.'), "/?q=/modules/Staff/applicationForm_jobOpenings_view.php", organisationName, 'first' ) }} {% endif %} {% if publicRegistration %} {{ homepage.card( __('Register'), __('Join our learning community.') ~ ' ' ~ __("It's free!"), "/?q=/publicRegistration.php" ) }} {% endif %} {% if makeDepartmentsPublic %} {{ homepage.card( __('Departments'), __('Please feel free to %1$sbrowse our departmental information%2$s, to learn more about %3$s.'), "/?q=/modules/Departments/departments.php", organisationName, 'second' ) }} {% endif %} {% if makeUnitsPublic %} {{ homepage.card( __('Learn With Us'), __('We are sharing some of our units of study with members of the public, so you can learn with us. Feel free to %1$sbrowse our public units%2$s.'), "/?q=/modules/Planner/units_public.php&sidebar=false", organisationName, 'second' ) }} {% endif %} {% for hook in indexHooks %} {{ homepage.card(hook.title, hook.text, hook.url, organisationName) }} {% endfor %} {% if privacyPolicy %} {{ homepage.card( __('Privacy Policy'), __('Read more about how personal data is used, stored and retained at %1$s.'), "/?q=privacyPolicy.php", organisationName, 'first' ) }} {% endif %}
{% macro card(name, content, url = '', organisationName, orgNamePos = 'first') %}
{{ name }}

{% if orgNamePos == 'first' %} {{ content|format(organisationName, '', '')|raw }} {% elseif orgNamePos == 'second' %} {{ content|format('', '', organisationName)|raw }} {% else %} {{ content|raw }} {% endif %}

{% endmacro card %}