View custom.css
/* 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;
View functions.php
<?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;
View video.php
<?php
/**
* Self-hosted Video Module
*/
function agility_videojs_scripts_and_styles(){
global $agilitySettings;
if( $agilitySettings->op( 'self-hosted-video' ) ){
View gist:3317648
/**
* 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++;
View styles.css
/* Preview hover styles */
#theme_list ul li {
position:relative;
}
.product-preview{
position:absolute;
left:100%;
top:-1px;
margin-left:1px;
background:#222;
View autoreposition.js
//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 );
View cf7_form.php
//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
View functions.php
/*
* 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);
}