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
<nav> | |
<ul> | |
<li><span>Home</span></li> | |
<li><span>About</span></li> | |
<li><span>Our Work</span></li> | |
<li><span>Blog</span></li> | |
<li><span>Contact</span></li> | |
</ul> | |
</nav> |
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
git archive --format zip --output /full/path/to/zipfile.zip master |
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
/** | |
* is_blog | |
* | |
* A simple method that lets us know if were on a blog page or not | |
* | |
* @return bool | |
* @since 0.7 | |
*/ | |
function is_blog () { | |
global $post; |
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
function get_page_by_slug($page_slug, $output = OBJECT, $post_type = 'page' ) { | |
global $wpdb; | |
$page = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name = %s AND post_type= %s", $page_slug, $post_type ) ); | |
if ( $page ) | |
return get_page($page, $output); | |
return 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
/* SECTION: MEDIA QUERIES */ | |
/* MQ: Desktop Slim */ | |
@media only screen and (min-width: 768px) and (max-width: 984px) { | |
} | |
/* MQ: Tablet Landscape */ | |
@media only screen and (min-width: 600px) and (max-width: 767px) { | |
NewerOlder