_includes/footer.html in wai-website-theme-1.2 vs _includes/footer.html in wai-website-theme-1.3
- old
+ new
@@ -1,38 +1,52 @@
{%- assign col = site.collections | where: "label", page.collection | first -%}
+{%- if page.changelog -%}
+ {%- assign chagelogpage=site.documents | where:"ref", page.changelog | first -%}
+ {%- unless changelogpage.ref -%}
+ {%- assign changelogpage=site.pages | where:"ref", page.changelog | first -%}
+ {%- endunless -%}
+ {% assign changelogpageurl = changelogpage.url | relative_url %}
+ {%- capture changelogtext -%}
+ {%- include_cached t.html t="Changelog" lang=page.lang -%}
+ {%- endcapture -%}
+ {%- assign changelog = '<a href="' | append: changelogpageurl | append: '">' | append: changelogtext | append: '</a>' -%}
+{%- else -%}
+ {%- assign changelog = "" -%}
+{%- endif -%}
{% if col.footer %}
<footer class="page-footer default-grid" aria-label="Page">
<div class="inner">
- {{col.footer}}
+ {{col.footer | replace: "CHANGELOG", changelog }}
</div>
</footer>
{% else %}
{% if page.footer %}
<footer class="page-footer default-grid" aria-label="Page">
<div class="inner">
- {{page.footer}}
+ {{page.footer | replace: "CHANGELOG", changelog}}
</div>
</footer>
{% endif %}
{% endif %}
<footer class="site-footer grid-4q" aria-label="Site">
<div class="q1-start q3-end about">
<div>
- <p><a class="largelink" href="https://w3.org/WAI/">W3C Web Accessibility Initiative (WAI)</a></p>
- <p>Strategies, standards, and supporting resources to make the Web accessible to people with disabilities.</p>
+ <p><a class="largelink" href="https://w3.org/WAI/" lang="en" dir="auto" translate="no">W3C Web Accessibility Initiative (WAI)</a></p>
+ <p>{% include t.html t="Strategies, standards, and supporting resources to make the Web accessible to people with disabilities." %}</p>
</div>
- <div>
+ <div lang="en" dir="auto" {% if site.data.lang[pagelang].rtl %}style="text-align: right;"{% endif %} translate="no">
<p>Copyright © {{ 'now' | date: "%Y" }} W3C <sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>) <a href="{{ "/about/using-wai-material/" | relative_url }}">Permission to Use WAI Material</a>.</p>
</div>
</div>
<div class="q4-start q4-end">
- <ul>
+ <ul style="margin-bottom:0">
<li><a href="{{ "/about/contacting/" | relative_url }}">Contact WAI</a></li>
<li><a href="{{ "/sitemap/" | relative_url }}">Site Map</a></li>
<li><a href="{{ "/news/" | relative_url }}">News</a></li>
<li><a href="{{ "/sitemap/#archive" | relative_url }}">Archive</a></li>
<li><a href="{{ "/about/accessibility-statement/" | relative_url }}">Accessibility Statement</a></li>
+ <li><a href="{{ "/translations/" | relative_url }}"> Translations</a></li>
<li><a href="{{ "/roles/" | relative_url }}">Resources for Roles</a></li>
</ul>
</div>
</footer>
{%- unless site.published == true -%}