Compare commits
No commits in common. "3587f38bac29dd260f49c8e4c45d3e67d0edb17f" and "6ba274cbeaae2ca6328cdc4a4479c015d161fb43" have entirely different histories.
3587f38bac
...
6ba274cbea
18
blog.php
18
blog.php
@ -249,7 +249,7 @@
|
|||||||
$CMS_SINGLE_POST = true;
|
$CMS_SINGLE_POST = true;
|
||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$morePosts = 0;
|
$morePosts = false;
|
||||||
foreach($posts as $k=>$v) {
|
foreach($posts as $k=>$v) {
|
||||||
if ($v->isPublic) {
|
if ($v->isPublic) {
|
||||||
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
||||||
@ -277,30 +277,22 @@
|
|||||||
echo '<hr class="postSeparator">';
|
echo '<hr class="postSeparator">';
|
||||||
}
|
}
|
||||||
if (($i % POSTS_PAGE_SIZE) == 0) {
|
if (($i % POSTS_PAGE_SIZE) == 0) {
|
||||||
$morePosts = 1;
|
$morePosts = true;
|
||||||
} else {
|
|
||||||
if ($morePosts == 1) {
|
|
||||||
$morePosts = 2;
|
|
||||||
break;
|
break;
|
||||||
} else {
|
|
||||||
$morePosts = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if ($morePosts || $postsSkip > 0)
|
||||||
if (!isset($CMS_RSS)) {
|
|
||||||
if ($morePosts == 2 || $postsSkip > 0)
|
|
||||||
echo "<p><table class=\"blognav\"><tr>";
|
echo "<p><table class=\"blognav\"><tr>";
|
||||||
if ($morePosts == 2)
|
if ($morePosts)
|
||||||
echo '<td><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage+1) . '"><< Older posts</a></td>';
|
echo '<td><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage+1) . '"><< Older posts</a></td>';
|
||||||
if ($postsSkip > 0)
|
if ($postsSkip > 0)
|
||||||
echo '<td style="text-align:right;"><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage-1) . '">Newer posts >></a></td>';
|
echo '<td style="text-align:right;"><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage-1) . '">Newer posts >></a></td>';
|
||||||
if ($morePosts == 2|| $postsSkip > 0)
|
if ($morePosts || $postsSkip > 0)
|
||||||
echo "</tr></table></p>";
|
echo "</tr></table></p>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!isset($CMS_RSS))
|
if (!isset($CMS_RSS))
|
||||||
echo "</blog>";
|
echo "</blog>";
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user