Move feed link into template

All HTML should be in the templates whenever possible.
This commit is contained in:
Scott Walkinshaw
2012-09-19 13:48:09 -04:00
parent b9cb9de4b9
commit e08024b730
3 changed files with 10 additions and 12 deletions

View File

@@ -68,3 +68,8 @@ function is_element_empty($element) {
$element = trim($element);
return empty($element) ? false : true;
}
function has_posts() {
$count = wp_count_posts('post');
return ($count->publish > 0) ? true : false;
}