Skip to content

Instantly share code, notes, and snippets.

View AdamSoucie's full-sized avatar

Adam Soucie AdamSoucie

View GitHub Profile
@AdamSoucie
AdamSoucie / load-assets.php
Created August 31, 2018 19:33
Loads assets for the child theme
<?php
/**
* Load files in the /assets/ directory
*
* @since 1.0.0
*/
function seven_pines_load_assets()
{
// Load the main Genesis stylesheet first
@AdamSoucie
AdamSoucie / multi-level-flyout-a11y.js
Created December 14, 2019 15:00
Script that helps support multi-level flyout menus
// Global Variables
const subMenus = document.querySelectorAll( 'li.menu-item-has-children' );
let focasable;
let delayTimer;
let focusTimer;
let currentSubMenu;
// Deal with the sub-menus
if ( subMenus ) {
Array.prototype.forEach.call( subMenus, function( element, iterator ){
@AdamSoucie
AdamSoucie / class-wyvern-plugin.php
Last active January 22, 2020 05:16
For debugging
<?php
/**
* Define the core plugin class.
*
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
*
* @since 1.0.0
*