Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
@billrobbins
billrobbins / google-plus-progress.html
Created February 17, 2012 15:40
Add Google Plus Link To Progress Footer
<a href="
http://plus.google.com"><img src="http://www.yoursite.com/image.png" alt="Google Plus" /></a>
@billrobbins
billrobbins / ot-cycle-permissions.php
Created February 17, 2012 20:36
OT Cycle permissions
add_theme_page('Slideshow', 'Slideshow', 'edit_posts', 'ot-cycle', 'ot_cycle_admin_page');
@billrobbins
billrobbins / donation-car.php
Created February 20, 2012 14:52
Call Donation Bar
<?php get_template_part( '/includes/donation-bar' ); ?>
@billrobbins
billrobbins / unlimited-slides.php
Created February 24, 2012 22:39
Unlimited Slides
<?php $loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => '-1', 'orderby'=>'menu_order', 'order'=>'ASC' ) ); ?>
@billrobbins
billrobbins / the-content.php
Created February 24, 2012 22:58
The Content
<?php the_content(); ?>
@billrobbins
billrobbins / newsletter.php
Created February 27, 2012 21:37
Newsletter
<form id="signup" action="<?php echo get_permalink(); ?>" method="post">
<fieldset>
<span id="notification">
<?php
function storeAddress(){
if(!$_POST['email']){ return "Please enter a valid email address"; }
if(!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$/i", $_POST['email'])) {
return "The email address is invalid";
@billrobbins
billrobbins / searchform.php
Created February 27, 2012 21:43
Search Form
<form id="searchform" method="get" action="<?php echo get_option('home') ?>/">
<input type="text" value="<?php _e("Search our site", 'organizedthemes'); ?>" name="s" id="s-form" onfocus="if (this.value == '<?php _e("Search our site", 'organizedthemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e("Search our site", 'organizedthemes'); ?>';}" />
</form>
@billrobbins
billrobbins / second-donation-bar.html
Created March 2, 2012 23:42
Second Donation Bar
<div id="home-bar" class="clearfix">
<h4 id="donate-title">Donate Title</h4>
<div id="donate-graph-holder">
<div id="donate-graph-base"></div>
<div id="donate-graph-highlight" style="width:50%;"></div>
<div id="donate-end"><p>Goal></p></div>
</div>
@billrobbins
billrobbins / add-posts.php
Created March 5, 2012 16:56
Add Posts To Progress Home
<div class="content shadow clearfix">
<div class="full">
<?php $recent = new WP_Query("showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<article id="<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="title"><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
@billrobbins
billrobbins / full-blog-progress.php
Created March 5, 2012 21:52
All full blog to Progress home page
<div class="content shadow clearfix">
<div class="main-content">
<?php $recent = new WP_Query("showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
<article id="<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>