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
<!doctype html> | |
<html class="no-js" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" lang="en-US"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled</title> | |
<style type="text/css"> | |
body { background: white; color: #999; font-family: sans-serif; } | |
h1 { color: #333; } | |
</style> |
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
// Get multiple values with one DB query | |
$post_meta = get_post_custom(); | |
$prefix = 'my_custom_field_'; | |
$value_1 = $post_meta[$prefix . '1'][0]; | |
$value_2 = $post_meta[$prefix . '2'][0]; | |
$value_3 = $post_meta[$prefix . '3'][0]; | |
// Get a single value | |
$value = get_post_meta(get_the_ID(), 'my_custom_field', 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
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- Disable automatic DNS prefetching. | |
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
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href=img/icons/114x114.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/icons/72x72.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="img/icons/57x57.png"> | |
<link rel="apple-touch-startup-image" href="img/icons/splash-screen.png" /> | |
<body onload="setTimeout(function() { if(Modernizr.touch && window.pageYOffset <= 1) window.scrollTo(0, 1) }, 100);"> |
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
(function($) { | |
window.Album = Backbone.Model.extend({ | |
isFirstTrack: function(index) { | |
return index == 0; | |
}, | |
isLastTrack: function(index) { | |
return index >= this.get('tracks').length - 1; |
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
/** | |
* Do not wrap! | |
*/ | |
#wrap { | |
width: 100%; | |
height: 400px; | |
padding: 0; | |
overflow: hidden; | |
background: gray; |
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
body { | |
background: url(images/bg.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
// god dammit, IE. | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg.jpg', sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg.jpg', sizingMethod='scale')"; |
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
/****************************************************************** | |
FORM STYLES | |
******************************************************************/ | |
/* line 1208, ../sass/_default.scss */ | |
form { | |
margin-bottom: 15px; | |
margin-top: -10px; } | |
/* line 1212, ../sass/_default.scss */ | |
form input[type=email] { |
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
/****************************************************************** | |
UI COMPONENTS | |
******************************************************************/ | |
/* | |
* BUTTONS | |
*/ | |
/* line 177, ../sass/_default.scss */ | |
a.btn, .widget li[id*=menu-item] a, .widget .blogroll a, button.btn { | |
display: block; | |
position: relative; |
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
/****************************************************************** | |
UI COMPONENTS | |
******************************************************************/ | |
/* | |
* BUTTONS | |
*/ | |
/* line 177, ../sass/_default.scss */ | |
a.btn, .widget li[id*=menu-item] a, .widget .blogroll a, button.btn { | |
display: block; | |
position: relative; |