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 | |
/* Loop template for the slide posts list */ | |
// Settings for slide list loop | |
global $post; | |
$meteor_posttemp = $post; | |
$meteor_count = 1; | |
$meteor_loop = new WP_Query( array( |
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 | |
/** | |
* 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 | |
*/ |
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 | |
add_action( 'pre_get_posts', 'et_custom_posts_per_page' ); | |
function et_custom_posts_per_page( $query ) { | |
global $shortname; | |
if ( is_admin() ) return $query; | |
if ( $query->is_main_query() && $query->is_category ) { | |
$query->set( 'posts_per_page', et_get_option( $shortname . '_catnum_posts' ) ); |
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: Remove Meteor Scripts | |
Description: Remove JS and CSS for Meteor Slides when not needed. | |
Author: Josh Leuze | |
Author URI: http://www.jleuze.com/ | |
Version: 1.0 */ | |
add_action( 'template_redirect', 'disable_meteorslides_scripts' ); | |
function disable_meteorslides_scripts() { |
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"')); | |
}); | |
}); |
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
<?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: 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: 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>'; |
NewerOlder