-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
3,948 additions
and
3,002 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
node_modules | ||
vendor | ||
.sass-cache | ||
composer.lock |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* File customize-preview.js. | ||
* | ||
* Theme Customizer enhancements for a better user experience. | ||
* | ||
* Contains handlers to make Theme Customizer preview reload changes asynchronously. | ||
*/ | ||
|
||
( function( $ ) { | ||
|
||
// Site title and description. | ||
wp.customize( 'blogname', function( value ) { | ||
value.bind( function( to ) { | ||
$( '.site-title a' ).text( to ); | ||
} ); | ||
} ); | ||
wp.customize( 'blogdescription', function( value ) { | ||
value.bind( function( to ) { | ||
$( '.site-description' ).text( to ); | ||
} ); | ||
} ); | ||
|
||
// Header text color. | ||
wp.customize( 'header_textcolor', function( value ) { | ||
value.bind( function( to ) { | ||
if ( 'blank' === to ) { | ||
$( '.site-title, .site-description' ).css( { | ||
'clip': 'rect(1px, 1px, 1px, 1px)', | ||
'position': 'absolute' | ||
} ); | ||
} else { | ||
$( '.site-title, .site-description' ).css( { | ||
'clip': 'auto', | ||
'position': 'relative' | ||
} ); | ||
$( '.site-title a, .site-description' ).css( { | ||
'color': to | ||
} ); | ||
} | ||
} ); | ||
} ); | ||
} )( jQuery ); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
/** | ||
* File navigation.js. | ||
* | ||
* Handles toggling the navigation menu for small screens and enables TAB key | ||
* navigation support for dropdown menus. | ||
*/ | ||
( function() { | ||
var container, button, menu, links, i, len; | ||
|
||
container = document.getElementById( 'site-navigation' ); | ||
if ( ! container ) { | ||
return; | ||
} | ||
|
||
button = container.getElementsByTagName( 'button' )[0]; | ||
if ( 'undefined' === typeof button ) { | ||
return; | ||
} | ||
|
||
menu = container.getElementsByTagName( 'ul' )[0]; | ||
|
||
// Hide menu toggle button if menu is empty and return early. | ||
if ( 'undefined' === typeof menu ) { | ||
button.style.display = 'none'; | ||
return; | ||
} | ||
|
||
menu.setAttribute( 'aria-expanded', 'false' ); | ||
if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { | ||
menu.className += ' nav-menu'; | ||
} | ||
|
||
button.onclick = function() { | ||
if ( -1 !== container.className.indexOf( 'toggled' ) ) { | ||
container.className = container.className.replace( ' toggled', '' ); | ||
button.setAttribute( 'aria-expanded', 'false' ); | ||
menu.setAttribute( 'aria-expanded', 'false' ); | ||
} else { | ||
container.className += ' toggled'; | ||
button.setAttribute( 'aria-expanded', 'true' ); | ||
menu.setAttribute( 'aria-expanded', 'true' ); | ||
} | ||
}; | ||
|
||
// Get all the link elements within the menu. | ||
links = menu.getElementsByTagName( 'a' ); | ||
|
||
// Each time a menu link is focused or blurred, toggle focus. | ||
for ( i = 0, len = links.length; i < len; i++ ) { | ||
links[i].addEventListener( 'focus', toggleFocus, true ); | ||
links[i].addEventListener( 'blur', toggleFocus, true ); | ||
} | ||
|
||
/** | ||
* Sets or removes .focus class on an element. | ||
*/ | ||
function toggleFocus() { | ||
var self = this; | ||
|
||
// Move up through the ancestors of the current link until we hit .nav-menu. | ||
while ( -1 === self.className.indexOf( 'nav-menu' ) ) { | ||
|
||
// On li elements toggle the class .focus. | ||
if ( 'li' === self.tagName.toLowerCase() ) { | ||
if ( -1 !== self.className.indexOf( 'focus' ) ) { | ||
self.className = self.className.replace( ' focus', '' ); | ||
} else { | ||
self.className += ' focus'; | ||
} | ||
} | ||
|
||
self = self.parentElement; | ||
} | ||
} | ||
|
||
/** | ||
* Toggles `focus` class to allow submenu access on tablets. | ||
*/ | ||
( function( container ) { | ||
var touchStartFn, i, | ||
parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' ); | ||
|
||
if ( 'ontouchstart' in window ) { | ||
touchStartFn = function( e ) { | ||
var menuItem = this.parentNode, i; | ||
|
||
if ( ! menuItem.classList.contains( 'focus' ) ) { | ||
e.preventDefault(); | ||
for ( i = 0; i < menuItem.parentNode.children.length; ++i ) { | ||
if ( menuItem === menuItem.parentNode.children[i] ) { | ||
continue; | ||
} | ||
menuItem.parentNode.children[i].classList.remove( 'focus' ); | ||
} | ||
menuItem.classList.add( 'focus' ); | ||
} else { | ||
menuItem.classList.remove( 'focus' ); | ||
} | ||
}; | ||
|
||
for ( i = 0; i < parentLink.length; ++i ) { | ||
parentLink[i].addEventListener( 'touchstart', touchStartFn, false ); | ||
} | ||
} | ||
}( container ) ); | ||
} )(); | ||
|
||
/** | ||
* File skip-link-focus-fix.js. | ||
* | ||
* Helps with accessibility for keyboard only users. | ||
* | ||
* Learn more: https://git.io/vWdr2 | ||
*/ | ||
( function() { | ||
var isIe = /(trident|msie)/i.test( navigator.userAgent ); | ||
|
||
if ( isIe && document.getElementById && window.addEventListener ) { | ||
window.addEventListener( 'hashchange', function() { | ||
var id = location.hash.substring( 1 ), | ||
element; | ||
|
||
if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { | ||
return; | ||
} | ||
|
||
element = document.getElementById( id ); | ||
|
||
if ( element ) { | ||
if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { | ||
element.tabIndex = -1; | ||
} | ||
|
||
element.focus(); | ||
} | ||
}, false ); | ||
} | ||
} )(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Copyright (C) 2019 thingsym | ||
# Copyright (C) 2020 thingsym | ||
# This file is distributed under the GPL2 or later. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: WP Theme Boilerplate 1.0.0\n" | ||
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/wp-theme-" | ||
"boilerplate\n" | ||
"POT-Creation-Date: 2019-11-19 03:15:32+00:00\n" | ||
"POT-Creation-Date: 2020-03-24 06:07:40+00:00\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" | ||
"PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
||
|
@@ -120,6 +120,11 @@ msgstr "" | |
msgid "Pages:" | ||
msgstr "" | ||
|
||
#. translators: %s: search query. | ||
#: templates/page-header/search.php:15 | ||
msgid "Search Results for: %s" | ||
msgstr "" | ||
|
||
#. translators: 1: title. | ||
#: templates/parts/comments.php:35 | ||
msgid "One thought on “%1$s”" | ||
|
@@ -137,11 +142,6 @@ msgstr[1] "" | |
msgid "Comments are closed." | ||
msgstr "" | ||
|
||
#. translators: %s: search query. | ||
#: templates/parts/page-header-search.php:15 | ||
msgid "Search Results for: %s" | ||
msgstr "" | ||
|
||
#: templates/parts/theme-info.php:14 | ||
msgid "Proudly powered by " | ||
msgstr "" | ||
|
Oops, something went wrong.