This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load files in the /assets/ directory | |
* | |
* @since 1.0.0 | |
*/ | |
function seven_pines_load_assets() | |
{ | |
// Load the main Genesis stylesheet first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BLOCK: wds-gist | |
*/ | |
// Import CSS. | |
import './style.scss'; | |
import './editor.scss'; | |
const { __ } = wp.i18n; // Import __() from wp.i18n | |
const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The frontend of the Gist Module. | |
* | |
* @package wds-gist | |
*/ | |
// Get our fields. | |
$user_name = $settings->github_username; | |
$url = $settings->gist_url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'fields' => array( | |
'module_layout' => array( | |
'type' => 'select', | |
'label' => __( 'Module Layout', 'wds-beaver-builder' ), | |
'default' => 'fifty-image-text', | |
'options' => array( | |
'fifty-image-text' => __( 'Image/Text', 'wds-beaver-builder' ), | |
'fifty-text-image' => __( 'Text/Image', 'wds-beaver-builder' ), | |
'fifty-text-text' => __( 'Text/Text', 'wds-beaver-builder' ), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'module_layout' => array( | |
'type' => 'select', | |
'label' => __( 'Module Layout', 'wds-beaver-builder' ), | |
'default' => 'fifty-image-text', | |
'options' => array( | |
'fifty-image-text' => __( 'Image/Text', 'wds-beaver-builder' ), | |
'fifty-text-image' => __( 'Text/Image', 'wds-beaver-builder' ), | |
'fifty-text-text' => __( 'Text/Text', 'wds-beaver-builder' ), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="main-menu-trigger" class="main-menu-trigger" role="button">Menu</button> | |
<nav id="main-menu-container" class="main-menu-container" role="navigation"> | |
<ul id="main-menu" aria-expanded="false" role="menu"> | |
<li id="menu-item-1" class="menu-item" role="menuitem"> | |
<a href="#" role="link">Home</a> | |
</li> | |
<li id="menu-item-2" class="menu-item" role="menuitem"> | |
<a href="#" role="link">About</a> | |
</li> | |
<li id="menu-item-3" class="menu-item" role="menuitem"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toggleARIAExpanded(menu) | |
{ | |
var isExpanded = menu.attr('aria-expanded'); | |
if( isExpanded === 'true' ) | |
{ | |
menu.attr('aria-expanded', 'false'); | |
menu.toggleClass('active'); | |
} | |
else |
NewerOlder