more work on cleaning up navigation
This commit is contained in:
parent
4f40c2457c
commit
8fa6ba4517
@ -34,14 +34,12 @@ class ComicPressNavigation {
|
|||||||
if (is_array($valid = $this->_storyline->valid($category))) {
|
if (is_array($valid = $this->_storyline->valid($category))) {
|
||||||
foreach ($valid as $field) {
|
foreach ($valid as $field) {
|
||||||
$nav["storyline-chapter-${field}"] = $this->_dbi->get_first_comic($this->_storyline->{$field}($category));
|
$nav["storyline-chapter-${field}"] = $this->_dbi->get_first_comic($this->_storyline->{$field}($category));
|
||||||
|
}
|
||||||
|
|
||||||
if ($field == "previous") {
|
if ($post->ID != $nav['storyline-chapter-current']->ID) {
|
||||||
if ($post->ID != $nav['storyline-chapter-current']) {
|
|
||||||
$nav['storyline-chapter-previous'] = $nav['storyline-chapter-current'];
|
$nav['storyline-chapter-previous'] = $nav['storyline-chapter-current'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $nav;
|
return $nav;
|
||||||
|
Loading…
Reference in New Issue
Block a user