Load comments-popup template through the index.

git-svn-id: https://develop.svn.wordpress.org/trunk@2332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-02-14 09:17:23 +00:00
parent 62bdfa854b
commit 35b685cb65
7 changed files with 37 additions and 19 deletions

View File

@@ -1244,6 +1244,12 @@ function is_404 () {
return $wp_query->is_404;
}
function is_comments_popup () {
global $wp_query;
return $wp_query->is_comments_popup;
}
function is_paged () {
global $wp_query;
@@ -1576,6 +1582,15 @@ function get_single_template() {
return get_query_template('single');
}
function get_comments_popup_template() {
if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
$template = TEMPLATEPATH . '/comments-popup.php';
else
$template = get_theme_base() . '/default/comments-popup.php';
return apply_filters('comments_popup_template', $template);
}
// Borrowed from the PHP Manual user notes. Convert entities, while
// preserving already-encoded entities:
function htmlentities2($myHTML) {