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 (have_posts()) : ?> | |
<?php $count = 0; ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php $count++; ?> | |
<!-- Check for the first blog post in the loop && makes sure it the first page of results && makes sure it is the blog --> | |
<?php if ($count == 1 && $paged == 0 && is_home()) : ?> | |
<!-- Most recent blog post with custom template will display above older entries - Requires a content-featured.php or whatever you want to name your file or replace with code --> | |
<?php get_template_part( 'content', 'featured' ); ?> |
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 //Add to page.php ?> | |
<?php if($post->post_parent !== 0) { | |
$nextPage = next_page_not_post(); | |
$prevPage = previous_page_not_post(); | |
if (!empty($nextPage) || !empty($prevPage)) { | |
if (!empty($prevPage)) echo '<span class="previous-sibling">'.$prevPage.'</span>'; | |
if (!empty($nextPage)) echo '<span class="next-sibling">'.$nextPage.'</span>'; | |
} | |
} ?> |
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
$('.container-class').find('img').load(function() { | |
functionToRun(); | |
}); |
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 enable_more_buttons($buttons) { | |
$buttons[] = 'hr'; | |
return $buttons; | |
} | |
add_filter("mce_buttons", "enable_more_buttons"); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 filter_where($where = '') { | |
//posts in the last 30 days | |
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'"; | |
return $where; | |
} | |
add_filter('posts_where', 'filter_where'); | |
query_posts($query_string); | |
?> |
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
@baseFont: 16; | |
@outer: 50; | |
@margin: 20; | |
// Mixins | |
.inner-box() { | |
@inner: @outer - @margin; | |
@innerRem: @inner / @baseFont; | |
@MarginRem: @margin / @baseFont; | |
border-radius: ~"@{inner}px"; |
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() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
OlderNewer