Skip to content

Instantly share code, notes, and snippets.

View JLeuze's full-sized avatar

Josh Leuze JLeuze

View GitHub Profile
@JLeuze
JLeuze / meteor-slideshow.php
Created April 16, 2018 21:27
Custom slideshow template with slide links that open in a new tab/window
<?php
/* Loop template for the Meteor Slides 1.5.6 slideshow
Copy "meteor-slideshow.php" from "/meteor-slides/" to your theme's directory to replace
the plugin's default slideshow loop.
Learn more about customizing the slideshow template for Meteor Slides:
http://www.jleuze.com/plugins/meteor-slides/customizing-the-slideshow-template/
*/
@JLeuze
JLeuze / header.php
Created August 20, 2016 15:59
Sitewide header slideshow for TwentyTen Theme
<?php
/**
* Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
@JLeuze
JLeuze / header.php
Created February 6, 2016 19:04
Replace header image with slideshow for TwentyEleven Theme
<?php
/**
* Header template for the theme
*
* Displays all of the <head> section and everything up till <div id="main">.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
@JLeuze
JLeuze / header.php
Last active January 13, 2016 20:05
Homepage header slideshow for Twenty Sixteen theme.
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "site-content" div.
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
@JLeuze
JLeuze / functions.php
Last active August 29, 2015 14:02
A widget for adding your name in a sidebar.
<?php
/**
* Adds Name widget.
*/
class JL_Name_Widget extends WP_Widget {
/**
* Register widget with WordPress.
*/
function __construct() {
@JLeuze
JLeuze / name-widget-plugin.php
Last active August 29, 2015 14:02
A widget for adding your name in a sidebar.
<?php
/*
Plugin Name: Name Widget
Description: A widget for adding your name in a sidebar.
Plugin URI: https://gist.github.com/JLeuze/475bdd6bd6095b7bdf7c
Author: Josh Leuze
Author URI: http://www.jleuze.com/
License: GPL2
Version: 1.0
*/
@JLeuze
JLeuze / header.php
Created February 22, 2014 01:22
Homepage Header slideshow for Twenty Fourteen Theme
<?php
/**
* The Header for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
@JLeuze
JLeuze / page_home.php
Created February 8, 2014 06:25
Homepage featured slideshow for Hatch Pro Theme
<?php
/**
* Template Name: Home
*
* A custom page template for displaying the homepage.
*
* @package Hatch Pro
* @subpackage Template
*/
@JLeuze
JLeuze / header.php
Last active August 24, 2016 19:05
Sitewide header slideshow for TwentyTwelve Theme
<?php
/**
* The Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
@JLeuze
JLeuze / header.php
Last active June 2, 2016 23:55
Homepage header slideshow for TwentyTen Theme
<?php
/**
* Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/