View scroll-reload.js
;(function($){
/**
* Store scroll position for and set it after reload
*
* @return {boolean} [loacalStorage is available]
*/
$.fn.scrollPosReload = function(){
if (localStorage) {
var posReader = localStorage["posStorage"];
View acf-js.js
(function($) {
/*
* new_map
*
* This function will render a Google Map onto the selected jQuery element
*
* @type function
* @date 8/11/2013
* @since 4.3.0
View addClass-to-element-on-scroll.js
jQuery(document).ready(function($){
// Add white class to site header after 50px
$(document).on( 'scroll', function() {
if ( $(document).scrollTop() > 50 ) {
$( '.site-container' ).addClass( 'white' );
} else {
$( '.site-container' ).removeClass( 'white' );
View function.php
<?php
// Enqueue scripts and styles
add_action( 'wp_enqueue_scripts', 'themeprefix_enqueue_scripts_styles' );
function themeprefix_enqueue_scripts_styles() {
wp_enqueue_style( 'themeprefix-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
wp_enqueue_script( 'themeprefix-offscreen', get_stylesheet_directory_uri() . '/js/offscreen.js', array( 'jquery' ), '1.0.0', true );
}
View extend-walker-class-with-fields.php
<?php
class WPB_Custom_Walker extends Walker {
/**
* What the class handles.
*
* @since 3.0.0
* @access public
View ssh-config.txt
neilg@[~/vdev]:(develop) vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/neilg/vdev/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
View autoprefix.js
var gulp = require('gulp'); // Load in Gulp
var autoprefixer = require('gulp-autoprefixer'); // Load in Autoprefixer
// Create the 'prefix' task
gulp.task('prefix', function () { // Naming the task 'prefix'
return gulp.src('style.css') // Set the source file
.pipe(autoprefixer({
browsers: ['last 3 versions'], // Set the Browser versions
cascade: false
View scrollo-link.php
View backstretch-init.js
jQuery(document).ready(function($) {
$(".header").backstretch([ // Target your HTML element
'/wp-content/uploads/2016/09/image-1.jpg', // Add in your images
'/wp-content/uploads/2016/09/image-2.jpg',
],{
duration:3000, // Time between transitions
fade:750, // Transition effect
});
View ticket.php
<?php
// File as tribe-events/wootickets/tickets.php
/**
* Renders the WooCommerce tickets table/form
*
* @version 4.2
*