Skip to content

Instantly share code, notes, and snippets.

View mreidsma's full-sized avatar

Matthew Reidsma mreidsma

View GitHub Profile
@mreidsma
mreidsma / add.php
Created February 28, 2025 16:30
Corrections plugin template file for GVSU's Omeka: views/public/index/add.php
<?php
queue_css_file('correction');
echo head();
$user = current_user();
?>
<?php echo flash(); ?>
<div class="wrapper">
<div class="content">
<div class="row">
<div class="col-12">
@mreidsma
mreidsma / show.php
Created February 28, 2025 16:27
Simplepages template file for views>public>page>show.php
<?php
$bodyclass = 'page simple-page';
if ($is_home_page):
$bodyclass .= ' simple-page-home';
endif;
echo head(array(
'title' => metadata('simple_pages_page', 'title'),
'bodyclass' => $bodyclass,
'bodyid' => metadata('simple_pages_page', 'slug')
@mreidsma
mreidsma / webfooter.html
Created October 11, 2024 16:50
HTML for Web Footer to match CMS branding for GVSU University Libraries
<div role="contentinfo">
<div class="footer hide-print">
<div class="content">
<h1 class="sr-only">Footer</h1>
<div class="row-gutter">
<div class="col-3 col-md-4 col-sm-6">
<h2 class="padding-none color-white">
Contact
@mreidsma
mreidsma / webheader.html
Created October 11, 2024 16:48
Web Header HTML for GVSU CMS-style template
<div role="banner">
<a href="#main" class="focus-inverted">Skip to main content</a>
<div class="header">
<div class="row content">
<div class="col-5 col-sm-12 logo">
<div class="col-12 col-sm-9">
<h1>
<a href="https://www.gvsu.edu">
@mreidsma
mreidsma / navigation.html
Created October 9, 2024 20:22
Main Website Navigation for the UL Website
<!--
Docs: https://libguides.gvsu.edu/reusabledesigns/navigation
-->
<!-- Include in <head> -->
<link href="https://prod.library.gvsu.edu/lib/ul_styles.css" rel="stylesheet"/>
<!-- Include right after the website header -->
<div id="cms-navigation" class="navigation hide-sm hide-print">
@mreidsma
mreidsma / libhours.html
Last active October 9, 2024 20:12
Design for adding library hours to the GVSU UL Website
<!--
Docs: https://libguides.gvsu.edu/reusabledesigns/hours
-->
<!-- Show all library hours for today -->
<!-- Include where you want the hours to appear. Must be nested inside the class of .site -->
<div class="site>
...
<div class="col-4 col-sm-12 library-hours"></div>
@mreidsma
mreidsma / banners.html
Created October 9, 2024 19:59
Designs for banners and alerts on the GVSU UL Website
<!--
Docs: https://libguides.gvsu.edu/reusabledesigns/banners
-->
<!-- Informational Alert -->
<section class="alert alert-info">
<span class="visually-hidden sr-only">Informational alert</span>
<p>Add your message here.</p>
@mreidsma
mreidsma / breadcrumbs.html
Created October 9, 2024 19:50
Add breadcrumbs to a UL Page
<!--
Docs: https://libguides.gvsu.edu/reusabledesigns/breadcrumbs
-->
<!-- Breadcrumb structure for static sites -->
<nav class="breadcrumbs" aria-label="breadcrumbs">
<ol>
<li><a href="https://www.gvsu.edu/library">University Libraries</a></li>
<li><a href="https://www.gvsu.edu/library/teaching-scholarship-120.htm">Teaching &amp; Scholarship</a></li>
@mreidsma
mreidsma / skiplink.html
Created October 9, 2024 19:43
Skip Link Design for the University Libraries Website
@mreidsma
mreidsma / occupancy.html
Last active October 9, 2024 19:40
Embed real-time occupancy on the website
<!--
Docs: https://libguides.gvsu.edu/reusabledesigns/skiplink
-->
<!-- Real Time Occupancy -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<div id="library-rto"></div>
<script>
jQuery(document).ready(function() {