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 | |
if ( $_SERVER['SERVER_NAME'] == 'ubuntulocal.dev') : | |
define('WP_ENV', 'dev'); | |
else : | |
define('WP_ENV', 'prod'); | |
endif; | |
if (WP_ENV == 'dev') : | |
define("WP_HOME","http://".$_SERVER['HTTP_HOST']."/"."%%INSTALL_DIR%%"); | |
define("WP_SITEURL","http://".$_SERVER['HTTP_HOST']."/"."%%INSTALL_DIR%%"); | |
define('DB_NAME', 'DEV_DBNAME'); |
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
#!/bin/bash | |
# Install WordPress and Zurb Foundation | |
# Usage: wpbase <dirname> <themename> | |
# Installs into ~/$local/$dir | |
dir=$1 | |
theme=$2 | |
# Define local server dir | |
local="www" |
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
#!/bin/bash | |
# backup WP db and site files, takes one argument (name of document root) | |
# name of directory to backup (public_html, httpdocs etc) | |
dir=$1 | |
cd /path/to/$dir | |
# get the db details | |
echo "Enter the db username:" | |
read dbusername |
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
AddType image/svg+xml .svg .svgz | |
AddEncoding .gzip .svgz | |
AddType video/ogg .ogv | |
AddType video/mp4 .mp4 | |
AddType video/webm .webm | |
AddType audio/mpeg .mp3 | |
AddType audio/ogg .ogg | |
AddType audio/mp4 .m4a |
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
$(document).ready(function(){ | |
$('iframe').each(function(){ | |
var url = $(this).attr("src"); | |
var char = "?"; | |
if(url.indexOf("?") != -1){ | |
var char = "&"; | |
} | |
$(this).attr("src",url+char+"wmode=transparent"); |
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
#!/bin/bash | |
# command to rename (move) files on DPG | |
FILES=/Live/*.tif | |
NAME='USERNAME' | |
PASSWORD='PASSWORD' | |
SERVER='SERVER' | |
DIRLIST=dirlist`date +%H%M%j`.txt | |
MOD=mod`date +%H%M%j`.txt | |
UPLOADS='/Volumes/Kerouac/SP/Stage' |
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 | |
function post_type_foos() { | |
$post_type = 'Foos'; | |
$singular = 'Foo'; | |
register_post_type(strtolower($post_type), | |
array( | |
'labels' => array( | |
'name' => __( $post_type ), |
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
{ | |
"name": "wordpress", | |
"version": "1.0.0", | |
"authors": [ | |
"Jason Ingram <[email protected]>" | |
], | |
"repository": { | |
"type": "git", | |
"url": "#" | |
}, |
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
/* Lato */ | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('Lato Hairline'), local('Lato-Hairline'), url(../fonts/Lato-Hairline.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; |
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
/* Lato */ | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('Lato Hairline'), local('Lato-Hairline'), url(../fonts/Lato-Hairline.ttf) format('truetype'); | |
} | |
@font-face { | |
font-family: 'Lato'; | |
font-style: normal; |
OlderNewer