This file contains hidden or 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 | |
/* If the gravity form is below the fold the user can get confused if there isn't an anchor on the form */ | |
add_filter("gform_confirmation_anchor", create_function("","return true;")); | |
?> |
This file contains hidden or 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
blockquote a[href$='.pdf'] { | |
padding: 0 0 0 22px; | |
padding-bottom:2px; | |
background: transparent url(images/icon_pdf.gif) 0 0 no-repeat; | |
font-weight: bold; | |
} |
This file contains hidden or 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 $labels = array( | |
'name' => _x( 'Types', 'taxonomy general name' ), | |
'singular_name' => _x( 'Type', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Types' ), | |
'all_items' => __( 'All Types' ), | |
'parent_item' => __( 'Parent Type' ), | |
'parent_item_colon' => __( 'Parent Type:' ), | |
'edit_item' => __( 'Edit Type' ), | |
'update_item' => __( 'Update Type' ), | |
'add_new_item' => __( 'Add New Type' ), |
This file contains hidden or 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: Brisbane Respsonsive Lab Credits | |
Plugin URI: http://www.sennza.com.au | |
Description: A plugin to display the gravatars, names and devices of the people who have donated devices to the project | |
Version: 1.0 | |
Author: Bronson Quick | |
Author URI: http://www.sennza.com.au | |
License: GPL2 | |
*/ |
This file contains hidden or 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 | |
/* | |
* Removes some of the theme customiser elements that we aren't using in this theme | |
*/ | |
add_action ( 'customize_register', 'pico_themes_remove_theme_customiser_options'); | |
function pico_themes_remove_theme_customiser_options( $controls ){ | |
$controls->remove_section( 'title_tagline' ); | |
$controls->remove_section( 'colors' ); | |
} | |
?> |
This file contains hidden or 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: Pico Themes Testimonials | |
Plugin URI: http://wwww.picothemes.com/ | |
Description: This plugin generates a custom post type for Testimonials | |
Author: Bronson Quick | |
Version: 1.0 | |
Author URI: http://www.picothemes.com/ | |
*/ |
This file contains hidden or 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 | |
/** | |
* Count the number of widgets in a sidebar | |
* Works for up to ten widgets | |
* Usage <?php ctm_sidebar_class( 'promo' ); ?> where promo is the name of the sidebar | |
*/ | |
function ctm_sidebar_class( $sidebar_name ) { | |
global $sidebars_widgets; | |
$count = count ($sidebars_widgets[$sidebar_name]); | |
This file contains hidden or 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 the Style Dropdown Menu to the second row of visual editor buttons | |
* N.B. Make sure you include your custom classes in both your style.css AND editor-style.css :) | |
*/ | |
function pico_themes_mce_buttons( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} |
This file contains hidden or 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.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |