Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions disqus/disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,10 +802,16 @@ function dsq_comments_template($value) {
return $value;
}

// TODO: If a disqus-comments.php is found in the current template's
// path, use that instead of the default bundled comments.php
//return TEMPLATEPATH . '/disqus-comments.php';
$EMBED = true;

$custom_template = locate_template( apply_filters( 'dsq_custom_template', 'disqus-comments.php' ) );
if( !empty( $custom_template ) ) {
return $custom_template;
}
return dsq_get_default_comments_template_file();
}

function dsq_get_default_comments_template_file() {
return dirname(__FILE__) . '/comments.php';
}

Expand Down