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
/* ==|== framework styles =================================================== | |
Author: DHigginbotham | |
========================================================================== */ | |
/* apply a natural box layout model to all elements <3 paul irish */ | |
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;} | |
/* prefixes */ | |
div { display: block; margin: 0; padding: 0; } | |
.pull-right { float: right; } |
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
// let's create the function for the custom type | |
function custom_post_example() { | |
// creating (registering) the custom type | |
register_post_type( 'custom_type', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */ | |
// let's now add all the options for this post type | |
array('labels' => array( | |
'name' => __('Custom Types', 'bonestheme'), /* This is the Title of the Group */ | |
'singular_name' => __('Custom Post', 'bonestheme'), /* This is the individual type */ | |
'all_items' => __('All Custom Posts', 'bonestheme'), /* the all items menu item */ | |
'add_new' => __('Add New', 'bonestheme'), /* The add new menu item */ |
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
//try to include two post types in main query | |
function query_multiple_posts_types( $query ) { | |
if ( is_home() ) { | |
//Display 20 posts | |
$query->query_vars['posts_per_page'] = 20; | |
//Display multiple post types | |
$query->query_vars['post_type'] = array('post', 'portfolio'); | |
return; | |
} | |
} |
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
// let's create the function for the custom type | |
function custom_posts() { | |
$post_types = array('software','resources'); | |
foreach ($post_types as $slug) { | |
// creating (registering) the custom type | |
register_post_type( $slug, /* (http://codex.wordpress.org/Function_Reference/register_post_type) */ | |
// let's now add all the options for this post type | |
array('labels' => array( |
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
var count = 0; | |
!function () { | |
ab_functs(count); | |
ttout = window.setTimeout(ab_functs, 5000 * 60 ); | |
}(); | |
function ab_functs(count) { | |
count++; | |
console.log('I\'ve bopped for you now ' + count + ' times!'); | |
$(window).focus(); |
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
var s, | |
LoanCalculator = { | |
settings: { | |
apr: jQuery("#lc_interest_rate").val(), | |
term: jQuery("#lc_term_length").val(), | |
price: jQuery("#lc_amount").val(), | |
button: jQuery("#lc_calculate"), | |
amount: 0, | |
result: jQuery("#lc_payments") |
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
var _s | |
, FacebookConnect = { | |
settings: { | |
status: null, | |
login: $('#facebook-auth') | |
}, | |
init: function() { | |
_s = this.settings; | |
this.bindUI(); |
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 handles the FBAsync login as well as the Authentication bit | |
*/ | |
var _s | |
, FacebookConnect = { | |
settings: { | |
status: null, |
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
/** | |
* Module dependencies. | |
Current Version: 0.0.3 | |
*/ | |
var express = require('express') | |
, io = require('socket.io') |
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
var _s | |
, FacebookConnect = { | |
settings: { | |
status: null, | |
me: null, | |
login: $('#facebook-auth'), | |
share: $('#facebook-share') | |
}, |
OlderNewer