The first thing to do is to install Git on the remote server.
Once you do that the rest of the process is split into three sections:
- Server set-up
- Local set-up (push commits)
- Server (pull commits)
<?php | |
function get_tag_id_by_name($tag_name) { | |
global $wpdb; | |
$tag_ID = $wpdb->get_var("SELECT * FROM ".$wpdb->terms." WHERE `name` = '".$tag_name."'"); | |
return $tag_ID; | |
} | |
?> |
BackButton = Ext.extend(Ext.Button, { | |
ui: 'back', | |
text: 'Back', | |
hidden: true, | |
id: 'back', | |
handler: function() { | |
var dispatchOptions = this.backStack.pop(); | |
Ext.dispatch(dispatchOptions); | |
if(this.backStack.length == 0) { |
function unhide_kitchensink( $args ) { | |
$args['wordpress_adv_hidden'] = false; | |
return $args; | |
} | |
add_filter( 'tiny_mce_before_init', 'unhide_kitchensink' ); |
# Title: Simple Image tag for Jekyll | |
# Authors: Brandon Mathis http://brandonmathis.com | |
# Felix Schäfer, Frederic Hemberger | |
# Description: Easily output images with optional class names, width, height, title and alt attributes | |
# | |
# Syntax {% img [class name(s)] [http[s]:/]/path/to/image [width [height]] [title text | "title text" ["alt text"]] %} | |
# | |
# Examples: | |
# {% img /images/ninja.png Ninja Attack! %} | |
# {% img left half http://site.com/images/ninja.png Ninja Attack! %} |
// jQuery Connect v0.0.1 | |
// (c) Zulfa Juniadi <http://zulfait.blogspot.com/> | |
// Usage : var connection = $.connect('#elem1', '#elem2', {options}); | |
// Documentation : http://zulfait.blogspot.com/2013/07/jquery-connect.html | |
// Source : https://gist.github.com/zulfajuniadi/5928559#file-jquery-connect-js | |
// Requires : jQuery v1.9+ (Older versions may work, but not tested) | |
// Suggests : jQuery UI (It works with draggable elements!) | |
// MIT License | |
;(function($) { |
// Custom transform and opacity modifier for Stellar.js | |
$.stellar.positionProperty.transfade = { | |
setPosition: function(element, newLeft, originalLeft, newTop, originalTop) { | |
var distance = newTop - originalTop; | |
var rate = $(window).height() / 5; | |
element.css('transform', 'translate3d(0, ' + distance + 'px, 0').css('opacity', 1 - (distance / rate)); | |
} | |
}; |
<?php | |
/* | |
Plugin Name: Mobile First Responsive Images | |
Description: Serve up smaller images to smaller screens. | |
Version: 0.1.1 | |
Author: Matt Wiebe | |
Author URI: http://somadesign.ca/ | |
*/ | |
/** |
// Edit themes functions.php. Right after initial <?php line place the following: | |
update_option('siteurl','http://example.com/blog'); | |
update_option('home','http://example.com/blog'); |
/*==RESIZE CANVAS TO MAINTAIN PROPORTION ==*/ | |
var fixDimensions = function(){ | |
//Get the image dimensions: | |
var image = { | |
width: $("canvas").width(), | |
height: $("canvas").height() | |
}; | |
//Get the page dimensions: |