Skip to content

Instantly share code, notes, and snippets.

View richardtape's full-sized avatar

Richard Tape richardtape

View GitHub Profile
<?php global $post; $protected = ( !empty( $post->post_password ) ) ? "custom_class" : ""; ?>
<body <?php body_class( $protected ); ?>>
.
.
.
</body>
@richardtape
richardtape / .php
Created June 28, 2012 15:34
Simple WordPress widget for the ResponsiveSlides Slider - uses a post category to load posts
<?php
if( !class_exists( 'friendly_responsiveslides_slider' ) )
{
/**
* Friendly ResponsiveSlider using http://responsive-slides.viljamis.com/
*
* @package Earth
* @author iamfriendly
<ul>
<li><a href="http://earth.local.significantlybetter/shop/?range=-29">Under <span class="pricedisplay">£30.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=30-39"><span class="pricedisplay">£30.00</span> - <span class="pricedisplay">£39.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=40-59"><span class="pricedisplay">£40.00</span> - <span class="pricedisplay">£59.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=60-99"><span class="pricedisplay">£60.00</span> - <span class="pricedisplay">£99.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=100-239"><span class="pricedisplay">£100.00</span> - <span class="pricedisplay">£239.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=240-">Over <span class="pricedisplay">£240.00</span></a></li>
<li><a href="http://earth.local.significantlybetter/shop/?range=all">Show All</a></li>
</ul>
@richardtape
richardtape / Lemon.html
Created May 23, 2012 15:58
not implemented
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title></title>
<!-- ||| Meta information for search engine goodness and iThings ||| -->
<meta charset="utf-8">
if(has_post_thumbnail())
{
the_post_thumbnail();
}
//the_post_thumbnail() can take an argument of an image size
//http://codex.wordpress.org/Function_Reference/the_post_thumbnail