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 | |
/** | |
* Template Name: Home | |
* | |
* A custom page template for displaying the homepage. | |
* | |
* @package Hatch Pro | |
* @subpackage Template | |
*/ |
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 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 | |
*/ |
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 | |
/* | |
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 | |
*/ |
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 | |
/** | |
* Adds Name widget. | |
*/ | |
class JL_Name_Widget extends WP_Widget { | |
/** | |
* Register widget with WordPress. | |
*/ | |
function __construct() { |
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 /* | |
Plugin Name: JL Random Posts */ | |
function jl_random_posts() { | |
$jlrandom_output = ''; | |
$jlrandom_loop = new WP_Query( array( 'posts_per_page' => 3, 'orderby' => 'rand' ) ); | |
while ( $jlrandom_loop->have_posts() ) : $jlrandom_loop->the_post(); | |
$jlrandom_output .= '<li><a href="' . get_permalink() . '">' . the_title( '', '', false ) . '</a></li>'; | |
endwhile; | |
wp_reset_query(); | |
return '<ul>' . $jlrandom_output . '</ul>'; |
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 | |
/* | |
Plugin Name: JL Random Posts | |
Plugin URI: http://www.jleuze.com/plugins/jl-random-posts/ | |
Description: Load a list of random posts. | |
Version: 1.0 | |
Author: Josh Leuze | |
Author URI: http://www.jleuze.com/ | |
License: GPL2 | |
*/ |
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 | |
/* | |
Plugin Name: MSP WP Demo Functionality | |
Plugin URI: https://gist.github.com/1904421 | |
Description: Functionality plugin for MSP WordPress Demo | |
Version: 1.0 | |
Author: Josh Leuze | |
Author URI: http://www.jleuze.com/ | |
License: GPL2 | |
*/ |
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 /* | |
Plugin Name: Meteor Excerpts | |
Description: Adds excerpts to Meteor Slides. | |
Author: Josh Leuze | |
Author URI: http://jleuze.com/ | |
Version: 1.0 | |
*/ | |
function meteorslides_add_excerpt() { | |
add_post_type_support( 'slide', 'excerpt' ); |
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
jQuery(document).ready(function() { | |
jQuery('.widget_search').each(function (i) { | |
jQuery(this).html(jQuery(this).html().replace('value="Search"', 'value="Go"')); | |
}); | |
}); |
OlderNewer