Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
@whyisjake
whyisjake / index.php
Created February 19, 2013 04:01
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.txt
Created February 19, 2013 04:00
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
Test
@whyisjake
whyisjake / index.txt
Created February 19, 2013 04:00
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.php
Created February 19, 2013 03:59
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.php
Created February 19, 2013 03:58
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.php
Created February 19, 2013 03:58
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.php
Created February 19, 2013 03:58
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / index.php
Created February 19, 2013 03:58
Conditional to see if a post has a parent. If it does, show the sidebar-custom.php, if not, just show sidebar.php.
<?php
if($post->post_parent !== 0) {
get_sidebar( 'custom' );
} else {
get_sidebar();
}
@whyisjake
whyisjake / newsletter.html
Created February 14, 2013 21:38
Maker Pro Newsletter
<h1>The Maker Pro Newsletter #1  Feb. 5, 2013</h1>
<h2>"3D Printing Not Limited to Those Who Own One"</h2>
<p><i>From the editors of MAKE Magazine, The Maker Pro Newsletter will focus on makers in business, covering developments in the emerging maker market.   Our coverage will include hardware startups, new products, incubators, innovators, and maker market trends. If you've got comments or tips for future issues, please send them to <a href="mailto:[email protected]">[email protected]</a>.<p>
<p>Perhaps you have heard the news that the Make division of O'Reilly Media has spun out as an independent company, <a href="http://www.makermedia.com/">Maker Media Inc</a>. This new company includes MAKE magazine, Maker Faire, Maker Shed.</p>
<h3>Maker Markets</h3>
array(28) {
[0]=>
object(stdClass)#884 (5) {
["title"]=>
string(0) ""
["lines"]=>
array(4) {
[0]=>
object(stdClass)#883 (4) {
["text"]=>