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
/* | |
* This is the code that is required to create the 100x80 thumbnail on upload. | |
* It only affects newly uploaded images, so you may need to use a tool like | |
* http://wordpress.org/extend/plugins/regenerate-thumbnails/ | |
*/ | |
if ( function_exists( 'add_theme_support' ) ) { | |
add_theme_support( 'post-thumbnails' ); | |
add_image_size( 'relatedsize', 100, 80, true); | |
} |
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
//This is your CF7 form tag, which retrieves the GET var 'payload' | |
[dynamictext my_payload "CF7_GET key='payload'"] | |
//This goes into the message body, or any CF7 field | |
[my_payload] | |
//See http://sevenspark.com/code/how-to-create-a-dynamic-wordpress-contact-form for additional info |
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
//Makes Scroll Checkpoint Dialogs reposition automatically when the window size changes | |
//Hopefully has a positive influence on mobile devices | |
jQuery(document).ready(function($){ | |
$.ui.dialog.prototype.options.autoReposition = true; | |
$( window ).resize(function() { | |
$( ".ui-dialog-content:visible" ).each(function() { | |
var dialog = $( this ).data( "dialog" ); | |
if ( dialog.options.autoReposition ) { | |
dialog.option( "position", dialog.options.position ); |
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
/* Preview hover styles */ | |
#theme_list ul li { | |
position:relative; | |
} | |
.product-preview{ | |
position:absolute; | |
left:100%; | |
top:-1px; | |
margin-left:1px; | |
background:#222; |
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
/** | |
* Agility's Gallery shortcode, implemented by filter | |
*/ | |
add_filter( 'post_gallery', 'agility_gallery_shortcode', 10, 2 ); | |
function agility_gallery_shortcode( $output, $attr ) { | |
global $post; | |
static $instance = 0; | |
$instance++; |
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 | |
/** | |
* Self-hosted Video Module | |
*/ | |
function agility_videojs_scripts_and_styles(){ | |
global $agilitySettings; | |
if( $agilitySettings->op( 'self-hosted-video' ) ){ |
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 EVERYTHING BELOW THIS LINE TO YOUR CHILD THEME'S FUNCTIONS.PHP **/ | |
function ubermenu_post_grid( $atts ){ | |
//we're going to need access to the UberMenu object for image functionality | |
global $uberMenu; | |
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
/* Add in CSS Tweaks - Mobile */ | |
header#header .row-fluid div.span12, div.header_wrapper{ | |
height:auto; | |
min-height:100px; | |
} | |
#header #logo{ | |
float:none; | |
text-align:center; | |
margin-top:15px; |