Rename to Sage

This commit is contained in:
Ben Word
2015-01-09 20:48:11 -06:00
parent eaf4d7b73b
commit 030c084134
29 changed files with 198 additions and 201 deletions

View File

@@ -2,19 +2,19 @@
/**
* Page titles
*/
function roots_title() {
function sage_title() {
if (is_home()) {
if (get_option('page_for_posts', true)) {
return get_the_title(get_option('page_for_posts', true));
} else {
return __('Latest Posts', 'roots');
return __('Latest Posts', 'sage');
}
} elseif (is_archive()) {
return get_the_archive_title();
} elseif (is_search()) {
return sprintf(__('Search Results for %s', 'roots'), get_search_query());
return sprintf(__('Search Results for %s', 'sage'), get_search_query());
} elseif (is_404()) {
return __('Not Found', 'roots');
return __('Not Found', 'sage');
} else {
return get_the_title();
}