Skip to content

Instantly share code, notes, and snippets.

@joffff
joffff / Event info
Created August 23, 2013 15:39
Event info for related sidebar
<div class="grid_6 event-info">
<h2>Information and downloads</h2>
<h4>Date:</h4>
<p>01 Jan 2014</p>
<h4>Email:</h4>
<p><a href="#">[email protected]/a></p>
<h4>Tel:</h4>
@joffff
joffff / Event code
Last active December 21, 2015 14:29
To be contained within a list element (li)
<img src="http://placehold.it/140x95">
<h3>Title</h3>
<p class="date">Sunday 14th April 2013</p>
<p>Description paragraph</p>
<a href="#" class="btn">View details</a>
<?php
/**
* Usage:
* Send the url you want to access url encoded in the url paramater, for example (This is with JS):
* /twitter-proxy.php?url='+encodeURIComponent('statuses/user_timeline.json?screen_name=MikeRogers0&count=2')
*/
// The tokens, keys and secrets from the app you created at https://dev.twitter.com/apps
$config = array(
<?php
/**
* Standard Tab Code from woocommerce-hooks.php
*/
/* Product page tabs */
add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 );
add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );