Skip to content

Commit

Permalink
Add additional theme footer option fro Shared Research Platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Jun 2, 2023
1 parent 1da7793 commit 41101ff
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/includes/footer.clf7.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
{% include '@kraken/includes/footer.unit.portfolio.html.twig' %}
{% elseif vpr_unit is same as('cluster') %}
{% include '@kraken/includes/footer.unit.cluster.html.twig' %}
{% elseif vpr_unit is same as('shared') %}
{% include '@kraken/includes/footer.unit.shared.html.twig' %}
{% elseif vpr_unit is same as('research') %}
{% include '@kraken/includes/footer.unit.research.html.twig' %}
{% else %}
Expand Down
80 changes: 80 additions & 0 deletions templates/includes/footer.unit.shared.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

<hr class="mt-0 border-2 border-ubc-blue-cornflower" />
<div class="container px-4 py-12 mx-auto unit-content" id="unit-footer">
{% if vpr_sig_url %}
<a class="inline-block" href="/">
<image src="{{ vpr_sig_url }}" class="h-6 max-w-full sm--max-w-lg" alt="{{ unit_name }} signature" />
<span class="sr-only">UBC Support Programs to Advance Research Capacity</span>
</a>
{% endif %}
<div class="grid grid-cols-12 gap-6 pt-8">
<div class="col-span-12 sm--col-span-5">
<h2 class="mt-0 font-sans font-semibold normal-case h6 text-ubc-blue">{{ unitname_footer }}</h2>
{% if campus_option %}
<div id="ubc7-address-campus">{% if campus_option == 'vancouver' %}Vancouver Campus{% endif %}{% if campus_option == 'okanagan' %}Okanagan Campus{% endif %}</div>
{% endif %}
<p class="mt-0 text-xs md--text-sm xl--text-base">
{% if address_option %}{{ address_option }}<br />{% endif %}
{% if clf_streetaddr_line2 %}{{clf_streetaddr_line2 }}<br />{% endif %}
{% if locality_option or region_option or country_option or postal_option %}
<span>
{% if locality_option %}{{ locality_option }},
{% endif %}
{% if region_option %} {{ region_option }}
{% endif %}
{% if country_option %} {{ country_option }}
{% endif %}
{% if postal_option %} {{ postal_option }}{% endif %}
</span>
{% endif %}
{% if phone_option %}<br />Tel <a href="tel:{{ phone_option|replace({' ':'-'}) }}">{{ phone_option }}</a>{% endif %}
{% if fax_option %}<br />Fax {{ fax_option }}{% endif %}
{% if email_option %}<br />E-mail <a href="mailto:{{ email_option }}" title="Email {{ unit_name }}">{{ email_option }}</a> {% endif %}
{% if website_option %}<br />Website {{ website_option }}{% endif %}
</p>
</div>
<div class="col-span-12 sm--col-span-7 ">
<div class="grid grid-cols-12 gap-6">
<div class="col-span-12 sm--col-span-6">
{% if subunit_name %}
<h2 class="mt-0 font-sans font-semibold normal-case h6 text-ubc-blue">{{ subunit_name }}</h2>
{% if campus_option %}
<div id="ubc7-address-campus">{% if campus_option == 'vancouver' %}Vancouver Campus{% endif %}{% if campus_option == 'okanagan' %}Okanagan Campus{% endif %}</div>
{% endif %}
<p class="mt-0 text-xs md--text-sm xl--text-base">
{% if address2_option %}{{ address2_option }}<br />{% endif %}
{% if clf_streetaddr2_line2 %}{{clf_streetaddr2_line2 }}<br />{% endif %}
{% if locality2_option or region2_option or country2_option or postal2_option %}
<span>
{% if locality2_option %}{{ locality2_option }},
{% endif %}
{% if region2_option %} {{ region2_option }}
{% endif %}
{% if country2_option %} {{ country2_option }}
{% endif %}
{% if postal2_option %} {{ postal2_option }}{% endif %}
</span>
{% endif %}
{% if phone2_option %}<br />Tel <a href="tel:{{ phone2_option|replace({' ':'-'}) }}">{{ phone2_option }}</a>{% endif %}
{% if fax2_option %}<br />Fax {{ fax2_option }}{% endif %}
{% if email2_option %}<br />E-mail <a href="mailto:{{ email2_option }}" title="Email {{ subunit_name }}">{{ email2_option }}</a> {% endif %}
{% if website2_option %}<br />Website {{ website2_option }}{% endif %}
</p>
{% endif %}
</div>
{% if facebook_option or twitter_option or youtube_option or linkedin_option or googleplus_option %}
<ul id="unit-social-icons" class="col-span-12 pt-0 my-0 sm--col-span-6 list-inline list-unstyled">
{% if facebook_option %}
<li class="pb-2 pr-2"><a href="{{ facebook_option }}" title="Find us on Facebook"><span class="visually-hidden">Find us on Facebook</span><svg role="img" class="inline-block w-4 h-4 md--h-6 md--w-6"><use xlink:href="#icon-facebook" /></svg></a></li>{% endif %}
{% if twitter_option %}<li class="pb-2 pr-2"><a href="{{ twitter_option }}" title="Follow us on Twitter"><span class="visually-hidden">Follow us on Twitter</span><svg role="img" class="inline-block w-4 h-4 md--h-6 md--w-6"><use xlink:href="#icon-twitter" /></svg></a></li>{% endif %}
{% if youtube_option %}<li class="pb-2 pr-2"><a href="{{ youtube_option }}" title="Watch us on Youtube"><span class="visually-hidden">Watch us on Youtube</span><svg role="img" class="inline-block w-4 h-4 md--h-6 md--w-6"><use xlink:href="#icon-youtube" /></svg></a></li>{% endif %}
{% if linkedin_option %}<li class="pb-2 pr-2"><a href="{{ linkedin_option }}" title="Connect with us on Linkedin"><span class="visually-hidden">Connect with us on Linkedin</span><svg role="img" class="inline-block w-4 h-4 md--h-6 md--w-6"><use xlink:href="#icon-linkedin" /></svg></a></li>{% endif %}
{% if instagram_option %}<li class="pb-2 pr-2"><a href="{{ instagram_option }}" title="See us on Instagram"><span class="visually-hidden">See us on Instagram</span><svg role="img" class="inline-block w-4 h-4 md--h-6 md--w-6"><use xlink:href="#icon-instagram" /></svg></a></li>{% endif %}
</ul>
{% endif %}
</div>
</div>
</div>
<p class="text-xs md--text-sm xl--text-base">Shared Research Platforms are facilities funded jointly by the Office of the VP, Research and Innovation and Faculties and departments for the purpose of offering specialized research services to UBC and external research communities.</p>
<p class="mt-2 text-xs italic md--text-sm xl--text-base">UBC receives support for managing its research enterprise from the federal <a href="https://research.ubc.ca/support-resources/indirect-costs-budgeting-finance/federal-research-support-fund" target="_blank" title="Federal Research Support Fund">Research Support Fund</a>.</p>
</div>
1 change: 1 addition & 0 deletions theme-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ function kraken_form_system_theme_settings_alter(&$form, FormStateInterface &$fo
'#options' => [
'portfolio' => t('Portfolio'),
'cluster' => t('Cluster'),
'shared' => t('Shared Research Platforms'),
'research' => t('Main Research Website'),
'' => t('None'),
],
Expand Down

0 comments on commit 41101ff

Please sign in to comment.