Fixed comments position
This commit is contained in:
parent
c467840d91
commit
8b445d944e
4 changed files with 10 additions and 0 deletions
|
@ -513,6 +513,7 @@ function oneCategory(type, key, page, sorting, options, callback) {
|
|||
recent: function(callback) {
|
||||
var service = [];
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.disqus.shortname &&
|
||||
modules.comments.data.disqus.recent.num_items &&
|
||||
modules.comments.data.disqus.recent.display.indexOf('category') + 1
|
||||
|
@ -520,6 +521,7 @@ function oneCategory(type, key, page, sorting, options, callback) {
|
|||
service.push('disqus');
|
||||
}
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.hypercomments.widget_id &&
|
||||
modules.comments.data.hypercomments.recent.num_items &&
|
||||
modules.comments.data.hypercomments.recent.display.indexOf(
|
||||
|
@ -531,6 +533,7 @@ function oneCategory(type, key, page, sorting, options, callback) {
|
|||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.fast.active &&
|
||||
modules.comments.data.fast.recent.num_items &&
|
||||
modules.comments.data.fast.recent.display.indexOf('category') + 1
|
||||
) {
|
||||
service.push('fast');
|
||||
|
|
|
@ -411,6 +411,7 @@ function oneContent(url, page, sorting, options, callback) {
|
|||
recent: function(callback) {
|
||||
var service = [];
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.disqus.shortname &&
|
||||
modules.comments.data.disqus.recent.num_items &&
|
||||
modules.comments.data.disqus.recent.display.indexOf('content') + 1
|
||||
|
@ -418,6 +419,7 @@ function oneContent(url, page, sorting, options, callback) {
|
|||
service.push('disqus');
|
||||
}
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.hypercomments.widget_id &&
|
||||
modules.comments.data.hypercomments.recent.num_items &&
|
||||
modules.comments.data.hypercomments.recent.display.indexOf(
|
||||
|
@ -429,6 +431,7 @@ function oneContent(url, page, sorting, options, callback) {
|
|||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.fast.active &&
|
||||
modules.comments.data.fast.recent.num_items &&
|
||||
modules.comments.data.fast.recent.display.indexOf('content') + 1
|
||||
) {
|
||||
service.push('fast');
|
||||
|
|
|
@ -182,6 +182,7 @@ function dataIndex(options, callback) {
|
|||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.fast.active &&
|
||||
modules.comments.data.fast.recent.num_items &&
|
||||
modules.comments.data.fast.recent.display.indexOf('index') + 1
|
||||
) {
|
||||
service.push('fast');
|
||||
|
|
|
@ -225,6 +225,7 @@ function dataMovie(id, type, options, callback) {
|
|||
recent: function(callback) {
|
||||
var service = [];
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.disqus.shortname &&
|
||||
modules.comments.data.disqus.recent.num_items &&
|
||||
modules.comments.data.disqus.recent.display.indexOf('movie') + 1
|
||||
|
@ -232,6 +233,7 @@ function dataMovie(id, type, options, callback) {
|
|||
service.push('disqus');
|
||||
}
|
||||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.hypercomments.widget_id &&
|
||||
modules.comments.data.hypercomments.recent.num_items &&
|
||||
modules.comments.data.hypercomments.recent.display.indexOf('movie') +
|
||||
|
@ -242,6 +244,7 @@ function dataMovie(id, type, options, callback) {
|
|||
if (
|
||||
modules.comments.status &&
|
||||
modules.comments.data.fast.active &&
|
||||
modules.comments.data.fast.recent.num_items &&
|
||||
modules.comments.data.fast.recent.display.indexOf('movie') + 1
|
||||
) {
|
||||
service.push('fast');
|
||||
|
|
Loading…
Reference in a new issue