ucsb / webguide

Repository for the UCSB WSG Webguide hosted on Github using Jekyll.
https://webguide.ucsb.edu
BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Migrate "Footer" Page #389

Closed tenken closed 4 years ago

tenken commented 4 years ago

384

Legacy Page https://webguide.ucsb.edu/footer/

Location in New Hierarchy https://dev-webguide-ucsb-edu-v01.pantheonsite.io/content/footer

Below is my draft for the content we should migrate to the Footer Page


Each UCSB website must include a footer at the bottom of each webpage with the elements described in this section.

COPYRIGHT

Include this standard form copyright notice as recommended by the UC Copyright Guide.

Copyright © 2020 The Regents of the University of California, All Rights Reserved.

You may display the year of first publication or the current year using a server-side technology.

The notice format can be altered or omitted to fit your needs.

For more information about copyright requirements, visit UC Copyright FAQ: How do I put a copyright notice on my work?

TERMS OF USE

Each footer should include a link to the UCSB Terms of Use. Each website can either link directly to the UCSB Terms of Use document or include the content from that document on their own page using a server-side technology.

If your organization needs to modify the Terms of Use document for a specific purpose, you should submit the modified version for approval to policy@ucsb.edu. If the Coordinator approves the modified content, the updated version can be used and a copy will be retained by Administrative Services.

PRIVACY NOTIFICATION

All UCSB websites that collect personal information from visitors should include a link to the UCSB Privacy Notification. Anonymous information collected for the purpose of web analytics is not considered personal information. Similar to the Terms of Use, each website can either link directly to the UCSB Privacy Policy or include the content from that document on their own page using a server-side technology.

The link to either the UCSB Privacy Policy or the page with the included content should contain the word “privacy.”

If your organization needs to modify the Privacy Policy document for a specific purpose, you should submit the modified version for approval to policy@ucsb.edu. If the Coordinator approves the modified content, the updated version can be used and a copy will be retained by Administrative Services.

It is a good practice to also include a link to the privacy policy close to where a user is entering personal information. For example, a link to the privacy policy could be added to the top of a form that a user is filling out or next to where a user enters their username and password to log into a secure application.

ACCESSIBILITY

Include a statement or link to a statement offering alternative content for those who cannot access your page:

If any of the material on this page is not accessible to you, please
<a href="mailto:webmaster@department.ucsb.edu">send us an email</a>
or <a href="/contact">contact us via our contact page</a>
and we will provide alternatives.

LAST MODIFIED DATE (OPTIONAL)

Each web page may contain the date the last time the page was updated. The last modified date should appear in the following format: May 4, 2018 (no month or year abbreviation)

CONTACT LINK

All websites should contain an email link or link to a contact form to contact someone within the organization about questions or concerns with the website.

“CONTENTINFO” LANDMARK ROLE

The element containing the footer should be marked with the “contentinfo” ARIA role:

<footer>
    <!-- Footer Content -->
</footer>

FOOTER EXAMPLE

The following example includes all of the guidelines described above:

<footer>
    Copyright &copy; 2020 The Regents of the University of California,
    All Rights Reserved
    <br>
    <a href="http://www.policy.ucsb.edu/terms-of-use/">Terms of Use</a> /
    <a href="http://www.policy.ucsb.edu/privacy-notification/">Privacy Notification</a> /
    <a href="/accessibility">Accessibility</a>
    <br>
    Last Modified May 4, 2020 /
    Questions or contacts? Please <a href="/contact">contact us</a>
</footer>
tenken commented 4 years ago
loganfranken commented 4 years ago

So, as far as I know, what's currently on the page tracks with the current W3C recommendations (https://www.w3.org/TR/wai-aria-practices/examples/landmarks/contentinfo.html):

If we want to condense it down, I say we go with just:

<footer>
</footer>
tenken commented 4 years ago

@tenken complete this today.

tenken commented 4 years ago

@rvizena I have revised this page: https://dev-webguide-ucsb-edu-v01.pantheonsite.io/design/footer

Ideally we can have "plaintext" be an option for supported languages, but offhand I can't see how to set that without overriding some configuration values possibly via drupal code and the Ckeditor API.

tenken commented 4 years ago

Make changes to site for CodeSnippets

.../2020/pantheon/webguide-ucsb-edu-v01 ⑂389-footer* $ 
git commit 
[389-footer a51fe50d8] Adjust codesnippet configuration.
 19 files changed, 513 insertions(+), 8680 deletions(-)
 delete mode 100644 .idea/inspectionProfiles/Project_Default.xml
 delete mode 100644 .idea/misc.xml
 delete mode 100644 .idea/modules.xml
 delete mode 100644 .idea/php.xml
 delete mode 100644 .idea/vcs.xml
 delete mode 100644 .idea/watcherTasks.xml
 delete mode 100644 .idea/webguide-ucsb-edu-v01.iml
 delete mode 100644 .idea/workspace.xml
 delete mode 100644 .lando.yml
 rewrite libraries/codesnippet/lib/highlight/highlight.pack.js (99%)
 copy libraries/codesnippet/lib/highlight/{highlight.pack.js => highlight.pack.js.old} (100%)
 create mode 100644 modules/custom/ucsb_webguide/ucsb_webguide.info.yml
 create mode 100644 modules/custom/ucsb_webguide/ucsb_webguide.module
 rewrite vendor/composer/autoload_classmap.php (99%)
 rewrite vendor/composer/autoload_static.php (96%)

The following extensions will be enabled: ucsb_webguide Do you really want to continue? (y/n): y ucsb_webguide was enabled successfully. [ok]



The module maintainer has documentation on how to change supported languages https://www.drupal.org/project/codesnippet but the directions are incorrect. Added a comment to a D.org issue at https://www.drupal.org/project/codesnippet/issues/3021431#comment-13775893

### Example: https://389-footer-webguide-ucsb-edu-v01.pantheonsite.io/design/footer
### DEV: https://dev-webguide-ucsb-edu-v01.pantheonsite.io/design/footer
tenken commented 4 years ago

Merge later this week.

tenken commented 4 years ago

/close